# Track Cumulative IO

This section describes how to track the cumulative amount of I/O to the system.

traceio.stp

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.

Note that also uses the local variable `$return`, which is also used by from .

Sample Output

    [...]
               Xorg r:   583401 KiB w:        0 KiB
           floaters r:       96 KiB w:     7130 KiB
    multiload-apple r:      538 KiB w:      537 KiB
               sshd r:       71 KiB w:       72 KiB
    pam_timestamp_c r:      138 KiB w:        0 KiB
            staprun r:       51 KiB w:       51 KiB
              snmpd r:       46 KiB w:        0 KiB
              pcscd r:       28 KiB w:        0 KiB
         irqbalance r:       27 KiB w:        4 KiB
              cupsd r:        4 KiB w:       18 KiB

               Xorg r:   588140 KiB w:        0 KiB
           floaters r:       97 KiB w:     7143 KiB
    multiload-apple r:      543 KiB w:      542 KiB
               sshd r:       72 KiB w:       72 KiB
    pam_timestamp_c r:      138 KiB w:        0 KiB
            staprun r:       51 KiB w:       51 KiB
              snmpd r:       46 KiB w:        0 KiB
              pcscd r:       28 KiB w:        0 KiB
         irqbalance r:       27 KiB w:        4 KiB
              cupsd r:        4 KiB w:       18 KiB

script examples tracking cumulative I/O
examples of SystemTap scripts tracking cumulative I/O
tracking cumulative I/O examples of SystemTap scripts
cumulative I/O, tracking examples of SystemTap scripts
monitoring cumulative I/O examples of SystemTap scripts
printing I/O activity (cumulative) examples of SystemTap scripts
local variables sample usage $return
variables (local) sample usage $return
$return sample usage local variables