How to measure time spent in context switch
From: Mulyadi Santosa <hidden>
Date: 2012-07-17 04:46:17
From: Mulyadi Santosa <hidden>
Date: 2012-07-17 04:46:17
Hi... :) Sorry for jumping in... On Tue, Jul 17, 2012 at 3:09 AM, Manavendra Nath Manav [off-list ref] 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