Re: [GIT RFC] percpu: use dynamic percpu allocator as the default percpu allocator

Martin Schwidefsky
2009-04-01T08:01:58Z

On Tue, 31 Mar 2009 17:10:40 -0400 (EDT)
Christoph Lameter <cl@linux.com> wrote:

> On Tue, 31 Mar 2009, Martin Schwidefsky wrote:
>
> > > Please include the patch inline next time.
> >
> > What do you mean by "inline"? That the patch should not be the last
> > thing in the mail?
>
> The patch needs to show up when I press reply and not vanish. I guess this
> was an attachment.

Hmm, interesting. The patch was part of the message body but came after
the signature. I'll make the signature the last thing in my mails in the
future.

> > I don't see how changes to the initial per cpu segment should help with
> > access to per cpu symbols.
>
> Can you convince the linker to place the per cpu segment > 4G away from
> the code? Its a virtual address right?

Yes it is a virtual address but the linker has nothing to do with it.
It is the compiler that makes the assumption that an static variable
can be accessed within < 4G. The module loader then rips the code and
the .data.percpu section apart and places them at memory locations
which are farther away than 4GB.

--
blue skies,
Martin.

"Reality continues to ruin my life." - Calvin.