diff options
Diffstat (limited to 'SystemTap_Beginners_Guide/traceiosect.html')
| -rw-r--r-- | SystemTap_Beginners_Guide/traceiosect.html | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/SystemTap_Beginners_Guide/traceiosect.html b/SystemTap_Beginners_Guide/traceiosect.html index 60c29a71..f2735807 100644 --- a/SystemTap_Beginners_Guide/traceiosect.html +++ b/SystemTap_Beginners_Guide/traceiosect.html | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | 
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">5.2.3. Track Cumulative IO</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.0.0" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="SystemTap-SystemTap_Beginners_Guide-2.6-en-US-2.0-1" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /><link rel="next" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /></head><body><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="https://fedorahosted.org/publican"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="traceiosect"></a>5.2.3. Track Cumulative IO</h3></div></div></div><a id="idm47951460788400" class="indexterm"></a><a id="idm47951469148976" class="indexterm"></a><a id="idm47951459802416" class="indexterm"></a><a id="idm47951415698160" class="indexterm"></a><a id="idm47951426523728" class="indexterm"></a><a id="idm47951429320848" class="indexterm"></a><div class="para"> | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">5.2.3. Track Cumulative IO</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.1.3" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="SystemTap-SystemTap_Beginners_Guide-2.6-en-US-2.0-1" /><link rel="home" href="index.html" title="SystemTap Beginners Guide" /><link rel="up" href="mainsect-disk.html" title="5.2. Disk" /><link rel="prev" href="iotimesect.html" title="5.2.2. Tracking I/O Time For Each File Read or Write" /><link rel="next" href="traceio2sect.html" title="5.2.4. I/O Monitoring (By Device)" /></head><body><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="https://fedorahosted.org/publican"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong></a></li><li class="home">SystemTap Beginners Guide</li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="traceiosect"> | 
| 3 | </a>5.2.3. Track Cumulative IO</h3></div></div></div><a id="idm214011790880" class="indexterm"></a><a id="idm214018821584" class="indexterm"></a><a id="idm213969128960" class="indexterm"></a><a id="idm213973159488" class="indexterm"></a><a id="idm213974818528" class="indexterm"></a><a id="idm213979313600" class="indexterm"></a><div class="para"> | ||
| 3 | This section describes how to track the cumulative amount of I/O to the system. | 4 | This section describes how to track the cumulative amount of I/O to the system. | 
| 4 | </div><div class="formalpara"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio.stp</div> | 5 | </div><div class="para"><div xmlns:d="http://docbook.org/ns/docbook" class="title">traceio.stp</div> | 
| 5 | 6 | ||
| 6 | <pre class="programlisting">#! /usr/bin/env stap | 7 | <pre class="programlisting">#! /usr/bin/env stap | 
| 7 | # traceio.stp | 8 | # traceio.stp | 
| @@ -55,9 +56,10 @@ probe timer.s(1) { | |||
| 55 | </pre> | 56 | </pre> | 
| 56 | </div><div class="para"> | 57 | </div><div class="para"> | 
| 57 | <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> prints the top ten executables generating I/O traffic over time. In addition, it also tracks the cumulative amount of I/O reads and writes done by those ten executables. This information is tracked and printed out in 1-second intervals, and in descending order. | 58 | <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> prints the top ten executables generating I/O traffic over time. In addition, it also tracks the cumulative amount of I/O reads and writes done by those ten executables. This information is tracked and printed out in 1-second intervals, and in descending order. | 
| 58 | </div><a id="idm47951422444624" class="indexterm"></a><a id="idm47951457385200" class="indexterm"></a><a id="idm47951455674544" class="indexterm"></a><div class="para"> | 59 | </div><a id="idm214011513184" class="indexterm"></a><a id="idm213967543504" class="indexterm"></a><a id="idm214026148288" class="indexterm"></a><div class="para"> | 
| 59 | Note that <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> also uses the local variable <code class="command">$return</code>, which is also used by <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from <a class="xref" href="mainsect-disk.html#disktop">Section 5.2.1, “Summarizing Disk Read/Write Traffic”</a>. | 60 | Note that <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> also uses the local variable <code class="command">$return</code>, which is also used by <a class="xref" href="mainsect-disk.html#scriptdisktop">disktop.stp</a> from <a class="xref" href="mainsect-disk.html#disktop">Section 5.2.1, “Summarizing Disk Read/Write Traffic”</a>. | 
| 60 | </div><div class="example"><a id="traceiooutput"></a><p class="title"><strong>Example 5.8. <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...] | 61 | </div><div class="example"><a id="traceiooutput"> | 
| 62 | </a><p class="title"><strong>Example 5.8. <a class="xref" href="traceiosect.html#traceio">traceio.stp</a> Sample Output</strong></p><div class="example-contents"><pre class="screen">[...] | ||
| 61 | Xorg r: 583401 KiB w: 0 KiB | 63 | Xorg r: 583401 KiB w: 0 KiB | 
| 62 | floaters r: 96 KiB w: 7130 KiB | 64 | floaters r: 96 KiB w: 7130 KiB | 
| 63 | multiload-apple r: 538 KiB w: 537 KiB | 65 | multiload-apple r: 538 KiB w: 537 KiB | 
| @@ -78,4 +80,4 @@ pam_timestamp_c r: 138 KiB w: 0 KiB | |||
| 78 | snmpd r: 46 KiB w: 0 KiB | 80 | snmpd r: 46 KiB w: 0 KiB | 
| 79 | pcscd r: 28 KiB w: 0 KiB | 81 | pcscd r: 28 KiB w: 0 KiB | 
| 80 | irqbalance r: 27 KiB w: 4 KiB | 82 | irqbalance r: 27 KiB w: 4 KiB | 
| 81 | cupsd r: 4 KiB w: 18 KiB</pre></div></div><br class="example-break" /></div><ul class="docnav"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong>5.2.2. Tracking I/O Time For Each File Read or Wr...</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong>5.2.4. I/O Monitoring (By Device)</a></li></ul></body></html> \ No newline at end of file | 83 | cupsd r: 4 KiB w: 18 KiB</pre></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="iotimesect.html"><strong>Prev</strong>5.2.2. Tracking I/O Time For Each File Read or Wr...</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="traceio2sect.html"><strong>Next</strong>5.2.4. I/O Monitoring (By Device)</a></li></ul></body></html> \ No newline at end of file | 
