From f7a4802beab3726b0adfead732bdeb5b6e40c79f Mon Sep 17 00:00:00 2001
From: H-Shay
cache_autotuning
and its sub-options max_cache_memory_usage
, target_cache_memory_usage
, and
min_cache_ttl
work in conjunction with each other to maintain a balance between cache memory
usage and cache entry availability. You must be using jemalloc
-to utilize this option, and all three of the options must be specified for this feature to work.
max_cache_memory_usage
sets a ceiling on how much memory the cache can use before caches begin to be continuously evicted.
They will continue to be evicted until the memory usage drops below the target_memory_usage
, set in
-the flag below, or until the min_cache_ttl
is hit.target_memory_usage
sets a rough target for the desired memory usage of the caches.min_cache_ttl
is hit. There is no default value for this option.
+target_memory_usage
sets a rough target for the desired memory usage of the caches. There is no default value
+for this option.min_cache_ttl
sets a limit under which newer cache entries are not evicted and is only applied when
caches are actively being evicted/max_cache_memory_usage
has been exceeded. This is to protect hot caches
-from being emptied while Synapse is evicting due to memory.