Re: [RFC 00/15] x86_64: Optimize percpu accesses

From: Jeremy Fitzhardinge
Date: Wed Jul 09 2008 - 18:33:24 EST


Eric W. Biederman wrote:
Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> writes:

Note also that the 32 bit offset size limits the offset that can be added to the
segment register. You either need to place the per cpu area either in the last
2G of the address space or in the first 2G. The zero based approach removes that
limitation.

Good point. Which means that fundamentally we need to come up with a special
linker segment or some other way to guarantee that the offsets we use for per
cpu variables is within 2G of the segment register.

Which means that my idea of using the technique we use on x86_32 will not work.

No, the compiler memory model we use guarantees that everything will be within 2G of each other. The linker will spew loudly if that's not the case.

J

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