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

From: Anton Blanchard
Date: Thu Aug 20 2009 - 02:30:27 EST



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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/