Re: How to measure time spent in context switch

2012-07-16 Thread Victor Rodriguez
Rodriguez On Mon, Jul 16, 2012 at 2:28 PM, Manavendra Nath Manav mnm.ker...@gmail.com wrote: How to measure time spent in context switch in Linux i.e. the time the application stays suspended while the kernel is doing something else. I don't want to use any profiling tools. What approach should I

Re: How to measure time spent in context switch

2012-07-16 Thread Mulyadi Santosa
Hi... On Tue, Jul 17, 2012 at 2:28 AM, Manavendra Nath Manav mnm.ker...@gmail.com wrote: How to measure time spent in context switch in Linux i.e. the time the application stays suspended while the kernel is doing something else. I don't want to use any profiling tools. What approach should I

Re: How to measure time spent in context switch

2012-07-16 Thread Mulyadi Santosa
Hi... :) Sorry for jumping in... On Tue, Jul 17, 2012 at 3:09 AM, Manavendra Nath Manav mnm.ker...@gmail.com wrote: .. If we can set scheduler() process affinity to one single core, will it affect the measurements and predictability of context switches? I think it will affect, up to some