Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to see if my process makes a lot of context switches. I also want to see how manpulating task groups affects the number of context switches.

share|improve this question
What OS? What version? What kernel? – Mikel May 25 '12 at 16:48
GNU/Linux 2.6.18 – luntain May 25 '12 at 17:28
2  
Check /proc/[pid]/status – Kevin May 25 '12 at 17:34

1 Answer

pidstat(1) - Report statistics for Linux tasks. According to man pidstat it's so easy as just pidstat -w …

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.