From: Rik van Riel <riel@conectiva.com.br>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-mm@kvack.org
Subject: [PATCH] unlazy page movement
Date: Tue, 14 Aug 2001 00:19:37 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.33L.0108140017530.6118-100000@imladris.rielhome.conectiva> (raw)
Hi Alan,
since the VM balancing just about depends on the fact that
the pages it encounters on the inactive_clean list really
are freeable, here is a small patch to unlazy the queue
movement whenever we touch inactive page cache pages.
Please consider applying for the next -ac kernel.
thanks,
Rik
--
IA64: a worthy successor to i860.
--- filemap.c.orig Mon Aug 13 14:19:58 2001
+++ filemap.c Tue Aug 14 00:09:14 2001
@@ -353,8 +353,16 @@
if (page->index == offset)
break;
}
- /* Mark the page referenced, kswapd will find it later. */
- SetPageReferenced(page);
+ /*
+ * Mark the page referenced so kswapd knows to up page->age
+ * the next VM scan. Make sure to move inactive pages to the
+ * active list so we don't get a nasty surprise when the pages
+ * we thought were freeable aren't...
+ */
+ if (PageActive(page))
+ SetPageReferenced(page);
+ else
+ activate_page(page);
not_found:
return page;
--
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/
reply other threads:[~2001-08-14 3:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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.33L.0108140017530.6118-100000@imladris.rielhome.conectiva \
--to=riel@conectiva.com.br \
--cc=alan@lxorguk.ukuu.org.uk \
--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