Re: [PATCH UPDATED] percpu: use dynamic percpu allocator as the default percpu allocator

Christoph Lameter
2009-04-01T18:12:56Z

On Wed, 1 Apr 2009, Ingo Molnar wrote:

> > Yes its better for the variables to be all together if its not on hot
> > cache paths. And its better to keep the __read_mostly segment reserved for
> > frequently accessed variables.
>
> We need __access_rarely i guess.

Better leave as is. __read_mostly is for hot code paths. __read_mostly
should be packed as tightly as possible to increase the chance that one
cacheline includes multiple of the critical variables for the hot code
paths. Too much __read_mostly defeats its purpose.