mirror of https://github.com/nicolargo/glances.git
Merge branch 'issue1212' into develop
This commit is contained in:
commit
afd745b7a3
1
NEWS
1
NEWS
|
|
@ -16,6 +16,7 @@ Enhancements and new features:
|
|||
* Refactor InfluxDB (API is now stable) #1166
|
||||
* Remove graph export from Glances #1206
|
||||
* Add a code of conduct for Glances project's participants #1211
|
||||
* Context switches bottleneck identification #1212
|
||||
|
||||
Bugs corrected:
|
||||
|
||||
|
|
|
|||
|
|
@ -49,13 +49,13 @@ steal_careful=50
|
|||
steal_warning=70
|
||||
steal_critical=90
|
||||
#steal_log=True
|
||||
# I/O wait percentage should be lower than 1/# (of CPU cores)
|
||||
# I/O wait percentage should be lower than 1/# (Logical CPU cores)
|
||||
# Leave commented to just use the default config (1/#-20% / 1/#-10% / 1/#)
|
||||
#iowait_careful=30
|
||||
#iowait_warning=40
|
||||
#iowait_critical=50
|
||||
# Context switch limit (core / second)
|
||||
# Leave commented to just use the default config (critical is 56000/# (of CPU core))
|
||||
# Leave commented to just use the default config (critical is 50000*# (Logical CPU cores)
|
||||
#ctx_switches_careful=10000
|
||||
#ctx_switches_warning=12000
|
||||
#ctx_switches_critical=14000
|
||||
|
|
|
|||
|
|
@ -172,7 +172,8 @@ class Config(object):
|
|||
[str(iowait_bottleneck - (iowait_bottleneck * 0.20)),
|
||||
str(iowait_bottleneck - (iowait_bottleneck * 0.10)),
|
||||
str(iowait_bottleneck)])
|
||||
ctx_switches_bottleneck = 56000 / multiprocessing.cpu_count()
|
||||
# Context switches bottleneck identification #1212
|
||||
ctx_switches_bottleneck = (500000 * 0.10) * multiprocessing.cpu_count()
|
||||
self.set_default_cwc('cpu', 'ctx_switches',
|
||||
[str(ctx_switches_bottleneck - (ctx_switches_bottleneck * 0.20)),
|
||||
str(ctx_switches_bottleneck - (ctx_switches_bottleneck * 0.10)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue