Repository navigation
Conversation
Enable Linux THP support for AArch64 super carriers through +MMlp. Use enabled 2 MiB multi-size THP instead of the PMD size, which can be 512 MiB with 64 KiB base pages. Honor the per-size policy, including inherit, and retain normal alignment when unavailable or disabled. Keep linker alignment and executable-text advice x86-only. Extend allocator coverage for +MMlp on/off and document the behavior. Signed-off-by: Jayce Mang <jicee13@meta.com>
Contributor
CT Test ResultsTests are running... https://github.com/erlang/otp/actions/runs/39997907332 Results for commit 39cab99 To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the existing
+MMlp onoption for Linux/AArch64 super carriers.Use 2 MiB alignment for physically reserved super carriers when the kernel
enables that multi-size THP size, including when its policy is
inherit.This avoids using the 512 MiB
PMD size on 64 KiB-page kernels. Unavailable or disabled policies retain
normal alignment. Actual huge-page allocation remains up to the kernel.
Keep x86 linker alignment and executable-text advice unchanged. No AsmJit
or JIT allocator changes are included.
Testing:
alloc_SUITE: AArch64 optimized and x86 optimized/debug, 13 passed each.architectures;
git diff --checkpassed.otp_build checkpassed, including emulator test compilation andlicense checks (AArch64 optimized; x86 optimized/debug).
Draft limitations: full
otp_build checkis not green;JIT formatting and documentation-tool checks have unrelated failures.
Actual 2 MiB huge-page allocation still needs validation on an enabled kernel.