How to measure time spent in context switch

Mulyadi Santosa mulyadi.santosa at gmail.com
Tue Jul 17 00:46:17 EDT 2012


Hi... :)

Sorry for jumping in...

On Tue, Jul 17, 2012 at 3:09 AM, Manavendra Nath Manav
<mnm.kernel at 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 unknown degree. On inter processor
scheduling, there would happen cache remote invalidation and process
task_struct transfer (IIRC process descripter is per cpu).

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list