linux系统上可以使用(centos 2.6.18-144开始支持),dstat版本至少是:dstat-0.6.7-1.rf.noarch.rpm
安装
wget -c http://linux.web.psi.ch/dist/scientific/5/gfa/all/dstat-0.6.7-1.rf.noarch.rpm
rpm -Uvh dstat-0.6.7-1.rf.noarch.rpm
使用
# dstat -M topio -d -M topbio
—-most-expensive—- -dsk/total- —-most-expensive—-
i/o process | read writ| block i/o process
owl_agent 9642B: 439B| 38k 42k|init 8317B: 41B
nginx 0 :2005B| 0 26k|
gmond 0 : 16k| 0 17k|
gmond 0 : 444B| 0 0 |
其他
低于这个kernel版本的可以参考这个方法:http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/
最后多谢光哥和W总~
转载自:http://www.ourlinux.net/operating-system/how-to-find-per-process-io-statistics-on-linux-2/