Repository navigation
Conversation
…zes should be supported out of the box.
|
A real-world use case about 4K page size problem. I vote +1 for this patch. |
|
Got error when running And I just found this |
|
Can anyone help me understand why the Cirrus CI/Travis CI checks are all failing? It seems unrelated to the patch, and I don't understand. |
|
I do maintain the jemalloc packages in Debian, but I don't know why these CI failures would be related to that -- am I missing something? (Note that I'm not affiliated with upstream development in any way.) |
|
Hi @dneary, thanks for the PR. I fixed this in facebook/jemalloc/#34 and since our unfork, should be in jemalloc/jemalloc now, see https://github.com/jemalloc/jemalloc/blob/dev/configure.ac#L1988-L1991. If you think anything is missing, feel free to open an issue and PR so we can follow-up on it. |
|
Thanks! Looks like I did it right, which is reassuring. |
I think so. Had the repository been open we could have just merged what you had. |
By default, jemalloc builds with LG_SIZE=12 for 2^12 byte page allocation granularity. This breaks any Arm64 system running a 16K kernel (as Macs and Raspberry Pi 5 systems do) and any Arm64 distributions running 16K or 64K kernels. As the larker kernel granule offers considerable performance benefits, many people want to use them, but projects with jemalloc as a dependency do not work when compiled with the default flags.
This patch changes the default LG_PAGE size to 16 (2^16 = 64K) which will work on all Arm64 systems. People who know they will be running jemalloc on 4K systems and want to optimize memory efficiency for that granule size can use
--with-lg-page=12.This patch fixes the issue described in #2639