-
Notifications
You must be signed in to change notification settings - Fork 875
Increase jemalloc aarch64 page size limit (#5244) #6831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pass JEMALLOC_SYS_WITH_LG_PAGE=16 to aarch64 cross-compilation to support systems with up to 64-KiB page sizes.
also add JEMALLOC_SYS_WITH_LG_PAGE to `build-lcli-aarch64` target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I added the page size info to lighthouse --version
so we can confirm when the setting is taking effect.
I had issues with Cargo not detecting the setting of the env var, like:
- Build without env var
- Build with env var (no-op, but should rebuild)
I think this is maybe just something to be aware of. A cargo clean
between 1 and 2 will sort it out.
Added the |
Some benchmarks on my Mac showed an insignificant (~1%) difference between 16K pages (default on macOS) and 64K pages, when it came to CPU performance of |
Issue Addressed
#5244
Proposed Changes
Pass
JEMALLOC_SYS_WITH_LG_PAGE=16
env to aarch64 cross-compilation to support systems with up to 64-KiB page sizes. This is backwards-compatible for the current (most usual) 4-KiB systems.