Re: i686 SMP systems with more then 12 GB ram with 2.4.x kernel ?

From: Rik van Riel (
Date: Thu Jan 03 2002 - 08:28:45 EST

On 3 Jan 2002, Harald Holzer wrote:

> at 1GB ram, are 16,936kB low mem reserved.
> 4GB ram, 72,824kB reserved
> 8GB ram, 142,332kB reserved
> 16GB ram, 269,424kB reserved
> 32GB ram, 532,080kB reserved, usable low mem: 352 MB
> 64GB ram ??
> Which function does the reserved memory fulfill ?
> Is it all for paging ?

The kernel stores various data structures there, in particular
the mem_map[] array, which has one data structure for each

In the standard kernel, that is 52 bytes per page, giving you
a space usage of 416 MB for the mem_map[] array.

I'm currently integrating a patch into my VM tree which removes
the wait queue from the page struct, bringing the size down to
36 bytes per page, or 288 MB, giving a space saving of 128 MB.

Another item to look into is removing the page cache hash table
and replacing it by a radix tree or hash trie, in the hopes of
improving scalability while at the same time saving some space.

As for page table overhead, on machines like yours we really
should be using 4 MB pages for the larger data segments, which
will cut down the page table size by a factor of 512 ;)



Shortwave goes a long way:  #swl

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:21 EST