From 47e6e7c84f008a53061e661f31ae96629bc694ef Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 26 Oct 2014 12:33:50 +0400 Subject: Debian 3.9.10 --- qa/pconf/cpu/system_mode | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 qa/pconf/cpu/system_mode (limited to 'qa/pconf/cpu/system_mode') diff --git a/qa/pconf/cpu/system_mode b/qa/pconf/cpu/system_mode new file mode 100644 index 0000000..bdecce7 --- /dev/null +++ b/qa/pconf/cpu/system_mode @@ -0,0 +1,45 @@ +#pmieconf-rules 1 +# + +rule cpu.system_mode + default = "$rule$" + predicate = +"some_host ( + ( kernel.all.cpu.user $hosts$ + + kernel.all.cpu.sys $hosts$ + > hinv.ncpu $hosts$ * $busy$ / 100 ) && + ( kernel.all.cpu.sys $hosts$ / + ( kernel.all.cpu.user $hosts$ + + kernel.all.cpu.sys $hosts$ ) + > $threshold$ / 100 ) +)" + enabled = yes + version = 1 + help = +"The average processor utilization over all CPUs was at least busy +percent during the last sample interval, and the ratio of system time +to busy time exceeded threshold percent."; + +string rule + default = "busy executing in system mode" + modify = no + display = no; + +percent busy + default = 75 + help = +"Busy percentage for average CPU utilization, in the range 0 (idle) +to 100 (completely busy), independent of the number of CPUs."; + +percent threshold + default = 80 + help = +"Threshold percentage for system time as a fraction of the non-idle +CPU time, in the range 0 (no system time) to 100 (all system time), +independent of the number of CPUs."; + +string action_expand + default = "%h" + display = no + modify = no; + -- cgit v1.2.3