Re: [x86_32] With 4GB installed, in which cases low mem total is less than 896MB?

From: Andi Kleen
Date: Fri May 02 2008 - 11:47:44 EST


Fabio De Francesco <fabiomdf@xxxxxxxx> writes:
>
> Unfortunetally my poor knowledge of Linux kernel mechanisms (and
> code!) prevents me from understanding what could be the causes for
> that overhead. Do you mean it is a hardware issue? Or is it a kernel
> one? Anyway another machine of mine, that is equipped with 2GB RAM,
> doesn't show any proportional reduction of low memory at all. So
> this makes me think (oh, dear!).

You might want to read http://halobates.de/memorywaste.pdf, in
particular 3.5.2. The numbers arjan quoted and in the paper
are for 64bit kernels, on 32bit the overhead is ~32bytes/page. This
mem_map overhead happens for both highmem and lowmem, but is always
allocated in lowmem.

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