diff options
author | David Rientjes <rientjes@google.com> | 2014-08-28 19:34:42 +0100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-09-26 11:51:56 +0200 |
commit | c4199ba1a1d8802a69ed9f65026bc8781a72c708 (patch) | |
tree | 2c4fdb50edee2411bf275644fe0543c13f7f21ca /mm | |
parent | d36e7004412992303202433b25bdbb1e7c929f57 (diff) |
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/compaction.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 45308186a2fa..5c17302275b7 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1191,6 +1191,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); |