summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-04 11:05:48 +0200
committerantirez <antirez@gmail.com>2020-05-04 11:05:48 +0200
commit68b5eed41d9b2a58cd5e7c933d5692a3c5895e8c (patch)
tree0cc14042c784209a2e3b3cb9bdfbd9eca6d0f5bc /redis.conf
parentfe9acb3469508b1af721d15320b89e2bb2abdd0c (diff)
downloadredis-68b5eed41d9b2a58cd5e7c933d5692a3c5895e8c.tar.gz
Rework a bit the documentation for CPU pinning.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf24
1 files changed, 17 insertions, 7 deletions
diff --git a/redis.conf b/redis.conf
index 756073a27..8841117fc 100644
--- a/redis.conf
+++ b/redis.conf
@@ -1781,17 +1781,27 @@ rdb-save-incremental-fsync yes
# the main dictionary scan
# active-defrag-max-scan-fields 1000
-# Redis server/IO threads, bio threads, aof rewrite child process, and bgsave
-# child process cpu affinity list config. syntax of cpu list looks like taskset
-# command. serveral examples:
-# set redis server/io threads to cpu affinity 0,2,4,6
+# It is possible to pin different threads and processes of Redis to specific
+# CPUs in your system, in order to maximize the performances of the server.
+# This is useful both in order to pin different Redis threads in different
+# CPUs, but also in order to make sure that multiple Redis instances running
+# in the same host will be pinned to different CPUs.
+#
+# Normally you can do this using the "taskset" command, however it is also
+# possible to this via Redis configuration directly, both in Linux and FreeBSD.
+#
+# You can pin the server/IO threads, bio threads, aof rewrite child process, and
+# the bgsave child process. The syntax to specify the cpu list is the same as
+# the taskset command:
+#
+# Set redis server/io threads to cpu affinity 0,2,4,6:
# server_cpulist 0-7:2
#
-# set bio threads to cpu affinity 1,3
+# Set bio threads to cpu affinity 1,3:
# bio_cpulist 1,3
#
-# set aof rewrite child process to cpu affinity 8,9,10,11
+# Set aof rewrite child process to cpu affinity 8,9,10,11:
# aof_rewrite_cpulist 8-11
#
-# set bgsave child process to cpu affinity 1,10,11
+# Set bgsave child process to cpu affinity 1,10,11
# bgsave_cpulist 1,10-11