diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmieconf/cpu/context_switch | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmieconf/cpu/context_switch')
-rw-r--r-- | src/pmieconf/cpu/context_switch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/pmieconf/cpu/context_switch b/src/pmieconf/cpu/context_switch new file mode 100644 index 0000000..fc2b8ac --- /dev/null +++ b/src/pmieconf/cpu/context_switch @@ -0,0 +1,59 @@ +#pmieconf-rules 1 +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) +# + +rule cpu.context_switch + summary = "$rule$" + predicate = +"some_host ( + kernel.all.pswitch $hosts$ + > hinv.ncpu $hosts$ * $threshold$ count/sec +)" + enabled = yes + version = 1 + help = +"Average number of context switches per CPU per second exceeded +threshold over the past sample interval."; + +string rule + default = "High aggregate context switch rate" + modify = no + display = no; + +double threshold + default = 4000 + help = +"The threshold number of process context switches per second."; + +string action_expand + default = %vctxsw/s@%h + display = no + modify = no; + +string email_expand + default = "host: %h aggregate context switches: %v/sec" + display = no + modify = no; + + +# Configuration info specific to non-PCP tools follows... +# + +# for SGI Embedded Support Partner integration: +string esp_type + default = "0x20005C" + display = no + modify = no; + +# for EnlightenDSM integration: +string enln_test + default = cpu.context_switch + display = no + modify = no; +string enln_units + default = ctxsw/s + display = no + modify = no; + +# +# --- DO NOT MODIFY THIS FILE --- see pmieconf(4) |