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
..
2019-12-17 07:15:04 +00:00
2020-04-23 11:56:39 +02:00
2020-04-08 12:55:57 +02:00
2020-04-08 12:55:57 +02:00
2019-10-07 21:06:30 +03:00
2016-06-07 16:46:00 -04:00
2020-03-12 13:24:30 +01:00
2019-10-15 17:21:51 +03:00
2019-10-07 21:06:13 +03:00
2019-10-07 21:06:13 +03:00
2020-05-02 21:19:47 +08:00
2020-03-07 19:38:27 +08:00
2018-10-16 15:48:03 +08:00
2020-05-02 21:19:47 +08:00
2019-11-20 20:39:04 -05:00
2020-04-21 10:51:46 +02:00
2020-04-27 15:52:23 +02:00
2019-07-17 16:40:24 +03:00
2020-04-30 10:14:15 +02:00
2019-12-16 23:34:37 -08:00
2020-05-02 21:19:47 +08:00
2020-05-02 21:19:47 +08:00
2020-03-22 14:42:03 +02:00
2020-03-22 14:42:03 +02:00
2020-03-22 14:42:03 +02:00
2019-03-01 17:53:14 +01: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
2020-04-21 10:51:46 +02:00
2020-04-21 10:51:46 +02:00
2016-08-04 15:12:12 +08:00
2020-02-18 17:22:32 +02:00
2020-03-29 16:17:52 +02:00
2019-02-18 18:27:18 +01:00
2018-07-03 18:19:46 +02:00
2020-04-30 15:54:14 +08:00
2020-04-21 10:51:46 +02:00
2020-04-21 10:51:46 +02:00
2017-07-03 19:38:31 +02:00
2016-07-06 16:31:11 +02:00
2020-04-09 17:48:29 +08: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-04-21 10:51:46 +02:00
2018-10-16 15:48:03 +08:00
2016-06-20 23:08:06 +03:00
2020-03-12 20:44:32 +08:00
2019-10-24 14:24:55 +03:00
2020-04-09 10:24:46 +02:00
2017-12-01 10:24:24 +01:00
2018-10-02 19:37:36 +02:00
2017-12-01 10:24:24 +01:00
2018-09-18 17:04:00 +08:00
2019-10-07 18:24:34 +02:00
2019-10-28 11:10:58 +01:00
2019-10-07 18:24:34 +02:00
2019-10-07 18:24:34 +02:00
2018-09-28 13:00:44 +02:00
2017-11-19 16:23:42 +00:00
2020-05-02 21:19:47 +08:00
2019-11-19 17:23:47 +08:00
2020-04-21 10:51:46 +02:00
2020-02-04 12:55:26 +01:00
2020-05-02 21:19:47 +08:00
2020-02-03 15:43:44 +05:30
2020-04-09 16:20:41 +02:00
2020-03-31 12:40:08 +02:00
2020-04-02 23:43:47 +08:00
2020-02-18 17:22:32 +02:00
2017-03-27 16:37:22 +02:00
2020-02-07 18:12:10 +01:00
2018-10-13 14:17:38 +02:00
2020-05-02 21:19:47 +08:00
2020-04-09 12:10:10 +02:00
2019-07-22 18:45:47 +02:00
2019-05-08 12:13:45 +01:00
2020-04-09 10:24:46 +02:00
2020-04-30 13:42:25 +02:00
2018-07-13 10:51:58 +02:00
2018-07-03 18:19:46 +02:00
2020-04-03 14:49:40 +03:00
2019-10-02 11:30:20 +02:00
2020-04-27 15:52:23 +02:00
2019-10-07 21:06:30 +03:00
2019-10-07 21:06:30 +03:00
2020-04-06 19:27:06 +08:00
2020-04-16 16:08:37 +02:00
2019-12-21 11:47:31 -08:00
2020-02-22 11:38:51 -05:00
2020-04-20 11:52:34 +02:00
2020-05-02 21:19:47 +08: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
2019-09-12 12:21:37 +02:00
2019-09-12 12:21:37 +02:00
2019-09-04 12:14:25 +00:00
2019-01-09 17:00:29 +01:00
2019-12-02 00:28:41 -05:00
2020-04-21 10:51:46 +02:00
2019-12-26 15:31:37 +05:30
2020-04-21 10:51:46 +02:00
2020-04-21 10:51:46 +02:00
2020-04-21 10:51:46 +02:00
2020-04-28 18:09:03 +03:00
2020-04-24 16:54:32 +02:00
2020-04-21 10:51:46 +02:00
2020-04-11 15:05:01 +03:00
2020-04-22 10:05:47 +02:00
2020-04-21 17:29:18 +02:00
2020-04-23 11:23:50 +02:00
2019-11-21 10:06:15 +01:00
2019-05-08 12:53:56 +08:00
2016-12-16 09:02:50 +01:00
2019-12-02 09:13:29 +01:00
2019-12-02 09:13:29 +01:00