summaryrefslogtreecommitdiff
path: root/src/pmie/examples/uag.30
blob: b15a781dce96640bd068c96b6e2568ea2590361c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// intrinsic operators
//

m = mem.freemem;
rate_m = rate mem.freemem;

// At least 2 CPUs doing some reasonable amount of work
//
poke = ":moomba :'mac-larry' :bitbucket";    // note '' to escape - in host name
u = kernel.percpu.cpu.user $poke;
s = kernel.percpu.cpu.sys $poke;
some_host (
    count_inst ( kernel.percpu.cpu.user $poke +
		 kernel.percpu.cpu.sys $poke > 0.7 ) >= 2
    )
	-> alarm "2 or more busy CPUs";