Re: [rfc 08/45] cpu alloc: x86 support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Tuesday, November 20, 2007 - 5:01 am

On Tuesday 20 November 2007 04:50, Christoph Lameter wrote:

That would either require more than 4 levels or larger pages
in page tables.


Above -2GB, otherwise you cannot address them

If you can move all the other CPUs somewhere else it might work.

But even then 16MB/cpu max is unrealistic. Perhaps 1M/CPU 
max -- then 16k CPU would be 128GB which could still fit into the existing
vmalloc area.


For everything that needs the -31bit offsets; that is everything linked


The kernel model requires kernel and modules and everything else
linked be in negative -31bit space. That is how the kernel code model is 
defined.

You could in theory move the modules, but then you would need to implement
a full PIC dynamic linker for them  first and also increase runtime overhead
for them because they would need to use a GOT/PLT.

Or you could switch kernel over to the large model, which is very costly
and has toolkit problems.

Or use the UML trick and run the kernel PIC but again that causes
overhead.

I suspect all of this  would cause far more overhead all over the kernel than 
you could ever save with the per cpu data in your fast paths.

-Andi
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[rfc 08/45] cpu alloc: x86 support, clameter, (Mon Nov 19, 6:11 pm)
Re: [rfc 08/45] cpu alloc: x86 support, H. Peter Anvin, (Mon Nov 19, 6:35 pm)
Re: [rfc 08/45] cpu alloc: x86 support, H. Peter Anvin, (Mon Nov 19, 7:18 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Mon Nov 19, 8:16 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Nick Piggin, (Mon Nov 19, 8:37 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Mon Nov 19, 8:50 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Nick Piggin, (Mon Nov 19, 8:59 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Tue Nov 20, 5:01 am)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Tue Nov 20, 5:05 am)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 1:35 pm)
Re: [rfc 08/45] cpu alloc: x86 support, H. Peter Anvin, (Tue Nov 20, 1:43 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Tue Nov 20, 1:51 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 1:58 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Tue Nov 20, 1:59 pm)
Re: [rfc 08/45] cpu alloc: x86 support, H. Peter Anvin, (Tue Nov 20, 2:01 pm)
Re: [rfc 08/45] cpu alloc: x86 support, H. Peter Anvin, (Tue Nov 20, 2:06 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 2:33 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 2:34 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 5:10 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 6:16 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Tue Nov 20, 6:36 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Tue Nov 20, 7:08 pm)
Re: [rfc 08/45] cpu alloc: x86 support, Andi Kleen, (Wed Nov 21, 6:08 am)
Re: [rfc 08/45] cpu alloc: x86 support, Christoph Lameter, (Wed Nov 21, 12:01 pm)
Re: [rfc 08/45] cpu alloc: x86 support, John Richard Moser, (Mon Nov 26, 9:12 pm)