Skip to content

Commit 3bd3b17

Browse files
authored
update jemalloc & tcmalloc installation guide (#987)
1 parent 88d4474 commit 3bd3b17

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/tutorials/performance_tuning/tuning_guide.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,9 @@ export LD_PRELOAD=<jemalloc.so/tcmalloc.so>:$LD_PRELOAD
215215
A recommended setting for ``MALLOC_CONF`` is ``oversize_threshold:1,background_thread:true,metadata_thp:auto,dirty_decay_ms:9000000000,muzzy_decay_ms:9000000000`` from performance perspective. However, in some cases the ``dirty_decay_ms:9000000000,mmuzzy_decay_ms:9000000000`` may cause Out-of-Memory crash. Try ``oversize_threshold:1,background_thread:true,metadata_thp:auto`` instead in this case.
216216

217217
Getting Jemalloc is straight-forward.
218+
218219
```
219-
git clone https://github.com/jemalloc/jemalloc
220-
cd jemalloc
221-
./autogen.sh
222-
make
223-
make install
220+
conda install -c conda-forge jemalloc
224221
```
225222

226223
#### TCMalloc
@@ -230,12 +227,7 @@ make install
230227
Getting TCMalloc is also not complicated.
231228

232229
```
233-
wget https://github.com/gperftools/gperftools/releases/download/gperftools-<version>/gperftools-<version>.tar.gz
234-
tar xzvf gperftools-<version>.tar.gz
235-
cd gperftools-<version>
236-
./configure --disable-cpu-profiler --disable-heap-profiler --disable-heap-checker --disable-debugalloc --enable-minimal
237-
make
238-
make install
230+
conda install -c conda-forge gperftools
239231
```
240232

241233
### Denormal Number

0 commit comments

Comments
 (0)