提交 d03bb145 编写于 作者: S Steve Capper

ARM64: mm: Raise MAX_ORDER for 64KB pages and THP.

The buddy allocator has a default MAX_ORDER of 11, which is too
low to allocate enough memory for 512MB Transparent HugePages if
our base page size is 64KB.

This patch introduces MAX_ZONE_ORDER and sets it to 14 when 64KB
pages are used in conjuction with THP, otherwise the default value
of 11 is used.
Signed-off-by: NSteve Capper <steve.capper@linaro.org>
Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 084bd298
...@@ -191,6 +191,11 @@ config ARCH_WANT_HUGE_PMD_SHARE ...@@ -191,6 +191,11 @@ config ARCH_WANT_HUGE_PMD_SHARE
source "mm/Kconfig" source "mm/Kconfig"
config FORCE_MAX_ZONEORDER
int
default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
default "11"
endmenu endmenu
menu "Boot options" menu "Boot options"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册