lkml.org 
[lkml]   [1999]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: MM deadlock [was: Re: arca-vm-8...]
Date
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:1.895 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site