Disk I / O remains high, to see the I / O intensive process through what?

 iotop command is used to monitor a disk I / O usage is top class tool. iotop top having similar UI, including information PID, the user, I / O, and other processes. IO statistics under Linux tools such as iostat, nmon statistics such as most are only cases per device to read and write, if you want to know how each process is using the IO of more trouble, use the command iotop can easily see. iotop written in the Python language, it requires Python2.5 (and above) and Linux kernel2.6.20 (and above). and code for providing an active iotop rpm package

yum install iotop -y to install

 Command Options

-o: show only io operation process

-b: Batch showed no interaction is mainly used to file. 

-n NUM: NUM show times, mainly for non-interactive mode. 

-d SEC: SEC seconds display time interval. 

-p PID: monitoring of process pid.

-u USER: User monitoring process.

 

 example

# iotop -o

Total 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 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]

#iotop descending order lists all processes in accordance with the IO occupied.

 You can switch the display by an interactive command options

#iotop -o more humane some lists only the highest occupancy IO, and with occupancy.

Guess you like

Origin www.cnblogs.com/insane-Mr-Li/p/11578977.html