]> git.kernelconcepts.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>
Thu, 13 Oct 2011 06:49:21 +0000 (17:49 +1100)
commit3962e6cacb0d23b4991f2831ec6851a7beb1dd2c
tree268a295d79f389340ee375d10b55d5b7fa62fbd8
parenta8a13ce65dd4cef2f61cad64eb6e6a6b314471e6
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