Skip to content

Commit

Permalink
Adjust GC cleanup threshold and traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Arto Kinnunen committed Aug 1, 2019
1 parent 26166d1 commit d173249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/Core/ns_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ typedef enum {
NS_MONITOR_STATE_GC_CRITICAL
} ns_monitor_state_e;

#define HEAP_HIGH_WATERWARK (0.80) /* Heap usage HIGH threshold */
#define HEAP_CRITICAL_WATERMARK (0.90) /* Heap usage CRITICAL threshold */
#define HEAP_HIGH_WATERWARK (0.95) /* Heap usage HIGH threshold */
#define HEAP_CRITICAL_WATERMARK (0.99) /* Heap usage CRITICAL threshold */

#define NS_MAINTENANCE_TIMER_INTERVAL 10 // Maintenance interval

Expand Down Expand Up @@ -144,7 +144,6 @@ int ns_monitor_init(void)
ns_monitor_ptr->ns_monitor_heap_gc_state = NS_MONITOR_STATE_HEAP_GC_IDLE;
ns_monitor_ptr->ns_maintenance_timer = 0;
ns_monitor_ptr->prev_heap_alloc_fail_cnt = 0;
tr_debug("Monitor init high:%lu, critical:%lu total:%lu", (unsigned long)ns_monitor_ptr->heap_high_watermark, (unsigned long)ns_monitor_ptr->heap_critical_watermark, (unsigned long)ns_monitor_ptr->mem_stats->heap_sector_size);
return 0;
}

Expand Down

0 comments on commit d173249

Please sign in to comment.