Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

iotop(1m)                                       USER COMMANDS                                      iotop(1m)

       iotop - display top disk I/O events by process. Uses DTrace.

       iotop [-C] [-D|-o|-P] [-j|-Z] [-d device] [-f filename] [-m mount_point] [-t top] [interval [count]]

       iotop tracks disk I/O by process, and prints a summary report that is refreshed every interval.

       This is measuring disk events that have made it past system caches.

       Since this uses DTrace, only users with root privileges can run this command.

       -C     don't clear the screen

       -D     print delta times - elapsed, us

       -j     print project ID

       -o     print disk delta times, us

       -P     print %I/O (disk delta times)

       -Z     print zone ID

       -d device
              instance name to snoop (eg, dad0)

       -f filename
              full pathname of file to snoop

       -m mount_point
              mountpoint for filesystem to snoop

       -t top print top number only

       Default output, print summary every 5 seconds
              # iotop

       One second samples,
              # iotop 1

       print %I/O (time based),
              # iotop -P

       Snoop events on the root filesystem only,
              # iotop -m /

       Print top 20 lines only,
              # iotop -t 20

       Print 12 x 5 second samples, scrolling,
              # iotop -C 5 12

       UID    user ID

       PID    process ID

       PPID   parent process ID

       PROJ   project ID

       ZONE   zone ID

       CMD    command name for the process

       DEVICE device name

       MAJ    device major number

       MIN    device minor number

       D      direction, Read or Write

       BYTES  total size of operations, bytes

              total  elapsed  times  from  request to completion, us (this is the elapsed time from the disk
              request (strategy) to the disk completion (iodone))

              total times for disk to complete request, us (this is the time for the disk to  complete  that
              event  since  it's last event (time between iodones), or, the time to the strategy if the disk
              had been idle)

       %I/O   percent disk I/O, based on time (DISKTIME)

       load   1 minute load average

       disk_r total disk read Kb for sample

       disk_w total disk write Kb for sample

       See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs  may
       include full worked examples with verbose descriptions explaining the output.

       iotop will run forever until Ctrl-C is hit, or the specified interval is reached.

       Brendan Gregg [Sydney, Australia]

       iosnoop(1M), dtrace(1M)

version 0.75                                    Oct 25, 2005                                       iotop(1m)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.