From 6820dda776595280e6dc535df32648b47d21e329 Mon Sep 17 00:00:00 2001 From: ddomingo Date: Tue, 5 May 2009 15:43:56 +1000 Subject: added ioblktime.stp to guide --- .../en-US/Useful_Scripts-ioblktime.xml | 111 +++++++++++++++++++++ .../en-US/Useful_SystemTap_Scripts.xml | 2 + 2 files changed, 113 insertions(+) create mode 100644 doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-ioblktime.xml (limited to 'doc/SystemTap_Beginners_Guide') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-ioblktime.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-ioblktime.xml new file mode 100644 index 00000000..e586d81a --- /dev/null +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-ioblktime.xml @@ -0,0 +1,111 @@ + + + +
+ Periodically Print I/O Block Time + +script examples +monitoring I/O block time + + + +examples of SystemTap scripts +monitoring I/O block time + + + +monitoring I/O block time +examples of SystemTap scripts + + + +I/O block time, monitoring +examples of SystemTap scripts + + + +printing I/O block time (periodically) +examples of SystemTap scripts + + + + This section describes how to track the amount of time each block I/O requests spends + waiting for completion. This is useful in determining whether there are too many + outstanding block I/O operations at any given time. + + + + ioblktime.stp + + + + + + + + + + + computes the average waiting time for block I/O per device, + and prints a list every 10 seconds. As always, you can revise this refresh rate by + editing the specified value in probe timer.s(10), end {. + + + In some cases, there can be too many outstanding block + I/O operations, at which point the script can exceed the default number of + MAXMAPENTRIES. MAXMAPENTRIES is the maximum number of + rows in an array if the array size is not specified explicitly when declared. If the script + exceeds the default MAXMAPENTRIES value of 2048, run the script again with + the stap option -DMAXMAPENTRIES=10000. + + + + + <xref linkend="ioblktime"/> Sample Output + + device rw total (us) count avg (us) + sda W 9659 6 1609 + dm-0 W 20278 6 3379 + dm-0 R 20524 5 4104 + sda R 19277 5 3855 + + + + + displays the device name, operations performed + (rw), total wait time of all operations (total(us)), + number of operations (count), and average + wait time for all those operations (avg (us)). The times tallied by the + script are in microseconds. + + + + +
\ No newline at end of file diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml index 80e68770..4d999b53 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_SystemTap_Scripts.xml @@ -56,6 +56,7 @@ +
@@ -71,6 +72,7 @@ +