All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org, mbligh@mbligh.org
Subject: Re: [patch 1/1] vmscan: give referenced, active and unmapped pages a second trip around the LRU
Date: Fri, 25 May 2007 10:20:18 -0700	[thread overview]
Message-ID: <20070525102018.1cba79f0.akpm@linux-foundation.org> (raw)
In-Reply-To: <4656F625.30402@redhat.com>

On Fri, 25 May 2007 10:43:49 -0400 Rik van Riel <riel@redhat.com> wrote:

> akpm@linux-foundation.org wrote:
> > From: Andrew Morton <akpm@linux-foundation.org>
> > 
> > Martin spotted this.
> > 
> > In the original rmap conversion in 2.5.32 we broke aging of pagecache pages on
> > the active list: we deactivate these pages even if they had PG_referenced set.
> 
> IIRC this is done to make sure that we reclaim page cache pages
> ahead of mapped anonymous pages.

I think it was an accident.  At least, that 2.5.32 change was uncommented
and unchangelogged and was an inappropriate thing to have been bundled into
that patch.

> > We should instead clear PG_referenced and give these pages another trip around
> > the active list.
> 
> A side effect of this is that the page will now need TWO references
> to be promoted back to the active list from the inactive list.
> 
> The current code leaves PG_referenced set, so that the first access
> to a page cache page that was demoted to the inactive list will cause
> that page to be moved back to the active list.

hm, yeah, we should be setting PG-referenced when moving a page from the
active list onto the inactive list.

--
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>

      reply	other threads:[~2007-05-25 17:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24 23:57 [patch 1/1] vmscan: give referenced, active and unmapped pages a second trip around the LRU akpm, Andrew Morton
2007-05-25  7:02 ` Peter Zijlstra
2007-05-25  7:18   ` Andrew Morton
2007-05-25  7:23     ` Peter Zijlstra
2007-05-25  7:28       ` Andrew Morton
2007-05-25  7:36         ` Peter Zijlstra
2007-05-25  7:48           ` Andrew Morton
2007-05-25  7:51             ` Peter Zijlstra
2007-05-25  8:01               ` Andrew Morton
2007-05-25  8:35                 ` Peter Zijlstra
2007-05-25  8:43                   ` Andrew Morton
2007-05-25 10:13                     ` Peter Zijlstra
2007-05-25 14:50   ` Rik van Riel
2007-05-25 14:43 ` Rik van Riel
2007-05-25 17:20   ` Andrew Morton [this message]

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=20070525102018.1cba79f0.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    --cc=mbligh@mbligh.org \
    --cc=riel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.