From: Christoph Lameter <clameter@sgi.com>
To: Andrew Morton <akpm@osdl.org>
Cc: schamp@sgi.com, linux-mm@kvack.org
Subject: Re: ZVC/zone_reclaim: Leave 1% of unmapped pagecache pages for file I/O
Date: Thu, 29 Jun 2006 23:08:26 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0606292254400.31045@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20060629200743.04e49eb9.akpm@osdl.org>
On Thu, 29 Jun 2006, Andrew Morton wrote:
> On Thu, 29 Jun 2006 19:51:38 -0700 (PDT)
> Christoph Lameter <clameter@sgi.com> wrote:
>
> > It turns out that it is advantageous to leave a small portion of
> > unmapped file backed pages if a zone is overallocated.
> >
> > This allows recently used file I/O buffers to stay on the node and
> > reduces the times that zone reclaim is invoked if file I/O occurs
> > when we run out of memory in a zone.
>
> I don't really understand this. Can you expand? ie:
>
> define "overallocated".
All pages (or almost all pages) in the zone are allocated and so the page
allocator has to go off node.
> "turns out" how? What problems were observed, and was was the behaviour
> after the patch?
The problem is that zone reclaim runs too frequently when the page cache
is used for file I/O (read write and therefore unmapped pages!) alone and
we have almost all pages of the zone allocated. Zone reclaim may remove 32
unmapped pages. File I/O will use these pages for the next read/write
requests and the unmapped pages increase. After the zone has filled up
again zone reclaim will remove it again after only 32 pages. This cycle is
too inefficient and there are potentially too many zone reclaim cycles.
With the 1% boundary we may still remove all unmapped pages for file
I/O in zone reclaim pass. However. it will take a large number of read
and writes to get back to 1% again where we trigger zone reclaim
again.
The zone reclaim 2.6.16/17 does not show this behavior because
we have a 30 second timeout.
--
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:[~2006-06-30 6:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-30 2:51 Christoph Lameter
2006-06-30 3:07 ` Andrew Morton
2006-06-30 6:08 ` Christoph Lameter [this message]
2006-06-30 10:19 ` Andi Kleen
2006-06-30 21:14 ` Christoph Lameter
2006-06-30 23:38 ` Andrew Morton
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.0606292254400.31045@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=akpm@osdl.org \
--cc=linux-mm@kvack.org \
--cc=schamp@sgi.com \
/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