diff options
Diffstat (limited to 'src/pmie/examples/filesys.10')
-rw-r--r-- | src/pmie/examples/filesys.10 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pmie/examples/filesys.10 b/src/pmie/examples/filesys.10 new file mode 100644 index 0000000..2cf9488 --- /dev/null +++ b/src/pmie/examples/filesys.10 @@ -0,0 +1,14 @@ +// +// Some read activity through the buffer cache and the cache read +// hit ratio is less than 80% +// (lots of file system reads causing physical I/O) +// + +delta = 1 min; // check every minute + +blkio = "kernel.all.io"; +poor_read_hits = + (($blkio.lread - $blkio.bread) / $blkio.lread) < 0.8 && $blkio.lread > 100 + -> alarm 20 min "poor buffer cache read hit ratio (%v)"; + // Note: %v in alarm string is bound to the left most + // expression in the predicate |