Oh, wow, lucky timing for me then. I’ve been meaning to try arm64 for a long while now, but only got around doing it today, just as you have been working on that.
Happy to help test when you are ready, if you’d like the changes to be tested with a graviton2 instance.
Speaking of which, since the custom jemalloc version can break things (but still needed for some Raspberry Pi setup), would it make sense to make the version decision based on looking up the particular PAGESIZE on the machine the image is being built? The reason I suggest this is because the graviton2 instance I’m testing with has PAGESIZE=4k. A newer jemalloc version would still be needed for some cases, but it could perhaps reduce the differences between arm64 and x64 image setups.