Commit 36503e5f authored by David Rientjes's avatar David Rientjes Committed by Sasha Levin

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: default avatarDavid Rientjes <rientjes@google.com>
Acked-by: default avatarMel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit 91ca9186)
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 44156b08
......@@ -1165,6 +1165,7 @@ static int compact_node(int nid)
struct compact_control cc = {
.order = -1,
.sync = true,
.ignore_skip_hint = true,
};
return __compact_pgdat(NODE_DATA(nid), &cc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment