diff --git a/conf/glances.conf b/conf/glances.conf index fb3958e5..3fa1723c 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -160,8 +160,7 @@ disable=False # See https://scoutapm.com/blog/slow_server_flow_chart # # I/O wait percentage should be lower than 1/# (# = Logical CPU cores) -# Leave commented to just use the default config: -# Careful=1/#*100-20% / Warning=1/#*100-10% / Critical=1/#*100 +# Leave commented to just use the default config: 50/70/90 #iowait_careful=30 #iowait_warning=40 #iowait_critical=50 @@ -172,7 +171,7 @@ total_warning=75 total_critical=85 total_log=True # -# Default values if not defined: 50/70/90 (except for iowait) +# Default values if not defined: 50/70/90 user_careful=50 user_warning=70 user_critical=90 diff --git a/glances/config.py b/glances/config.py index cfa44cc6..58f98910 100644 --- a/glances/config.py +++ b/glances/config.py @@ -238,17 +238,7 @@ class Config: self.set_default_cwc('cpu', 'user') self.set_default_cwc('cpu', 'system') self.set_default_cwc('cpu', 'steal') - # By default I/O wait should be lower than 1/number of CPU cores - iowait_bottleneck = (1.0 / multiprocessing.cpu_count()) * 100.0 - self.set_default_cwc( - 'cpu', - 'iowait', - [ - str(iowait_bottleneck - (iowait_bottleneck * 0.20)), - str(iowait_bottleneck - (iowait_bottleneck * 0.10)), - str(iowait_bottleneck), - ], - ) + self.set_default_cwc('cpu', 'iowait') # Context switches bottleneck identification #1212 ctx_switches_bottleneck = (500000 * 0.10) * multiprocessing.cpu_count() self.set_default_cwc(