]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mm, compaction: ignore pageblock skip when manually invoking compaction
authorDavid Rientjes <rientjes@google.com>
Thu, 3 Apr 2014 21:47:23 +0000 (14:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:58 +0000 (16:20 -0700)
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>
mm/compaction.c

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