giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.23k stars 381 forks source link

Add ability to specify CPU affinity for wrk threads #129

Open ol-damirm opened 2 years ago

ol-damirm commented 2 years ago

In some cases, it is necessary that the wrk2 threads run on a specific CPU. Example of usage with affinity: "wrk -t 3 -a 0,1,2 -c 100 -d 5 -R 500000 ".

If the affinity parameter is not specified, then the threads will be run as before (without any affinitization).