Skip to content

Commit

Permalink
reduce memory and disk usage report freq to 1 per 5s (backport #28327) (
Browse files Browse the repository at this point in the history
#29848)

reduce memory usage report freq to 1 per 5s (#28327)

(cherry picked from commit 7e87998)

Co-authored-by: HaoranYi <[email protected]>
  • Loading branch information
mergify[bot] and HaoranYi authored Jan 24, 2023
1 parent 1343d2b commit 2bea91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/system_monitor_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const MS_PER_M: u64 = MS_PER_S * 60;
const MS_PER_H: u64 = MS_PER_M * 60;
const SAMPLE_INTERVAL_UDP_MS: u64 = 2 * MS_PER_S;
const SAMPLE_INTERVAL_OS_NETWORK_LIMITS_MS: u64 = MS_PER_H;
const SAMPLE_INTERVAL_MEM_MS: u64 = MS_PER_S;
const SAMPLE_INTERVAL_MEM_MS: u64 = 5 * MS_PER_S;
const SAMPLE_INTERVAL_CPU_MS: u64 = 10 * MS_PER_S;
const SAMPLE_INTERVAL_DISK_MS: u64 = MS_PER_S;
const SAMPLE_INTERVAL_DISK_MS: u64 = 5 * MS_PER_S;
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);

#[cfg(target_os = "linux")]
Expand Down

0 comments on commit 2bea91f

Please sign in to comment.