From 9784bb3e6fe565d08ab6d543cf7fe96fe39645a6 Mon Sep 17 00:00:00 2001 From: Penny Zheng Date: Tue, 7 Apr 2020 13:22:04 +0800 Subject: [PATCH] configs: add CONFIG_COMPACTION Compaction is the only memory management component to form high order (larger physically contiguous) memory blocks reliably. The page allocator relies on compaction heavily and the lack of the feature can lead to unexpected OOM killer invocations for high order memory requests. We shouldn't disable this option unless there really is a strong reason. Fixes: #1004 Signed-off-by: Penny Zheng --- kernel/configs/fragments/common/huge.conf | 5 +++++ kernel/configs/fragments/common/mmu.conf | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/configs/fragments/common/huge.conf b/kernel/configs/fragments/common/huge.conf index 60e0abba4..5fa30cac1 100644 --- a/kernel/configs/fragments/common/huge.conf +++ b/kernel/configs/fragments/common/huge.conf @@ -1,5 +1,10 @@ # Items to enable large/huge mmu pages and tlbs etc. +# Compaction is the only memory management component to form high order +# (larger physically contiguous) memory blocks reliably. The lack of the +# feature can lead to unexpected OOM killer invocations for high order memory requests. +CONFIG_COMPACTION=y + CONFIG_HUGETLBFS=y # Enable memory page physical migration here, as it can come diff --git a/kernel/configs/fragments/common/mmu.conf b/kernel/configs/fragments/common/mmu.conf index 39e1b9d37..20aa00ae8 100644 --- a/kernel/configs/fragments/common/mmu.conf +++ b/kernel/configs/fragments/common/mmu.conf @@ -3,4 +3,3 @@ # vmap the kernel stacks - detects stack over-runs better and reduces # the stack attack window. CONFIG_VMAP_STACK=y -