diff options
author | antirez <antirez@gmail.com> | 2014-03-20 17:05:42 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-03-20 17:05:42 +0100 |
commit | f4da796c539928e3c2dc5a643bd5e6d3af8d29ce (patch) | |
tree | b5d8b5c0ab1041ec7d740a4d91f462bcd17e4c49 /redis.conf | |
parent | c641b670c333486dc0ea887ae61c86ff9202ab69 (diff) | |
download | redis-f4da796c539928e3c2dc5a643bd5e6d3af8d29ce.tar.gz |
Default LRU samples is now 5.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/redis.conf b/redis.conf index 7a12bf33b..f40d53e4d 100644 --- a/redis.conf +++ b/redis.conf @@ -419,12 +419,15 @@ slave-priority 100 # maxmemory-policy volatile-lru # LRU and minimal TTL algorithms are not precise algorithms but approximated -# algorithms (in order to save memory), so you can select as well the sample -# size to check. For instance for default Redis will check three keys and -# pick the one that was used less recently, you can change the sample size -# using the following configuration directive. +# algorithms (in order to save memory), so you can tune it for speed or +# accuracy. For default Redis will check five keys and pick the one that was +# used less recently, you can change the sample size using the following +# configuration directive. # -# maxmemory-samples 3 +# The default of 5 produces good enough results. 10 Approximates very closely +# true LRU but costs a bit more CPU. 3 is very fast but not very accurate. +# +# maxmemory-samples 5 ############################## APPEND ONLY MODE ############################### |