Skip to content

Conversation

yvoinov
Copy link

@yvoinov yvoinov commented Mar 4, 2018

I would like to offer this patch to support CPU/core affinity for thread pool workers. To enable affinity just define -DAFFINITY, workers will be spread across online cores using Round-Robin. In case of threads in pool = HW concurrency this make some performance gain and decrease overall pool latency. It is well-tested on SPARC/x86 Solaris and on Linux.

I would like to offer this patch to support CPU/core affinity for thread pool workers. To enable affinity just define -DAFFINITY, workers will be spread across online cores using Round-Robin. In case of threads in pool = HW concurrency this make some performance gain and decrease overall pool latency. It is well-tested on SPARC/x86 Solaris and on Linux.
@codecov
Copy link

codecov bot commented Mar 4, 2018

Codecov Report

Merging #22 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #22   +/-   ##
======================================
  Coverage    94.2%   94.2%           
======================================
  Files           5       5           
  Lines         138     138           
======================================
  Hits          130     130           
  Misses          8       8

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af95dd8...ea476d7. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant