]> git.saurik.com Git - redis.git/blobdiff - redis.conf
Changelog updated
[redis.git] / redis.conf
index b541cbe203351b8dd4093a292dd2f309dc356a2f..8b8f34a7d05ae4ea63975728a36ca7ada3ca7da3 100644 (file)
@@ -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.
@@ -222,6 +235,9 @@ vm-pages 104857600
 # number of threads can help with big objects even if they can't help with
 # I/O itself as the physical device may not be able to couple with many
 # reads/writes operations at the same time.
+#
+# The special value of 0 turn off threaded I/O and enables the blocking
+# Virtual Memory implementation.
 vm-max-threads 4
 
 ############################### ADVANCED CONFIG ###############################