# Track Cumulative IO

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

## traceio.stp

traceio 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 traceio also uses the local variable `$return`, which is also used by scriptdisktop from disktop.

## traceio 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