From 9b9b7a70710a3cd8abc9841c3e1683d90f18fb21 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 27 Mar 2024 08:11:39 +1100 Subject: [PATCH] docs: add warning about speed to malloc docs --- docs/installation/INSTALL_TROUBLESHOOTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installation/INSTALL_TROUBLESHOOTING.md b/docs/installation/INSTALL_TROUBLESHOOTING.md index 4201c17234..eec76d46f9 100644 --- a/docs/installation/INSTALL_TROUBLESHOOTING.md +++ b/docs/installation/INSTALL_TROUBLESHOOTING.md @@ -106,6 +106,10 @@ A workaround is to tune memory allocation with an environment variable: MALLOC_MMAP_THRESHOLD_=1048576 ``` +!!! warning "Speed vs Memory Tradeoff" + + Your generations may be slower overall when setting this environment variable. + !!! info "Possibly dependent on `libc` implementation" It's not known if this issue occurs with other `libc` implementations such as `musl`.