Re: [tip:sched/core] sched: cpuacct: Use bigger percpu counter batch values for stats counters

Anton Blanchard
2009-08-20T06:29:42Z

Hi,

> Could you share contex-switch-test program ?
> I'd like to play with it to find out what I can do against percpu counter.

Sure:

http://ozlabs.org/~anton/junkcode/context_switch.c

Very simple, just run it once per core:

for i in `seq 0 31`
do
taskset -c $i ./context_switch &
done

Then look at the context switch rates in vmstat.

Anton