diff options
Diffstat (limited to 'qa/pconf/memory')
-rw-r--r-- | qa/pconf/memory/GNUmakefile | 16 | ||||
-rw-r--r-- | qa/pconf/memory/exhausted | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/qa/pconf/memory/GNUmakefile b/qa/pconf/memory/GNUmakefile new file mode 100644 index 0000000..658a17f --- /dev/null +++ b/qa/pconf/memory/GNUmakefile @@ -0,0 +1,16 @@ +#!gmake + +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs + +TESTDIR = $(PCP_VAR_DIR)/testsuite/pconf/memory +CONFIGS = exhausted +LSRCFILES = $(CONFIGS) + +default default_pcp setup: + +install install_pcp: + $(INSTALL) -m 755 -d $(TESTDIR) + $(INSTALL) -m 644 $(CONFIGS) $(TESTDIR)/$(CONFIGS) + +include $(BUILDRULES) diff --git a/qa/pconf/memory/exhausted b/qa/pconf/memory/exhausted new file mode 100644 index 0000000..fad39ea --- /dev/null +++ b/qa/pconf/memory/exhausted @@ -0,0 +1,26 @@ +#pmieconf-rules 1 +# + +rule memory.exhausted + default = "$rule$" + predicate = +"some_host (30 %_sample swap.pagesout $hosts$ @0..9 > 0)" + enabled = yes + version = 1 + help = +"The system is swapping modified pages out of main memory to the +swap partitions, and has been doing this on at least 3 of the +last 10 evaluations of this rule. +There appears to be insufficient main memory to meet the resident +demands of the current workload."; + +string rule + default = "chronic main memory exhaustion" + modify = no + display = no; + +string action_expand + default = "%h" + modify = no + display = no; + |