linux下查找最耗iowait的进程

 

linux下查找最耗iowait的进程
抓哪个进程干坏事前要先停掉syslog
service syslog stop

打开block dump:
echo 1 > /proc/sys/vm/block_dump

统计:
dmesg | egrep "READ|WRITE|dirtied" | egrep -o '([a-zA-Z]*)' | sort | uniq -c | sort -rn | head
1423 kjournald
1075 pdflush
209 indexer
3 cronolog
1 rnald
1 mysqld

不要忘记在抓完之 后关掉block_dump和启动syslog:
echo 0 > /proc/sys/vm/block_dump
service syslog start

http://hi.baidu.com/farmerluo/blog/item/a99b6b63b5c29c6c0d33fae1.html

你可能感兴趣的:(linux,iowait)