Skip to content

Commit f9534ba

Browse files
authored
added recommendation to use taskset for the redis server when using the standalone runner (#197)
1 parent 1bde151 commit f9534ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ There is an option to run "redis-benchmarks-spec" tests using standalone runner
105105

106106
```bash
107107
# Run redis server
108-
./src/redis-server --port 6379 --dir logs --logfile server.log --save "" [--daemonize yes]
108+
[taskset -c cpu] /src/redis-server --port 6379 --dir logs --logfile server.log --save "" [--daemonize yes]
109109

110110
# Run benchmark
111111
redis-benchmarks-spec-client-runner --db_server_host localhost --db_server_port 6379 --client_aggregated_results_folder ./test
112112
```
113113

114+
Use taskset when starting the redis-server to pin it to a particular cpu and get more consistent results.
114115
Option "--daemonize yes" given to server run command allows to run redis-server in background.<br />
115116
Option "--test X.yml" given to benchmark execution command allows to run particular test, where X - test name
116117

0 commit comments

Comments
 (0)