aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2014-04-03 17:47:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:20:58 -0400
commit91ca9186484809c57303b33778d841cc28f696ed (patch)
tree414e6c4237119e5b5495a0b77903c1fa055fe2eb
parent3115cd9145511c9159a19b118836dd5115d0a781 (diff)
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>
-rw-r--r--mm/compaction.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 918577595ea8..37b3799d948c 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1186,6 +1186,7 @@ static void compact_node(int nid)
1186 struct compact_control cc = { 1186 struct compact_control cc = {
1187 .order = -1, 1187 .order = -1,
1188 .sync = true, 1188 .sync = true,
1189 .ignore_skip_hint = true,
1189 }; 1190 };
1190 1191
1191 __compact_pgdat(NODE_DATA(nid), &cc); 1192 __compact_pgdat(NODE_DATA(nid), &cc);