Skip to content

Commit

Permalink
ARM64: mm: Raise MAX_ORDER for 64KB pages and THP.
Browse files Browse the repository at this point in the history
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: Steve Capper <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
  • Loading branch information
stevecapperlinaro committed Jun 14, 2013
1 parent 084bd29 commit d03bb14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ config ARCH_WANT_HUGE_PMD_SHARE

source "mm/Kconfig"

config FORCE_MAX_ZONEORDER
int
default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
default "11"

endmenu

menu "Boot options"
Expand Down

0 comments on commit d03bb14

Please sign in to comment.