context switch 很高,谁干的

2.6.23 及以上内核可用

# grep voluntary_ctxt_switches /proc/*/status | sort -rnk2 | head
/proc/1570/status:voluntary_ctxt_switches: 1029453
/proc/8143/status:voluntary_ctxt_switches: 835492
/proc/2463/status:voluntary_ctxt_switches: 710566
/proc/12204/status:voluntary_ctxt_switches: 584719
/proc/2463/status:nonvoluntary_ctxt_switches: 344170
/proc/12204/status:nonvoluntary_ctxt_switches: 252147
/proc/9684/status:voluntary_ctxt_switches: 200307
/proc/10354/status:voluntary_ctxt_switches: 165276
/proc/3/status:voluntary_ctxt_switches: 157927
/proc/10337/status:voluntary_ctxt_switches: 105313

 

参考:
http://careers.directi.com/display/tu/Understanding+Processes+in+Linux

posted @ 2011-12-05 22:59  LI Daobing  阅读(3215)  评论(0编辑  收藏  举报