Messages in this thread | | | Date | Thu, 20 Aug 2009 16:24:51 +1000 | From | Anton Blanchard <> | Subject | Re: [tip:sched/core] sched: cpuacct: Use bigger percpu counter batch values for stats counters |
| |
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
| |