You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using jemalloc in our project and some Linux ARM64 users with aPAGE_SIZE of 16384 have reported the following error when executing our precompiled binaries:
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed
Aborted (core dumped)
If the user compiles the binaries locally on their machines, there are no issues, so this seems to indicate that jemalloc expects the same page size the host had at compile time. Our distributed binaries are compiled on a Github CI runner instance using cross with a 4KB page size I believe.
My question is if it is possible to make jemalloc work on a machine that has a page size different to the one where the binary was compiled?
Yes, just tell jemalloc a large page size by environment variable JEMALLOC_SYS_WITH_LG_PAGE. It works fine as long as the given size is larger than the actual size.
Activity
BusyJay commentedon Apr 18, 2024
Yes, just tell jemalloc a large page size by environment variable
JEMALLOC_SYS_WITH_LG_PAGE. It works fine as long as the given size is larger than the actual size.mdecimus commentedon Apr 18, 2024
Thank you!
build: pin jemalloc's page size to 4 KiB on aarch64 Linux (#39549)