Re: [PATCH 1/2]percpu: introduce read mostly percpu API

From: H. Peter Anvin
Date: Wed Oct 20 2010 - 02:01:17 EST


On 10/19/2010 10:18 PM, Eric Dumazet wrote:
>
> Could you precisely describe why grouping together read mostly percpu
> variables is a win ? Especially when you add in your next patch a single
> variable ?
>

The logic is that those variables are less likely to end up dirty in the
cache. It is, however, much less of an issue for percpu variables,
since dirty lines there aren't quite so likely to bounce around.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
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/