LinuxCommandLibrary

iotop

Monitor disk I/O usage by process

TLDR

Start top-like I/O monitor

$ sudo iotop
copy

Show only processes or threads actually doing I/O
$ sudo iotop [[-o|--only]]
copy

Show I/O usage in non-interactive mode
$ sudo iotop [[-b|--batch]]
copy

Show only I/O usage of processes (default is to show all threads)
$ sudo iotop [[-P|--processes]]
copy

Show I/O usage of given PID(s)
$ sudo iotop [[-p|--pid]] [PID]
copy

Show I/O usage of a given user
$ sudo iotop [[-u|--user]] [user]
copy

Show accumulated I/O instead of bandwidth
$ sudo iotop [[-a|--accumulated]]
copy

SYNOPSIS

iotop [options]

PARAMETERS

-o, --only
    Only show processes that are actually doing I/O.

-b, --batch
    Run in non-interactive mode. Useful for logging output to a file.

-n NUM, --iter=NUM
    Number of iterations before quitting. Default is until interrupted.

-d SEC, --delay=SEC
    Seconds between iterations. The minimum allowed value is 0.1.

-p PID, --pid=PID
    Only show a particular process.

-u USER, --user=USER
    Only show processes owned by a particular user.

-P, --processes
    Show I/O for each process instead of aggregated threads.

-k, --kilobytes
    Use kilobytes instead of a human friendly unit.

-q, --quiet
    Suppress some header lines (implies --batch).

-qq
    Suppress all header lines.

-t, --time
    Add a timestamp on each line.

-C, --cumulative
    Show cumulative I/O instead of bandwidth.

-h, --help
    Show help message and exit.

-v, --version
    Show version number and exit.

DESCRIPTION

CAVEATS

INTERPRETING OUTPUT

SEE ALSO

top(1), ps(1), vmstat(8), iostat(1)

Copied to clipboard