The Iotop command is a top class tool used to monitor disk I/O usage. Iotop has a UI similar to top, which includes information about PID, user, I/O, process, and so on. Most of the IO statistics tools under Linux, such as Iostat,nmon, can only be counted to the read and write of Per device, and if you want to know how each process is using IO, it is more troublesome to use the Iotop command to easily view it. Iotop is written in the Python language and requires Python2.5 (and above) and Linux kernel2.6.20 (and above versions). Iotop provides active code and RPM packages
Yum Install iotop-y can be installed
Command options
-O: Show only processes with IO operations
-B: Batch display, no interaction, mainly used for recording to file.
-N num: Displays NUM times, primarily for non-interactive mode.
-D Sec: Interval sec seconds display once.
-P PID: Monitor the process PID.
-u user: monitored process user.
Example
# iotop -ototal disk read: 0.00 b/s | total disk write: 195.81 M/s TID PRIO USER DISK read disk write swapin io> command 64250 be/4 root 0.00 B/s 8.97 M/s 0.00 % 99.99 % [flush-8:0]64267 be/4 root 0.00 b/s 197.79&nBsp M/s 0.00 % 87.11 % dd if=/dev/zero of=/tmp/1g bs=1m count= 3000 411 be/3 root 0.00 b/s   35.60 K/S  0.00 % 63.68 % [JBD2/SDA3-8]
The #iotop lists all the processes in the order of the large to small that are occupied by IO.
You can toggle the display interactively via the command options
#iotop-O is more user-friendly, only lists the most occupied IO, and uses occupancy.
This article from "Live" blog, reproduced please contact the author!
The disk I/O is not high enough, what can I do to see the processes that Occupy I/O?