data.py get_cmdline: use errors=replace for unicode errors
[iotop.git] / iotop.8
blobb95cb8c3b063dad9ef6a88f2aed9991775d73a16
1 .TH IOTOP "8" "October 1, 2021"
2 .SH NAME
3 iotop \- simple top\-like I/O monitor
4 .SH SYNOPSIS
5 .B iotop
6 [\fIOPTIONS\fR]
7 .SH DESCRIPTION
8 iotop watches I/O usage information output by the Linux kernel (requires
9 2.6.20 or later) and displays a table of current I/O usage by processes
10 or threads on the system. At least the CONFIG_TASK_DELAY_ACCT,
11 CONFIG_TASK_IO_ACCOUNTING, CONFIG_TASKSTATS and CONFIG_VM_EVENT_COUNTERS
12 options need to be enabled in your Linux kernel build configuration and
13 since Linux kernel 5.14, the kernel.task_delayacct sysctl enabled.
14 .PP
15 iotop displays columns for the I/O bandwidth read and written by each
16 process/thread during the sampling period. It also displays the percentage
17 of time the thread/process spent while swapping in and while waiting on I/O. For each process, its I/O priority (class/level) is shown.
18 .PP
19 In addition, the total I/O bandwidth read and written during the sampling
20 period is displayed at the top of the interface.
21 \fBTotal DISK READ\fR and \fBTotal DISK WRITE\fR values represent total read
22 and write bandwidth between processes and kernel threads on the one side and
23 kernel block device subsystem on the other. While \fBCurrent DISK READ\fR and
24 \fBCurrent DISK WRITE\fR values represent corresponding bandwidths for current
25 disk I/O between kernel block device subsystem and underlying hardware (HDD, SSD, etc.).
26 Thus \fBTotal\fR and \fBCurrent\fR values may not be equal at any given moment of time
27 due to data caching and I/O operations reordering that take place inside Linux kernel.
28 .PP
29 Use the left and right arrows to change the sorting, r to reverse the
30 sorting order, o to toggle the \-\-only option, p to toggle the \-\-processes option, a to toggle the \-\-accumulated option, q to quit or i to change the priority of a thread or a process's thread(s). Any other key will force a refresh.
31 .SH OPTIONS
32 .TP
33 \fB\-\-version\fR
34 Show the version number and exit
35 .TP
36 \fB\-h\fR, \fB\-\-help\fR
37 Show usage information and exit
38 .TP
39 \fB\-o\fR, \fB\-\-only\fR
40 Only show processes or threads actually doing I/O, instead of showing all processes or threads. This can be dynamically toggled by pressing o.
41 .TP
42 \fB\-b\fR, \fB\-\-batch\fR
43 Turn on non\-interactive mode.
44 Useful for logging I/O usage over time.
45 .TP
46 \fB\-n\fR NUM, \fB\-\-iter\fR=\fINUM\fR
47 Set the number of iterations before quitting (never quit by default).
48 This is most useful in non\-interactive mode.
49 .TP
50 \fB\-d\fR SEC, \fB\-\-delay\fR=\fISEC\fR
51 Set the delay between iterations in seconds (1 second by default).
52 Accepts non-integer values such as 1.1 seconds.
53 .TP
54 \fB\-p\fR PID, \fB\-\-pid\fR=\fIPID\fR
55 A list of processes/threads to monitor (all by default).
56 .TP
57 \fB\-u\fR USER, \fB\-\-user\fR=\fIUSER\fR
58 A list of users to monitor (all by default)
59 .TP
60 \fB\-P\fR, \fB\-\-processes\fR
61 Only show processes. Normally iotop shows all threads.
62 .TP
63 \fB\-a\fR, \fB\-\-accumulated\fR
64 Show accumulated I/O instead of bandwidth. In this mode, iotop shows the amount of I/O processes have done since iotop started.
65 .TP
66 \fB\-k\fR, \fB\-\-kilobytes\fR
67 Use kilobytes instead of a human friendly unit. This mode is useful when scripting the batch mode of iotop. Instead of choosing the most appropriate unit iotop will display all sizes in kilobytes.
68 .TP
69 \fB\-t\fR, \fB\-\-time\fR
70 Add a timestamp on each line (implies \-\-batch). Each line will be prefixed by the current time.
71 .TP
72 \fB\-q\fR, \fB\-\-quiet\fR
73 suppress some lines of header (implies \-\-batch). This option can be specified up to three times to remove header lines.
74 .TP
75 \fB\-\-no\-help\fR
76 Suppress the keyboard shortcuts help display.
77 .RS
78 .PD 0
79 .TP
80 .B \-q
81 column names are only printed on the first iteration,
82 .TP
83 .B \-qq
84 column names are never printed,
85 .TP
86 .B \-qqq
87 the I/O summary is never printed.
88 .PD 1
89 .RE
90 .SH SEE ALSO
91 .BR ionice (1),
92 .BR top (1),
93 .BR vmstat (1),
94 .BR atop (1),
95 .BR htop (1)
96 .SH AUTHOR
97 iotop was written by Guillaume Chazarain.
98 .PP
99 This manual page was started by Paul Wise for the
100 Debian project and is placed in the public domain.