438af50
# Synapse's architecture is quite RAM hungry currently - we deliberately cache
438af50
# a lot of recent room data and metadata in RAM in order to speed up common
438af50
# requests. We'll improve this in future, but for now the easiest way to either
438af50
# reduce the RAM usage (at the risk of slowing things down) is to set the
438af50
# almost-undocumented SYNAPSE_CACHE_FACTOR environment variable. Roughly
438af50
# speaking, a SYNAPSE_CACHE_FACTOR of 1.0 will max out at around 3-4GB of
438af50
# resident memory - this is what we currently run the matrix.org on. The
438af50
# default setting is currently 0.1, which is probably around a ~700MB
438af50
# footprint. You can dial it down further to 0.02 if desired, which targets
438af50
# roughly ~512MB. Conversely you can dial it up if you need performance for
438af50
# lots of users and have a box with a lot of RAM.
438af50
SYNAPSE_CACHE_FACTOR=0.1