summaryrefslogtreecommitdiff
path: root/src/pmie/examples/filesys.10
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmie/examples/filesys.10
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmie/examples/filesys.10')
-rw-r--r--src/pmie/examples/filesys.1014
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