[root@test ~]# cat 5.sh
/etc/init.d/syslog stop
echo 1 > /proc/sys/vm/block_dump
sleep 60
dmesg | awk '/(READ|WRITE|dirtied)/ {process[$1]++} END {for (x in process) \
print process[x],x}' |sort -nr |awk '{print $2 " " $1}' | head -n 10
echo 0 > /proc/sys/vm/block_dump
/etc/init.d/syslog start
[root@test ~]# sh 5.sh
Shutting down kernel logger: [FAILED]
Shutting down system logger: [FAILED]
kjournald(4204): 484
httpd(20713): 109
httpd(20668): 96
httpd(20674): 86
httpd(15782): 77
httpd(16293): 68
httpd(20708): 66
httpd(15858): 59
httpd(20612): 57
httpd(15832): 57
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
被抓出来了。httpd kjournald 进程的问题
阅读(710) | 评论(0) | 转发(0) |