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

H. Peter Anvin
2010-10-20T06:01:15Z

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.