Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affinity support on Solaris/Linux #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Affinity support on Solaris/Linux #22

wants to merge 1 commit into from

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