Re: [PATCH] sched: cpuacct: Use bigger percpu counter batch values for stats counters

Anton Blanchard
2010-01-18T08:26:16Z

Hi Peter,

> Seems like a good idea, but isn't that batch number rather static? If
> so, computing it in some init path would save that multiply on the
> actual accounting path.

It is mostly static, but percpu_counter_batch does change with hotplug
operations. Adding a hotplug notifier felt like a lot of work but I was
worried we have issues if we didn't scale with hotplug add operations.

Anton