From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: akpm@osdl.org, riel@redhat.com
Cc: linux-mm@kvack.org
Subject: [PATCH] ignore referenced pages on reclaim when OOM
Date: Mon, 8 Nov 2004 16:18:21 -0200 [thread overview]
Message-ID: <20041108181821.GA3236@logos.cnet> (raw)
Andrew,
Can you please apply Rik's patch?
Ignore referenced bit when priority reaches 0. Get out of such
OOM situation as fast as possible, instead of running around
trying to find elegible pages for reclaim.
Speeds up extreme load performance on Rik's tests.
----- Forwarded message from Rik van Riel <riel@redhat.com> -----
From: Rik van Riel <riel@redhat.com>
Date: Fri, 5 Nov 2004 16:56:17 -0500 (EST)
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Subject: [PATCH] fix OOM problem
X-X-Sender: riel@chimarrao.boston.redhat.com
X-MIMETrack: Itemize by SMTP Server on USMail/Cyclades(Release 6.5.1|January 21, 2004) at
11/05/2004 13:58:40
===== mm/vmscan.c 1.231 vs edited =====
--- 1.231/mm/vmscan.c Sun Oct 17 01:07:24 2004
+++ edited/mm/vmscan.c Mon Oct 25 17:38:56 2004
@@ -379,7 +379,7 @@
referenced = page_referenced(page, 1);
/* In active use or really unfreeable? Activate it. */
- if (referenced && page_mapping_inuse(page))
+ if (referenced && sc->priority && page_mapping_inuse(page))
goto activate_locked;
#ifdef CONFIG_SWAP
@@ -715,7 +715,7 @@
if (page_mapped(page)) {
if (!reclaim_mapped ||
(total_swap_pages == 0 && PageAnon(page)) ||
- page_referenced(page, 0)) {
+ (page_referenced(page, 0) && sc->priority)) {
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 reply other threads:[~2004-11-08 18:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-08 18:18 Marcelo Tosatti [this message]
2004-11-08 21:48 ` Nikita Danilov
2004-11-08 21:56 ` Rik van Riel
2004-11-08 18:48 ` Marcelo Tosatti
2004-11-08 22:28 ` Andrew Morton
2004-11-10 18:41 ` Marcelo Tosatti
2004-11-10 22:29 ` Andrew Morton
2004-11-10 20:09 ` Marcelo Tosatti
2004-11-12 16:10 ` Rik van Riel
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=20041108181821.GA3236@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=akpm@osdl.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox