Most of the IO statistics tools under Linux, such as Iostat, Nmon, and so on, are only counted to the Per Device's read and write situations, and if you want to know how each process uses IO, it's a bit cumbersome.
If you can systemtap, or blktrace these things difficult to everyone, but no special tools are always not very comfortable. Fortunately, the Linux 2.6.20 kernel provides an IO accounting feature based on each process, so there's a handy tool like Iotop. It can be analyzed by Iotop tool to see which process occupies high read and write.
Website address: http://guichaz.free.fr/iotop/
Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on.
1 Connection Server Installation Iotop method:
CentOS System executes yum install Iotop
Ubuntu execute sudo apt-get install Iotop
How to install git:
git clone git://repo.or.cz/iotop.git
2 after installation, execute iotop to view the disk IO read and write situation.
3 View finished press the letter Q to exit.
Iotop Instructions for use:
Can be operated with left and right arrows, press R is the opposite direction, press O is dynamic switch
Usage Iotop-parameters
–version Viewing the version information
-h,–help View Help information for
-o,–only only show the program on the drive
-b,–batch Batch processing for logging
-N NUM set loop several times
-D sec,–delay=sec setting display time interval
Linux server analyzes server disk IO with iotop command