Skip to content

Commit 91ca918

Browse files
rientjestorvalds
authored andcommitted
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>
1 parent 3115cd9 commit 91ca918

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎mm/compaction.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ static void compact_node(int nid)
11861186
struct compact_control cc = {
11871187
.order = -1,
11881188
.sync = true,
1189+
.ignore_skip_hint = true,
11891190
};
11901191

11911192
__compact_pgdat(NODE_DATA(nid), &cc);

0 commit comments

Comments
 (0)