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

Number of physical cores is not correctly detected on linux in case of multiple sockets #2

Open
toro01 opened this issue Sep 21, 2016 · 0 comments

Comments

@toro01
Copy link

toro01 commented Sep 21, 2016

In case physical cores are dispatched across multiple sockets, on linux, the number of physical cores returned by the lib is twice the real number of physical cores.

The proposed algorithm is to count the number of different tuples (physical id, core id) returned by cat /proc/cpuinfo which correctly handles both hyper threading and multiple sockets.

See pull request #1

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

No branches or pull requests

1 participant