From: Andrew Morton <akpm@linux-foundation.org>
To: Christoph Lameter <clameter@sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>, linux-mm@kvack.org
Subject: Re: Drop PageReclaim()
Date: Thu, 8 Feb 2007 16:39:53 -0800 [thread overview]
Message-ID: <20070208163953.ab2bd694.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0702081613300.15669@schroedinger.engr.sgi.com>
On Thu, 8 Feb 2007 16:22:17 -0800 (PST)
Christoph Lameter <clameter@sgi.com> wrote:
> On Thu, 8 Feb 2007, Andrew Morton wrote:
>
> > I expect that'll be OK for pages which were written back by the vm scanner.
> > But it also means that pages which were written back by
> > pdflush/balance_dirty_pages/fsync/etc will now all also be eligible for
> > rotation. ie: the vast majority of written-back pages.
> >
> > Whether that will make much difference to page aging I don't know. But it
> > will cause more lru->lock traffic.
>
> I'd rather avoid more lru lock traffic. Could we simply drop the rotation?
I doubt it. One would need to troll five-year-old changelogs and mailing
list discussion, but iirc that rotation was a large win in certain
workloads, preventing scanning meltdowns and general memory stress.
It's probably more useful than tracking mlocked pages, put it that way.
> Writeback is typically a relatively long process. The page should
> have made some progress through the inactive list by the time the
> write is complete.
huuuuuuge amounts of testing went into this stuff, on a large number of
machine configurations and workloads. Plus a few tens of millions of
machine-years in the field.
Possibly we could do it, but it'd be a ton of work in validating the
change.
> One additional issue that is raised by the writeback pages remaining on
> the LRU lists is that we can get into the same livelock situation as with
> mlocked pages if we keep on skipping over writeback pages.
That's why we rotate the reclaimable pages back to the head-of-queue.
The vm scanner will throttle twelve times before it fully traverses the
inactive list. And the extent of that throttling is dependent upon completion of
writeback. We expect that after a throttled reclaimer has been woken, the
waker has dumped a pile of immediately-reclaimable pages at the tail of
the LRU.
> However, the
> system is already slow due to us waiting for I/O. I guess we just do not
> notice.
Well. IO. People still seem to thing that vmscan.c is about page
replacement. It ain't. Most of the problems in there and most of the work
which has gone into it are IO-related.
--
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-02-09 0:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-07 14:13 Drop PageReclaim() Christoph Lameter
2007-02-07 14:32 ` Hugh Dickins
2007-02-08 21:20 ` Christoph Lameter
2007-02-08 21:38 ` Christoph Lameter
2007-02-08 21:42 ` Christoph Lameter
2007-02-08 21:55 ` Christoph Lameter
2007-02-08 22:03 ` Andrew Morton
2007-02-08 22:14 ` Christoph Lameter
2007-02-08 22:24 ` Andrew Morton
2007-02-08 22:26 ` Christoph Lameter
2007-02-08 22:37 ` Andrew Morton
2007-02-08 22:40 ` Christoph Lameter
2007-02-08 23:13 ` Andrew Morton
2007-02-09 0:22 ` Christoph Lameter
2007-02-09 0:39 ` Andrew Morton [this message]
2007-02-09 1:06 ` Christoph Lameter
2007-02-09 1:18 ` Andrew Morton
2007-02-11 5:12 ` Rik van Riel
2007-02-07 17:25 ` Andrew Morton
2007-02-08 21:19 ` 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=20070208163953.ab2bd694.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.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).