Skip to content

Commit 34f589d

Browse files
committed
Use Jemalloc for opt-dist
1 parent f5703d5 commit 34f589d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ RUN yum upgrade -y && \
4242
zlib-devel.x86_64 \
4343
&& yum clean all
4444

45+
RUN yum install -y epel-release && yum install -y jemalloc
46+
4547
RUN mkdir -p /rustroot/bin
4648

4749
ENV PATH=/rustroot/bin:$PATH

src/ci/docker/host-x86_64/dist-x86_64-linux/dist.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -eux
44

55
python3 ../x.py build --set rust.debug=true opt-dist
66

7+
export LD_PRELOAD=/usr/lib64/libjemalloc.so.1
8+
79
./build/$HOSTS/stage1-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
810
--host $HOSTS --target $HOSTS \
911
--include-default-paths \

0 commit comments

Comments
 (0)