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