From: Shaohua Li <shaohua.li@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm <linux-mm@kvack.org>,
mgorman@suse.de, Minchan Kim <minchan.kim@gmail.com>
Subject: [patch 2/3]vmscan: count pages into balanced for zone with good watermark
Date: Thu, 28 Jul 2011 16:13:05 +0800 [thread overview]
Message-ID: <1311840785.15392.408.camel@sli10-conroe> (raw)
It's possible a zone watermark is ok at entering balance_pgdat loop, while the
zone is within requested classzone_idx. Countering pages from the zone into
balanced. In this way, we can skip shrinking zones too much for high
order allocation.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
---
mm/vmscan.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux/mm/vmscan.c
===================================================================
--- linux.orig/mm/vmscan.c 2011-07-28 15:17:56.000000000 +0800
+++ linux/mm/vmscan.c 2011-07-28 15:34:48.000000000 +0800
@@ -2497,6 +2497,8 @@ loop_again:
} else {
/* If balanced, clear the congested flag */
zone_clear_flag(zone, ZONE_CONGESTED);
+ if (i <= *classzone_idx)
+ balanced += zone->present_pages;
}
}
if (i < 0)
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2011-07-28 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 8:13 Shaohua Li [this message]
2011-07-28 10:59 ` Mel Gorman
2011-07-29 9:28 ` Minchan Kim
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=1311840785.15392.408.camel@sli10-conroe \
--to=shaohua.li@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=minchan.kim@gmail.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