Commit 67c58ce60024b9b3d9cf203da994bf265aa7e369

Authored by David Rientjes
Committed by Greg Kroah-Hartman
1 parent e8cd5b562a

mm, compaction: ignore pageblock skip when manually invoking compaction

commit 91ca9186484809c57303b33778d841cc28f696ed upstream.

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>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -1193,6 +1193,7 @@
1193 1193 struct compact_control cc = {
1194 1194 .order = -1,
1195 1195 .sync = true,
  1196 + .ignore_skip_hint = true,
1196 1197 };
1197 1198  
1198 1199 __compact_pgdat(NODE_DATA(nid), &cc);