]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: count pages into balanced for zone with good watermark
authorShaohua Li <shaohua.li@intel.com>
Wed, 5 Oct 2011 00:42:55 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 11 Oct 2011 08:43:44 +0000 (19:43 +1100)
commit045a68be655560b3f5440a423e7258847a866c24
treead8079658088631d64408328674d7eaa79a8bd5d
parent11e1ad572cfd6df0c42ddb614ee6daf8534a803d
vmscan: count pages into balanced for zone with good watermark

It's possible a zone watermark is ok when entering the balance_pgdat()
loop, while the zone is within the requested classzone_idx.  Count pages
from this 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>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c