linux查看哪個進程占用磁盤IO
方法一:
$ iotop -oP
命令的含義:只顯示有I/O行為的進程
測試結果:
方法二:
$ pidstat -d 1
命令的含義:展示I/O統計,每秒更新一次
測試結果:
注意:
以上兩個命令都需要內核版本支持kernels 2.6.20 and later only
更多的參數請參閱man手冊
原文出自:http://blog.csdn.net/daiyudong2020/article/details/53863314
End;