Re: MM deadlock [was: Re: arca-vm-8...]

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 26 Jan 1999 14:28:19 +0000 (GMT)


> It is really not hard to reserve a certain amount of memory (up to some
> fraction, say 25% or 50% of physical memory) for use only by pagable

I was guessing 25%.

> allocations. Most desktop boxes will _not_ require more than 50% of
> memory for locked kernel pages. Recovering any given range of
> contiguous pages from that pagable region may be expensive but will
> _always_ be possible, and given that it will usually be a one-off
> expense during driver setup, there is no reason why we cannot support
> it.

Something like

Chop memory into 4Mb sized chunks that hold the perfectly normal and existing
pages and buddy memory allocator. Set a flag on 25-33% of them to a max of say
10 and for <12Mb boxes simply say "tough".

The performance impact of that on free page requests seems to be pretty minimal.
In actual fact it wil help performance in some cases since the machine can't
easily be killed by going out of non kernel space allocations - the 25% is
also a "can do work" sanity check.

Alan

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