Skip to content

Conversation

@ovr
Copy link

@ovr ovr commented Nov 19, 2025

Hey!

Thanks for your jemallocator crate. We are using it at Cube, but it doesn't support arm64 os with large mem pages (64k).

refs cube-js/cube#10152

facebook jemalloc version already merged a fix for that in facebook@7dcdafe

So, i propouse to backport (cherry-pick) an original commit from facebook/jemalloc repo to fix that issue.

This updates the configuration script to set the default page size to 64KiB on Aarch64 Linux. This is motivated by compatibility as a build configured for a 64KiB page will work on kernels that use the smaller 4KiB or 16KiB pages, whereas the reverse is not true.

To make the configured page size setting more visible, the script now displays the page size when printing the configuration results.

Users that want to override the page size in to choose a smaller value can still do so with the --with-lg-pagesize configuration option.

Thanks

@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 19, 2025

Welcome @ovr! It looks like this is your first PR to tikv/jemalloc 🎉

@ovr ovr force-pushed the chore/backport-arm64-64kb-pages branch from 904dbaf to 41af38f Compare November 19, 2025 11:42
@ovr ovr force-pushed the chore/backport-arm64-64kb-pages branch from 41af38f to 858c2cc Compare November 19, 2025 11:43
@ovr ovr force-pushed the chore/backport-arm64-64kb-pages branch from 858c2cc to 3ed3a0f Compare November 19, 2025 11:47
This updates the configuration script to set the default page size to
64KiB on Aarch64 Linux.  This is motivated by compatibility as a build
configured for a 64KiB page will work on kernels that use the smaller
4KiB or 16KiB pages, whereas the reverse is not true.

To make the configured page size setting more visible, the script now
displays the page size when printing the configuration results.

Users that want to override the page size in to choose a smaller value
can still do so with the --with-lg-pagesize configuration option.

Author: lexprfuncall <[email protected]>
Signed-off-by: Dmitry Patsura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants