Re: [patch V3] percpu_counter: scalability works
From: Christoph Lameter
Date: Tue May 17 2011 - 09:55:41 EST
On Tue, 17 May 2011, Tejun Heo wrote:
> Hello,
>
> On Tue, May 17, 2011 at 03:00:23PM +0200, Eric Dumazet wrote:
> > Absolutely not. Its slow path yes, but not super-slow.
>
> I was speaking in relative terms. We're talking about local only fast
> path vs. something which hits every percpu counter likely causing
> cache misses in many of them. It's bound to be multiple orders of
> magnitude heavier than fast path.
Well lets just adopt the system that vm statistics use. Bound the error by
time and batch and allow the user to change the batch if more accuracy is
desired.
The _sum function is optional and should it should be explained that the
result *could* be better but dont count on it.
--
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/