From 3a03f4673570cc4412e0e8ab3bf91ff2f0591c8e Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Sat, 24 Oct 2020 22:17:49 -0700 Subject: [PATCH] mm: Disable proactive compaction by default On-demand compaction works fine assuming that you don't have a need to spam the page allocator nonstop for large order page allocations. Signed-off-by: Sultan Alsawaf --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index cfbb00622..11bad29cc 100755 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2669,7 +2669,7 @@ int sysctl_compact_memory; * aggressively the kernel should compact memory in the * background. It takes values in the range [0, 100]. */ -unsigned int __read_mostly sysctl_compaction_proactiveness = 20; +unsigned int __read_mostly sysctl_compaction_proactiveness; int compaction_proactiveness_sysctl_handler(struct ctl_table *table, int write, void *buffer, size_t *length, loff_t *ppos)