redict/tests/unit
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
..
moduleapi Try to fix time-sensitive tests in blockonkey.tcl 2020-04-03 14:51:45 +03:00
type Merge pull request #7134 from guybe7/xstate_command 2020-04-28 16:31:00 +02:00
acl.tcl Regression test for #7011. 2020-03-20 12:52:06 +01:00
aofrw.tcl AOF: run tests with preamble off when it makes sense. 2018-03-25 13:03:38 +02:00
auth.tcl ACL: AUTH + no default user password raises an error. 2019-01-17 18:30:23 +01:00
bitfield.tcl Fix BITFIELD_RO test. 2020-03-23 12:02:12 +01:00
bitops.tcl Regression test for #3282. 2016-06-15 11:49:49 +02:00
dump.tcl ACL: implement resetpass directive and adjust test. 2019-01-18 11:26:32 +01:00
expire.tcl add a new SET option KEEPTTL that doesn't remove expire time 2019-12-18 15:20:36 +08:00
geo.tcl Revert "Geo: output 10 chars of geohash, not 11." 2019-12-18 12:54:46 +01:00
hyperloglog.tcl HyperLogLog: speedup fuzz test. 2019-03-15 17:13:19 +01:00
introspection-2.tcl fix #5024 - commandstats for multi-exec were logged as EXEC. 2018-09-30 12:43:11 +03:00
introspection.tcl Support setcpuaffinity on linux/bsd 2020-05-02 21:19:47 +08:00
keyspace.tcl Test: MOVE expire test improved. 2015-09-14 12:35:55 +02:00
latency-monitor.tcl Test: regression test for latency expire events logging bug. 2017-11-24 18:33:31 +01:00
lazyfree.tcl Test: basic lazyfree unit test. 2015-10-09 09:47:17 +02:00
limits.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
maxmemory.tcl make replication tests more stable on slow machines 2019-05-05 08:25:01 +03:00
memefficiency.tcl testsuite run the defrag latency test solo 2020-04-16 18:09:22 +03:00
multi.tcl MULTI/EXEC during LUA script timeout are messed up 2020-03-23 20:45:32 +02:00
obuf-limits.tcl Fix test false positive introduced by threaded I/O. 2019-05-13 17:27:10 +02:00
other.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
pendingquerybuf.tcl Slave removal: remove slave from top-level tests descriptions. 2018-09-11 15:32:28 +02:00
printver.tcl Print version info before running the test 2011-05-20 11:44:54 +02:00
protocol.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
pubsub.tcl pubsub: Return integers for NUMSUB, not strings 2014-08-08 11:19:37 +02:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scan.tcl Implement SCAN cursor [TYPE type] modifier suggested in issue #6107. 2019-05-22 16:39:04 +01:00
scripting.tcl XREAD and XREADGROUP should not be allowed from scripts when BLOCK option is being used 2020-03-26 15:46:31 +02:00
slowlog.tcl Test: fix slowlog test false positive. 2019-05-14 16:55:52 +02:00
sort.tcl Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00
tls.tcl TLS: Configuration options. 2019-10-07 21:07:27 +03:00
tracking.tcl Tracking: test expired keys notifications. 2020-04-22 11:45:34 +02:00
wait.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00