diff options
Diffstat (limited to 'qa/pconf/filesys')
-rw-r--r-- | qa/pconf/filesys/GNUmakefile | 16 | ||||
-rw-r--r-- | qa/pconf/filesys/buffer_cache | 37 | ||||
-rw-r--r-- | qa/pconf/filesys/capacity | 34 |
3 files changed, 87 insertions, 0 deletions
diff --git a/qa/pconf/filesys/GNUmakefile b/qa/pconf/filesys/GNUmakefile new file mode 100644 index 0000000..3620af7 --- /dev/null +++ b/qa/pconf/filesys/GNUmakefile @@ -0,0 +1,16 @@ +#!gmake + +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs + +TESTDIR = $(PCP_VAR_DIR)/testsuite/pconf/filesys +CONFIGS = buffer_cache capacity +LSRCFILES = $(CONFIGS) + +default default_pcp setup: + +install install_pcp: + $(INSTALL) -m 755 -d $(TESTDIR) + $(INSTALL) -m 644 $(CONFIGS) $(TESTDIR) + +include $(BUILDRULES) diff --git a/qa/pconf/filesys/buffer_cache b/qa/pconf/filesys/buffer_cache new file mode 100644 index 0000000..e964d0e --- /dev/null +++ b/qa/pconf/filesys/buffer_cache @@ -0,0 +1,37 @@ +#pmieconf-rules 1 +# + +rule filesys.buffer_cache + default = "$rule$" + predicate = +"some_host ( + ( (kernel.all.io.lread $hosts$ + - kernel.all.io.bread $hosts$) + / kernel.all.io.lread $hosts$ ) < $threshold$ / 100 + && kernel.all.io.lread $hosts$ > 30 * 16 Kbytes/sec +)" + enabled = no + version = 1 + help = +"Some file system read activity (at least 30 x 16 Kbyte logical reads +per second), and the read hit ratio in the buffer cache is below +threshold percent."; + +string rule + default = "low read hit ratio in buffer cache" + modify = no + display = no; + +percent threshold + default = 80 + help = +"The minimum acceptable buffer cache read hit ratio, expressed as a +percentage. Values may be in the range 0 (nothing is read from the +cache and poor performance is expected) to 100 (all reads come from +the cache, no disk I/O required and good performance expected)."; + +string action_expand + default = "%v%@%h" + display = no + modify = no; + diff --git a/qa/pconf/filesys/capacity b/qa/pconf/filesys/capacity new file mode 100644 index 0000000..ffccddf --- /dev/null +++ b/qa/pconf/filesys/capacity @@ -0,0 +1,34 @@ +#pmieconf-rules 1 +# + +rule filesys.capacity + default = "$rule$" + predicate = +"some_host ( + some_inst ( + ( 100 * filesys.used $hosts$ > + $threshold$ * filesys.capacity $hosts$ ) && + rate filesys.used $hosts$ > 0 + ) +)" + enabled = yes + version = 1 + help = +"Filesystem is at least threshold percent full and the allocated +space is growing."; + +string rule + default = "imminent file system full" + modify = no + display = no; + +percent threshold + default = 95 + help = +"The threshold of file system fullness, usually in the range 90 to 99."; + +string action_expand + default = "%i@%h" + display = no + modify = no; + |