summaryrefslogtreecommitdiff
path: root/qa/pconf/cpu/system_mode
diff options
context:
space:
mode:
Diffstat (limited to 'qa/pconf/cpu/system_mode')
-rw-r--r--qa/pconf/cpu/system_mode45
1 files changed, 45 insertions, 0 deletions
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;
+