Replies: 2 comments 1 reply
-
|
I've tried sleuthing out a bit about how dojo installs jemalloc. Is there any way docker can specify build-variables in the install script for jemalloc when installing fulcrum? |
Beta Was this translation helpful? Give feedback.
-
|
Hey I'm traveling for a conference but it looks like you may just have to build everything from scratch. Fulcrum builds jemalloc in a docker container using defaults for that machine which I guess in this case is 4kb pages. No, fulcrum doesn't pass any flags to jemalloc. If you want to sleuth more the trail starts at |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a raspberryPi 5 that I was trying to run an instance of dojo
https://github.com/Samourai-Wallet/samourai-dojo
Latest maintained version here
The dojo software package optionally includes installing fulcrum as an indexer, but I was getting an error from fulcrum.
fulcrum | <jemalloc> unsupported system page sizeI found references to this online here and here.
The issue is that rPi 5 running bookworm is optimized over the pi 4 to use 16K page sizes. While Debian arch64 uses 4K page sizes. My thought is that when dojo installs fulcrum, fulcrum is grabbing a pre-compiled binary of jemalloc during install which is default configured on the host machine for 4K page size.
A quick workaround is to tell RaspberryOS to use a different kernel image that uses 4K page size.
/boot/firmware/config.txt set kernel=kernel8.img
This indeed works.
However, I would like to see if it is possible for jemalloc to be configured for 16K? I found some discussion on this as well. I see that jemalloc does reference being able to set a specific page size during compile.
So if I download the source and compile jemalloc myself and set
--with-lg-page=4, it should run on default kernel with 16K page size. Yes?My question is how does fulcrum integrate/install jemalloc? Isn't jemalloc a dependency? Does fulcrum specify any flags for jemalloc, or just defaults? I ask because I want to configure jemalloc to build as similarly to what fulcrum expects.
Beta Was this translation helpful? Give feedback.
All reactions