1、 Linux 内核大于 2.6.20 以上的,可以用 iotop
iotop命令是专门显示硬盘IO的命令,界面风格类似top命令。这个命令只有在kernelv2.6.20及以后的版本中才有。
直接yum安装,或者系统光盘里有包。
yum install iotop -y
[root@server ~]# iotop -o
2、方法:
[root@server ~]# dmesg | egrep "READ|WRITE|dirtied" | egrep -o '([a-zA-Z]*)' | sort | uniq -c | sort -rn | head
53 sda
52 on
47 block
32 READ
31 bash
15 WRITE
11 flush
5 inode
5 dirtied
4 sadc