Browse Source

mm, compaction: ignore pageblock skip when manually invoking compaction

The cached pageblock hint should be ignored when triggering compaction
through /proc/sys/vm/compact_memory so all eligible memory is isolated.
Manually invoking compaction is known to be expensive, there's no need
to skip pageblocks based on heuristics (mainly for debugging).

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
David Rientjes 11 years ago
parent
commit
91ca918648
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mm/compaction.c

+ 1 - 0
mm/compaction.c

@@ -1186,6 +1186,7 @@ static void compact_node(int nid)
 	struct compact_control cc = {
 	struct compact_control cc = {
 		.order = -1,
 		.order = -1,
 		.sync = true,
 		.sync = true,
+		.ignore_skip_hint = true,
 	};
 	};
 
 
 	__compact_pgdat(NODE_DATA(nid), &cc);
 	__compact_pgdat(NODE_DATA(nid), &cc);