From: Hugh Dickins <hugh@veritas.com>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-mm@kvack.org, William Lee Irwin III <wli@holomorphy.com>,
Andrew Morton <akpm@osdl.org>, Barry Silverman <barry@disus.com>
Subject: Re: OOM killer being triggered too soon
Date: Wed, 22 Sep 2004 20:10:19 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.44.0409222006230.23879-100000@localhost.localdomain> (raw)
In-Reply-To: <20040922172406.GD8197@logos.cnet>
Hi Marcelo,
On Wed, 22 Sep 2004, Marcelo Tosatti wrote:
>
> While investigating it I found out that, at refill_inactive_zone, we dont
> move mapped anon, swapcache pages to the inactive list if nr_swap_pages is zero.
I don't see a need for that patch. It's testing "total_swap_pages == 0"
not "nr_swap_pages == 0", so unless you're anxious about what happens
during swapoff, there won't be any PageSwapCache pages at all.
Hugh
> We should move them because they already have allocated on-swap address.
>
> Andrew, please apply.
>
> --- linux-2.6.9-rc1-mm5/mm/vmscan.c.orig 2004-09-22 15:25:31.800412784 -0300
> +++ linux-2.6.9-rc1-mm5/mm/vmscan.c 2004-09-22 15:25:34.618984296 -0300
> @@ -722,7 +722,8 @@
> list_del(&page->lru);
> if (page_mapped(page)) {
> if (!reclaim_mapped ||
> - (total_swap_pages == 0 && PageAnon(page)) ||
> + (total_swap_pages == 0 && PageAnon(page) &&
> + !PageSwapCache(page)) ||
> page_referenced(page, 0)) {
> list_add(&page->lru, &l_active);
> continue;
--
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:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-09-22 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 17:24 Marcelo Tosatti
2004-09-22 19:10 ` Hugh Dickins [this message]
2004-09-22 17:52 ` Marcelo Tosatti
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.44.0409222006230.23879-100000@localhost.localdomain \
--to=hugh@veritas.com \
--cc=akpm@osdl.org \
--cc=barry@disus.com \
--cc=linux-mm@kvack.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=wli@holomorphy.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