Re: MM with fragmented memory

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Sun, 25 Oct 1998 19:10:15 +0000


On Fri, Oct 23, 1998 at 08:15:50PM +0200, Werner Almesberger wrote:
> Then there's another problem, of course: the size of the kernel's memory
> map is proportional to end_mem-start_mem, so if I pretend to have a few
> MB worth of RAM between start_mem and end_mem, it'll quickly grow to a
> few hundreds of kilobytes.

You don't have to arrange the memory map this way. Try changing the
definition of MAP_NR to use a small lookup table or even a calculation
(if the memory layout is regular) for the upper page address bits.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/