Re: [RFC 00/15] x86_64: Optimize percpu accesses
From: H. Peter Anvin
Date: Thu Jul 10 2008 - 17:05:53 EST
Christoph Lameter wrote:
H. Peter Anvin wrote:
I'm much more concerned about wasting an average of 1 MB of memory per CPU.
Well all the memory that is now allocated via allocpercpu()s will be allocated from that 2MB segment. And cpu_alloc packs variables in a dense way. The current slab allocations try to avoid sharing cachelines which wastes lots of memory for every allocation for each and every processor.
And how much is that, especially on *small* systems?
-hpa
--
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/