From 021dcea6a8cf44ca4a2e7a3d6f76fc1b8a9c88da Mon Sep 17 00:00:00 2001 From: ddomingo Date: Fri, 28 Nov 2008 08:53:34 +1000 Subject: more indexes --- .../en-US/Useful_Scripts-disktop.xml | 70 ++++++++++++++++++- .../en-US/Useful_Scripts-iotop.xml | 26 +++++++- .../en-US/Useful_Scripts-paracallgraph.xml | 78 +++++++++++++++++++++- .../en-US/Useful_Scripts-traceio.xml | 30 +++++++++ .../en-US/Useful_Scripts-traceio2.xml | 75 ++++++++++++++++++++- 5 files changed, 271 insertions(+), 8 deletions(-) (limited to 'doc/SystemTap_Beginners_Guide') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-disktop.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-disktop.xml index 028ab530..b57486d9 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-disktop.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-disktop.xml @@ -5,14 +5,60 @@
Summarizing Disk Read/Write Traffic - + +script examples +summarizing disk I/O traffic + + + +examples of SystemTap scripts +summarizing disk I/O traffic + + + +summarizing disk I/O traffic +script examples + NO ENTRY IN WAR STORIES: Summarize Disk Read/Write Traffic http://sourceware.org/systemtap/examples/io/disktop.stp - - + + +disk I/O traffic, summarizing +script examples + + + + +I/O traffic, summarizing +script examples + + + + + +heaviest disk reads/writes, identifying +script examples + + + + + + +summarizing disk I/O traffic +script examples + + + + + + +identifying heaviest disk reads/writes +script examples + + This section describes how to identify which processes are performing the heaviest disk reads/writes to the system. @@ -41,6 +87,24 @@ BYTES — the amount of data read to or written from disk. + + + +script examples +ctime(), example of usage + + + +examples of SystemTap scripts +ctime(), example of usage + + + +ctime(), example of usage +script examples + + + The time and date in the output of is returned by the functions ctime() and gettimeofday_s(). ctime() derives calendar time in terms of seconds passed since the Unix epoch (January 1, 1970). gettimeofday_s() counts the actual number of seconds since Unix epoch, which gives a fairly accurate human-readable timestamp for the output. diff --git a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-iotop.xml b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-iotop.xml index 6742740f..8ec2af90 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-iotop.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts-iotop.xml @@ -4,6 +4,30 @@
Periodically Print I/O Activity + +script examples +monitoring I/O activity + + + +examples of SystemTap scripts +monitoring I/O activity + + + +monitoring I/O activity +examples of SystemTap scripts + + + +I/O activity, monitoring +examples of SystemTap scripts + + + +printing I/O activity (periodically) +examples of SystemTap scripts + This section describes how to monitor I/O activity on the system. @@ -50,7 +74,7 @@ - displays top I/O writes and reads within a random 10-second interval. Note that also detects I/O resulting from SystemTap activity — also displays reads done by staprun. + displays top I/O writes and reads within a random 10-second interval. Note that also detects I/O resulting from SystemTap activity — displays reads done by staprun. - + +script examples +stat -c + + + +examples of SystemTap scripts +stat -c + + + +stat -c +examples of SystemTap scripts + + + +script examples +whole device number (usage as a command-line argument) + + + +examples of SystemTap scripts +whole device number (usage as a command-line argument) + + + +whole device number (usage as a command-line argument) +examples of SystemTap scripts + takes 1 argument: the whole device number. To get this number, use stat -c "0x%D" directory, where directory is located in the device you wish to monitor. - + +script examples +usrdev2kerndev() + + + +examples of SystemTap scripts +usrdev2kerndev() + + + +usrdev2kerndev() +examples of SystemTap scripts + The usrdev2kerndev() function converts the whole device number into the format understood by the kernel. The output produced by usrdev2kerndev() is used in conjunction with the MKDEV(), MINOR(), and MAJOR() functions to determine the major and minor numbers of a specific device. The output of includes the name and ID of any process performing a read/write, the function it is performing (i.e. vfs_read or vfs_write), and the device number (in hex format). -- cgit