Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vaidyanathan Srinivasan
Date: Friday, January 19, 2007 - 11:49 am

Aubrey Li wrote:

Well, the existing reclaimer will do the right job if the kernel
really runs out of memory and need to recover pages for new
allocations.  The pages to be removed will be the coldest page in
the system.  However now with the introduction of pagecache limit,
we are artificially creating a memory scarcity and forcing the
reclaimer to throw away some pages while we actually have free
usable RAM.  In this context the choice of pages picked by the
present reclaimer may not be the best ones.

If pagecache is overlimit, we expect old (cold) pagecache pages to
be thrown out and reused for new file data.  We do not expect to
drop a few text or data pages to make room for new pagecache.


The balance_pagecache() routine is called for file backed access
since that is when we would probably exceed the pagecache limit.
The routine check if the limit has exceeded and calls the reclaimer.
The reclaimer is an extension of the present reclaimer with more
checks to remove only pagecache pages and not try to unmap any
mapped pages and potentially affect application performance.

I am open to suggestions on reclaim logic.  My view is that we need
to selectively reclaim pagecache pages and not just call the
traditional reclaimer to freeup arbitrary type of pages.

--Vaidy

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Aubrey Li, (Wed Jan 17, 8:23 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Vaidyanathan Srinivasan, (Fri Jan 19, 7:44 am)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Vaidyanathan Srinivasan, (Fri Jan 19, 7:52 am)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Christoph Lameter, (Fri Jan 19, 11:21 am)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Vaidyanathan Srinivasan, (Fri Jan 19, 11:49 am)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Nick Piggin, (Fri Jan 19, 7:24 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Mike Frysinger, (Fri Jan 19, 7:35 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Nick Piggin, (Fri Jan 19, 7:49 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Mike Frysinger, (Fri Jan 19, 8:40 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Nick Piggin, (Fri Jan 19, 9:03 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Christoph Lameter, (Mon Jan 22, 12:15 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Christoph Lameter, (Mon Jan 22, 12:22 pm)
Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache, Vaidyanathan Srinivasan, (Tue Jan 23, 10:30 pm)