From: Christoph Lameter <clameter@sgi.com>
To: Aubrey Li <aubreylee@gmail.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
"linux-os (Dick Johnson)" <linux-os@analogic.com>,
Robin Getz <rgetz@blackfin.uclinux.org>,
"Hennerich, Michael" <Michael.Hennerich@analog.com>
Subject: Re: [RPC][PATCH 2.6.20-rc5] limit total vfs page cache
Date: Mon, 22 Jan 2007 11:22:26 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0701221117250.25121@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <6d6a94c50701192026q4aad8954s2d2aaa6b66ab1fd0@mail.gmail.com>
On Sat, 20 Jan 2007, Aubrey Li wrote:
> assume:
> min = 123pages
> pagecache_reserved = 200 pages
>
> if( alloc_flags & ALLOC_PAGECACHE)
> watermark = min + pagecache_reserved ( 323 pages)
> else
> watermark = min ( 123 pages)
>
> So if request pagecache, when free pages < 323 pages, reclaim is triggered.
> But at this time if request memory not pagecache, reclaim will be
> triggered when free pages < 123 as the present reclaimer does.
>
> I verified it on my side, why do you think it doesn't work properly?
The code does not check the page cache size but the number of free pages.
The page cache size is available via zone_page_state(zone, NR_FILE_PAGES).
In its current form your patch is making the system reclaim earlier for
page cache allocations. And its reclaiming regardless of the number of
pages in the page cache. If there are no pagecache pages but only
anonymous pages in the zone then the code will still reclaim although the
page cache size is zero.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-01-22 19:22 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 3:23 [RPC][PATCH 2.6.20-rc5] limit total vfs page cache Aubrey Li
2007-01-19 14:44 ` Vaidyanathan Srinivasan
2007-01-19 15:40 ` Aubrey Li
2007-01-24 5:30 ` Vaidyanathan Srinivasan
2007-01-24 5:53 ` Aubrey Li
2007-01-19 14:52 ` Vaidyanathan Srinivasan
2007-01-19 16:05 ` Aubrey Li
2007-01-19 18:49 ` Vaidyanathan Srinivasan
2007-01-19 19:01 ` Christoph Lameter
2007-01-20 2:04 ` Aubrey Li
2007-01-20 2:24 ` Nick Piggin
2007-01-20 2:35 ` Mike Frysinger
2007-01-20 2:49 ` Nick Piggin
2007-01-20 3:40 ` Mike Frysinger
2007-01-20 3:08 ` Aubrey Li
2007-01-20 4:03 ` Nick Piggin
2007-01-20 4:26 ` Aubrey Li
2007-01-22 19:22 ` Christoph Lameter [this message]
2007-01-22 19:15 ` Christoph Lameter
2007-01-19 18:21 ` Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0701221117250.25121@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=Michael.Hennerich@analog.com \
--cc=akpm@osdl.org \
--cc=aubreylee@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-os@analogic.com \
--cc=nickpiggin@yahoo.com.au \
--cc=rgetz@blackfin.uclinux.org \
--cc=svaidy@linux.vnet.ibm.com \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).