context switch 很高,谁干的

05 Dec 2011 / Edit / History

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

Tags: linux

Related Posts:

comments powered by Disqus
Copyright © 2017 LI Daobing, Powered by github:pages, Jekyll, bootstrap, Designed by quanquan
Fork me on GitHub