[<prev] [next>] [day] [month] [year] [list]
Message-Id: <E1HA5ws-0000vQ-KM@be1.lrz>
Date: Thu, 25 Jan 2007 15:51:34 +0100
From: Bodo Eggert <7eggert@....de>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Aubrey Li <aubreylee@...il.com>,
Christoph Lameter <clameter@....com>,
Vaidyanathan Srinivasan <svaidy@...ux.vnet.ibm.com>,
Nick Piggin <nickpiggin@...oo.com.au>,
Robin Getz <rgetz@...ckfin.uclinux.org>,
?missing closing '"' in token?"Frysinger",
Michael <Michael.Frysinger@...log.com>,
Bryan Wu <cooloney.lkml@...il.com>,
?missing closing '"' in token?"Hennerich",
Michael <Michael.Hennerich@...log.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC] Limit the size of the pagecache
Peter Zijlstra <a.p.zijlstra@...llo.nl> wrote:
> On Wed, 2007-01-24 at 22:22 +0800, Aubrey Li wrote:
>> On 1/24/07, Peter Zijlstra <a.p.zijlstra@...llo.nl> wrote:
>> > He wants to make a nommu system act like a mmu system; this will just
>> > never ever work.
>>
>> Nope. Actually my nommu system works great with some of patches made by us.
>> What let you think this will never work?
>
> Because there are perfectly valid things user-space can do to mess you
> up. I forgot the test-case but it had something to do with opening a
> million files, this will scatter slab pages all over the place.
a) Limit the number of open files.
b) Don't do that then.
> Also, if you cycle your large user-space allocations a bit unluckily
> you'll also fragment it into oblivion.
>
> So you can not guarantee it will not fragment into smithereens stopping
> your user-space from using large than page size allocations.
Therefore you should purposely increase the mess up to the point where the
system is guaranteed not to work? IMO you should rather put the other issues
onto the TODO list.
BTW: I'm not sure a hard limit is the right thing to do for mmu systems,
I'd rather implement high and low watermarks; if one pool is larger than
it's high watermark, it will be next get it's pages evicted, and it won't
lose pages if it's at the lower watermark.
> If your user-space consists of several applications that do dynamic
> memory allocation of various sizes its a matter of (run-) time before
> things will start failing.
>
> If you prealloc a large area at boot time (like we now do for hugepages)
> and use that for user-space, you might 'reset' the status quo by cycling
> the whole of userspace.
Preallocating the page cache (and maybe the slab space?) may very well be
the right thing to do for nommu systems. It worked quite well in DOS times
and on old MACs.
--
Funny quotes:
30. Why is a person who plays the piano called a pianist but a person who
drives a race car not called a racist?
Friß, Spammer: iz@...gert.dyndns.org pveUtv@...fMneI.7eggert.dyndns.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists