Skip to content

Commit

Permalink
change jemalloc config for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Aug 27, 2024
1 parent d2ab843 commit 7dde746
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ RUN JEMALLOC_BDIR=$(mktemp -d) && \
git clone --depth 1 https://github.com/jemalloc/jemalloc $JEMALLOC_BDIR && \
cd $JEMALLOC_BDIR && \
./autogen.sh && \
./configure --with-lg-page=14 && \
arch=$(dpkg --print-architecture) && \
if [[ $arch == amd64 ]]; then ./configure --with-lg-page=21 --with-lg-hugepage=21 --with-lg-quantum=6; \
elif [[ $arch == aarch64 ]]; then ./configure --with-lg-page=14; \
else ./configure && \
make -j$(nproc) && \
make install && \
rm -rf $JEMALLOC_BDIR

0 comments on commit 7dde746

Please sign in to comment.