summaryrefslogtreecommitdiff
path: root/src/pmdas/hotproc/general.pmie
blob: 6f4929ca986419aefb2ec6b6b6b8e61649d2f293 (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
// this pmie configuration files assumes the hotproc PMDA has been
// configured with the "general.conf" configuration file, and thus
// is using as predicate something like:
//
//	cpuburn > 0.95 || iodemand > 500 || syscalls > 100 
//	|| iowait > 0.33 || schedwait > 0.25
//

delta = 60sec;		// change this if the hotproc PMDA refresh interval
			// is different to the default of 60 seconds

some_inst 100 * hotproc.psinfo.time > 95
    -> print "\nCPU: %v% busy %i";

io_bytes = "hotproc.accounting.counts";
some_inst
    (($io_bytes.chr + $io_bytes.chw) / 1024) > 500
	-> print "\nI/O: %v Kbyte/sec %i";

some_inst hotproc.psusage.sysc > 100
    -> print "\nsyscall: %v call/sec %i";

io_timers = "hotproc.accounting.timers";
some_inst
    100 * ( $io_timers.bwtime + $io_timers.rwtime ) > 33
	-> print "\nI/O: %v% waiting %i";

some_inst 100 * $io_timers.qwtime > 25
    -> print "\nCPU: %v% runq waiting %i";