From: Rik van Riel <riel@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: akpm@linux-foundation.org, 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:50:39 -0400 [thread overview]
Message-ID: <4656F7BF.8060803@redhat.com> (raw)
In-Reply-To: <1180076565.7348.14.camel@twins>
Peter Zijlstra wrote:
> - if (page_mapped(page)) {
> - if (!reclaim_mapped ||
> - (total_swap_pages == 0 && PageAnon(page)) ||
> - page_referenced(page, 0)) {
> - list_add(&page->lru, &l_active);
> - continue;
This code is problematic, too. We essentially randomize the
LRU order of the mapped pages while !reclaim_mapped, while
clearing the referenced bits on those pages.
By the time we start swapping out mapped pages, the list has
been randomized and replacement starts getting pretty bad.
Of course, these problems are pretty small compared to how
my 2GB test system misbehaves when running AIM7.
When the system runs out of memory, everything starts swapping
all at once. Unfortunately vmstat got stuck too, so I could
not observe the start of swapping. Once the system had freed
up 900MB (of 2GB total RAM!), vmstat returned. The system did
not stop swapping until 1.4GB of memory was free!
With the system behaving this badly at a macro level, I do
not think page reclaim tweaks can be usefully tested...
--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.
--
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-05-25 14:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-24 23:57 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 [this message]
2007-05-25 14:43 ` Rik van Riel
2007-05-25 17:20 ` 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=4656F7BF.8060803@redhat.com \
--to=riel@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=mbligh@mbligh.org \
--cc=peterz@infradead.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