summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Breitmoser <look@my.amazin.horse>2018-09-15 22:03:27 +0200
committerMatthew Hodgson <matthew@arasphere.net>2018-09-15 21:03:27 +0100
commitc8642720c9baf16ac434e2cb1b88e0805f2eb00f (patch)
treea313dbc4fcd963165f319b5ca7fa058303232dae
parentFix timeout function (diff)
downloadsynapse-c8642720c9baf16ac434e2cb1b88e0805f2eb00f.tar.xz
mention libjemalloc in readme (#3877)
-rw-r--r--README.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 2471619706..cfcf8b5219 100644
--- a/README.rst
+++ b/README.rst
@@ -963,5 +963,13 @@ variable.  The default is 0.5, which can be decreased to reduce RAM usage
 in memory constrained enviroments, or increased if performance starts to
 degrade.
 
+Using `libjemalloc <http://jemalloc.net/>`_ can also yield a significant
+improvement in overall amount, and especially in terms of giving back RAM
+to the OS. To use it, the library must simply be put in the LD_PRELOAD
+environment variable when launching Synapse. On Debian, this can be done
+by installing the ``libjemalloc1`` package and adding this line to
+``/etc/default/matrix-synaspse``::
+
+    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
 
 .. _`key_management`: https://matrix.org/docs/spec/server_server/unstable.html#retrieving-server-keys