Files
redis/src
zhenwei pi 1a0deab2a5 Support setcpuaffinity on linux/bsd
Currently, there are several types of threads/child processes of a
redis server. Sometimes we need deeply optimise the performance of
redis, so we would like to isolate threads/processes.

There were some discussion about cpu affinity cases in the issue:
https://github.com/antirez/redis/issues/2863

So implement cpu affinity setting by redis.conf in this patch, then
we can config server_cpulist/bio_cpulist/aof_rewrite_cpulist/
bgsave_cpulist by cpu list.

Examples of cpulist in redis.conf:
server_cpulist 0-7:2      means cpu affinity 0,2,4,6
bio_cpulist 1,3           means cpu affinity 1,3
aof_rewrite_cpulist 8-11  means cpu affinity 8,9,10,11
bgsave_cpulist 1,10-11    means cpu affinity 1,10,11

Test on linux/freebsd, both work fine.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
2020-05-02 21:19:47 +08:00
..
2016-06-07 16:46:00 -04:00
2020-05-02 21:19:47 +08:00
2020-05-02 21:19:47 +08:00
2019-11-20 20:39:04 -05:00
2019-07-17 16:40:24 +03:00
2020-04-30 10:14:15 +02:00
2020-05-02 21:19:47 +08:00
2020-05-02 21:19:47 +08:00
2020-04-24 17:05:52 -07:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2018-07-03 18:19:46 +02:00
2016-07-27 11:34:25 +02:00
2019-02-24 21:38:15 +01:00
2020-04-30 13:43:05 +02:00
2020-03-12 20:44:32 +08:00
2019-10-24 14:24:55 +03:00
2020-05-02 21:19:47 +08:00
2019-11-19 17:23:47 +08:00
2020-02-04 12:55:26 +01:00
2020-04-02 23:43:47 +08:00
2020-05-02 21:19:47 +08:00
2020-04-09 12:10:10 +02:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-04-06 19:27:06 +08:00
2020-04-16 16:08:37 +02:00
2020-02-22 11:38:51 -05:00
2020-05-02 21:19:47 +08:00
2020-05-02 21:19:47 +08:00
2018-11-11 18:49:55 +00:00
2020-04-24 16:54:32 +02:00
2020-04-23 11:23:50 +02:00
2019-05-08 12:53:56 +08:00