-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cpus : fix or replace py-cpuinfo to get the number of hard CPUs / sockets on a multi socket machine #13
Comments
Hey, Do you think that lstopo (hwloc) could do the job ? |
Maybe ! Did you test it on multi socket machines ? |
By myself ? Nope but it looks like it does the job : https://www.open-mpi.org/projects/hwloc/ | https://linux.die.net/man/7/hwloc If you have a use case or a machine with an ssh connection having multii-sockets on its motherboard, I can test it for you, it is really not complicated/long to do. Tell me if you have some time to spend/to discuss about this point and the needs for the agent, I would gladly contribute to such issue. PS : this link supposes that you can clearly ask specific information from a list of sockets https://iq.opengenus.org/hwloc-in-linux/ |
Hi @bpetit, I started to work on the contribution on py-cpuinfo in order to retrieve the socket_count. Here is the current pull request: workhorsy/py-cpuinfo#172 |
Since we don't have any answer from the MR below, I added a function to get the nb of socket in the hardware/cpu.py file I will start an MR |
Problem / Use case
We use py-cpuinfo which apparently doesn't make a difference between mono socket and multi socket MB
Solution
We could either find another lib, or create a PR for py-cpuinfo to fix this.
The text was updated successfully, but these errors were encountered: