From: Andrew Morton <akpm@osdl.org>
To: Nikita Danilov <nikita@clusterfs.com>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH]: VM 4/8 dont-rotate-active-list
Date: Mon, 25 Apr 2005 20:51:41 -0700 [thread overview]
Message-ID: <20050425205141.0b756263.akpm@osdl.org> (raw)
In-Reply-To: <16994.40620.892220.121182@gargle.gargle.HOWL>
Nikita Danilov <nikita@clusterfs.com> wrote:
>
> Currently, if zone is short on free pages, refill_inactive_zone() starts
> moving pages from active_list to inactive_list, rotating active_list as it
> goes. That is, pages from the tail of active_list are transferred to its head,
> thus destroying lru ordering, exactly when we need it most --- when system is
> low on free memory and page replacement has to be performed.
>
> This patch modifies refill_inactive_zone() so that it scans active_list
> without rotating it. To achieve this, special dummy page zone->scan_page
> is maintained for each zone. This page marks a place in the active_list
> reached during scanning.
>
> As an additional bonus, if memory pressure is not so big as to start swapping
> mapped pages (reclaim_mapped == 0 in refill_inactive_zone()), then not
> referenced mapped pages can be left behind zone->scan_page instead of moving
> them to the head of active_list. When reclaim_mapped mode is activated,
> zone->scan_page is reset back to the tail of active_list so that these pages
> can be re-scanned.
I'll plop this into -mm to see what happens. That should give us decent
stability testing, but someone is going to have to do a ton of performance
testing to justify an upstream merge, please.
--
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:[~2005-04-26 3:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 17:36 Nikita Danilov
2005-04-18 12:49 ` Rik van Riel
2005-04-19 13:54 ` Nikita Danilov
2005-04-26 3:51 ` Andrew Morton [this message]
2005-04-26 6:51 ` Nick Piggin
2005-04-26 8:11 ` Nikita Danilov
2005-04-26 8:18 ` 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=20050425205141.0b756263.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-mm@kvack.org \
--cc=nikita@clusterfs.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