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 <penny.zheng@arm.com>
This commit is contained in:
Penny Zheng
2020-04-07 13:22:04 +08:00
parent 339d2e70e6
commit 9784bb3e6f
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
# Items to enable large/huge mmu pages and tlbs etc. # 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 CONFIG_HUGETLBFS=y
# Enable memory page physical migration here, as it can come # Enable memory page physical migration here, as it can come

View File

@@ -3,4 +3,3 @@
# vmap the kernel stacks - detects stack over-runs better and reduces # vmap the kernel stacks - detects stack over-runs better and reduces
# the stack attack window. # the stack attack window.
CONFIG_VMAP_STACK=y CONFIG_VMAP_STACK=y