-
Oran Agra authored
Till now Redis attempted to avoid using jemalloc on ARM, but didn't do that properly (missing armv8l and aarch64), so in fact we did you jemalloc on these without a problem. Side notes: Some ARM platforms, which share instruction set and can share binaries (docker images), may have different page size, and apparently jemalloc uses the page size of the build machine as the maximum page size to be supported by the build. see https://github.com/redis-stack/redis-stack/issues/187 To work around that, when building for ARM, one can change the maximum page size to 64k (or greater if present on the build machine) In recent versions of jemalloc, this should not have any severe side effects (like VM map fragmentation), see: https://github.com/jemalloc/jemalloc/issues/467 https://github.com/redis/redis/pull/11170#issuecomment-1236265230 To do that, one can use: ``` JEMALLOC_CONFIGURE_OPTS="--with-lg-page=16" make ``` Besides that, this PR fixes a messy makefile condition that was created here: f30b18f4
3e112d46