summaryrefslogtreecommitdiff
path: root/qa/pconf/cpu/system_mode
blob: bdecce79df495574bda03e43bfba3869916228f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;