diff options
author | antirez <antirez@gmail.com> | 2010-01-15 13:14:23 -0500 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-01-15 13:14:23 -0500 |
commit | 054e426dbd7f5d4788c68fca653e1d4819adeec0 (patch) | |
tree | d573aac98b013de369e1caa812248ae6ef010912 /redis.conf | |
parent | 5f8e5d7c9e49b8633edd74dfca246a1310e9c003 (diff) | |
download | redis-054e426dbd7f5d4788c68fca653e1d4819adeec0.tar.gz |
support for named VM swap file. Fixed a few important interaction issues between the background saving processes and IO threads
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf index f675ac203..8b8f34a7d 100644 --- a/redis.conf +++ b/redis.conf @@ -182,6 +182,19 @@ appendfsync always vm-enabled no # vm-enabled yes +# This is the path of the Redis swap file. As you can guess, swap files +# can't be shared by different Redis instances, so make sure to use a swap +# file for every redis process you are running. +# +# The swap file name may contain "%p" that is substituted with the PID of +# the Redis process, so the default name /tmp/redis-%p.vm will work even +# with multiple instances as Redis will use, for example, redis-811.vm +# for one instance and redis-593.vm for another one. +# +# Useless to say, the best kind of disk for a Redis swap file (that's accessed +# at random) is a Solid State Disk (SSD). +vm-swap-file /tmp/redis-%p.vm + # vm-max-memory configures the VM to use at max the specified amount of # RAM. Everything that deos not fit will be swapped on disk *if* possible, that # is, if there is still enough contiguous space in the swap file. |