diff options
Diffstat (limited to 'man/html/pmie')
-rw-r--r-- | man/html/pmie/GNUmakefile | 31 | ||||
-rw-r--r-- | man/html/pmie/answer.pmie | 23 | ||||
-rw-r--r-- | man/html/pmie/babylon.perdisk.0 | bin | 0 -> 98936 bytes | |||
-rw-r--r-- | man/html/pmie/babylon.perdisk.index | bin | 0 -> 192 bytes | |||
-rw-r--r-- | man/html/pmie/babylon.perdisk.meta | bin | 0 -> 1274 bytes | |||
-rw-r--r-- | man/html/pmie/disk.pmie | 7 | ||||
-rw-r--r-- | man/html/pmie/pswitch.pmie | 5 | ||||
-rw-r--r-- | man/html/pmie/pswitch.view | 14 |
8 files changed, 80 insertions, 0 deletions
diff --git a/man/html/pmie/GNUmakefile b/man/html/pmie/GNUmakefile new file mode 100644 index 0000000..07336fa --- /dev/null +++ b/man/html/pmie/GNUmakefile @@ -0,0 +1,31 @@ +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs + +BUNDLE = pmie +BINTAR = $(BUNDLE).tar.gz +PCPLOGS = $(shell echo *.0 *.meta *.index) +CONFIGS = pswitch.view pswitch.pmie disk.pmie answer.pmie +LSRCFILES = $(PCPLOGS) $(CONFIGS) +LDIRT = $(BINTAR) manifest + +default: $(BINTAR) + +$(BINTAR): $(PCPLOGS) $(CONFIGS) + @ CDIR=`pwd`; cd ..; rm -f manifest; \ + for f in `echo $^`; do \ + echo $(BUNDLE)/$$f >> $$CDIR/manifest; \ + done; \ + $(TAR) -T $$CDIR/manifest -cf - | $(ZIP) --best > $$CDIR/$(BINTAR); \ + echo "Created $(BINTAR)" + +include $(BUILDRULES) + +install install-dev: default + $(INSTALL) -m 755 -d $(PCP_DEMOS_DIR)/tutorials + $(INSTALL) -m 644 $(BINTAR) $(PCP_DEMOS_DIR)/tutorials/$(BINTAR) + $(INSTALL) -m 755 -d $(PCP_BOOKS_DIR)/html/$(BUNDLE) + $(INSTALL) -m 644 $(CONFIGS) $(PCP_BOOKS_DIR)/html/$(BUNDLE) + +default_pcp : default + +install_pcp : install diff --git a/man/html/pmie/answer.pmie b/man/html/pmie/answer.pmie new file mode 100644 index 0000000..013d25a --- /dev/null +++ b/man/html/pmie/answer.pmie @@ -0,0 +1,23 @@ +// +// solution for the pmie tutorial +// + +// show any disk doing more than 50 I/Os per second +some_inst ( disk.dev.total > 50 ) -> print "high IOPs:" " %i: %v"; + +// some disk is doing more than 30 reads per second +some_inst ( disk.dev.read > 30 ) -> print "busy reads:" " %i: %v"; + +// some disk is doing more than 30 writes per second +some_inst ( disk.dev.write > 30 ) -> print "busy writes:" " %i: %v"; + +// some disk has a high I/O rate and more than 95% reads +some_inst ( disk.dev.total > 40 && + disk.dev.read / disk.dev.total > 0.95 ) +-> print "busy disk and >95% writes"; + +// some disk has a high I/O rate and 1 minute load average is +// greater than 5 +kernel.all.load #'1 minute' > 5 && +some_inst ( disk.dev.total > 40 ) +-> print "busy disk and high load avg"; diff --git a/man/html/pmie/babylon.perdisk.0 b/man/html/pmie/babylon.perdisk.0 Binary files differnew file mode 100644 index 0000000..7a1f26f --- /dev/null +++ b/man/html/pmie/babylon.perdisk.0 diff --git a/man/html/pmie/babylon.perdisk.index b/man/html/pmie/babylon.perdisk.index Binary files differnew file mode 100644 index 0000000..72b4af9 --- /dev/null +++ b/man/html/pmie/babylon.perdisk.index diff --git a/man/html/pmie/babylon.perdisk.meta b/man/html/pmie/babylon.perdisk.meta Binary files differnew file mode 100644 index 0000000..6004327 --- /dev/null +++ b/man/html/pmie/babylon.perdisk.meta diff --git a/man/html/pmie/disk.pmie b/man/html/pmie/disk.pmie new file mode 100644 index 0000000..3a15780 --- /dev/null +++ b/man/html/pmie/disk.pmie @@ -0,0 +1,7 @@ +// +// pmie configuration file starting point for the pmie lab +// + +// show any disk doing more than 40 I/Os per second +some_inst ( disk.dev.total > 40 ) -> print "busy IOPs:" " %i: %v"; + diff --git a/man/html/pmie/pswitch.pmie b/man/html/pmie/pswitch.pmie new file mode 100644 index 0000000..34c706a --- /dev/null +++ b/man/html/pmie/pswitch.pmie @@ -0,0 +1,5 @@ +// Sample interval +delta = 5 sec; + +// If context switch rate exceeds 2000 per second, display an alarm notifier. +kernel.all.pswitch > 2000 count/sec -> alarm "high context switch rate"; diff --git a/man/html/pmie/pswitch.view b/man/html/pmie/pswitch.view new file mode 100644 index 0000000..1e6f9d5 --- /dev/null +++ b/man/html/pmie/pswitch.view @@ -0,0 +1,14 @@ +#kmchart +version 1 + +chart title "CPU Utilization" style utilization + plot legend "User" color #2d2de2 metric kernel.all.cpu.user + plot legend "Kernel" color #e71717 metric kernel.all.cpu.sys + optional-plot legend "Nice" color #c2f3c2 metric kernel.all.cpu.nice + optional-plot legend "Intr" color #cdcd00 metric kernel.all.cpu.intr + optional-plot legend "Wait" color #00cdcd metric kernel.all.cpu.wait.total + optional-plot legend "Steal" color #fba2f5 metric kernel.all.cpu.steal + plot legend "Idle" color #16d816 metric kernel.all.cpu.idle + +chart title "Context Switch Rate" style plot + plot color yellow metric kernel.all.pswitch |