diff options
author | Mel Gorman <mel@csn.ul.ie> | 2011-01-13 15:45:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:32:34 -0800 |
commit | 9927af740b1b9b1e769310bd0b91425e8047b803 (patch) | |
tree | 5195dfbe36ece987f7e3d7c04b87327a20b16ea6 /mm/vmscan.c | |
parent | 7f0f24967b0349798803260b2e4bf347cffa1990 (diff) | |
download | op-kernel-dev-9927af740b1b9b1e769310bd0b91425e8047b803.zip op-kernel-dev-9927af740b1b9b1e769310bd0b91425e8047b803.tar.gz |
mm: compaction: perform a faster migration scan when migrating asynchronously
try_to_compact_pages() is initially called to only migrate pages
asychronously and kswapd always compacts asynchronously. Both are being
optimistic so it is important to complete the work as quickly as possible
to minimise stalls.
This patch alters the scanner when asynchronous to only consider
MIGRATE_MOVABLE pageblocks as migration candidates. This reduces stalls
when allocating huge pages while not impairing allocation success rates as
a full scan will be performed if necessary after direct reclaim.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions