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

add core and socket and numa node count info from lscpu #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mherkazandjian
Copy link

Hi,

In this pull request i implemented getting the following fields from "lscpu":

  • threads_per_core
  • cores_per_socket
  • sockets
  • numa_nodes

i also updated the readme. I tested the changes on a linux machine that is running the latest updated
arch linux with lscpu version from util-linux 2.33.2

please let me know if i can further changes to improve this pull request.

Best,

@mherkazandjian mherkazandjian changed the title Mher/core socket info add core and socket and numa node count info Jun 15, 2019
@mherkazandjian mherkazandjian changed the title add core and socket and numa node count info add core and socket and numa node count info from lscpu Jun 15, 2019
@workhorsy
Copy link
Owner

I'll look into merging this. I need to make sure there are ways of get this information on other platforms that don't have lscpu.

Thanks

@mherkazandjian
Copy link
Author

ok. tnx.
which platforms specifically? i might be able to work some of those out too.

@workhorsy
Copy link
Owner

If we add the new fields: threads_per_core, cores_per_socket, sockets, and numa_nodes, ideally those new fields would be present when running py-cpuinfo on Windows/FreeBSD/Linux/BeOS/OSX.

@mherkazandjian
Copy link
Author

i see.
I can try to work on fetching the info for FreeBSD and OSX. I have not used BeOS before and my windows
knowledge is limited. i'll keep you posted as i do progress, i'll start with freebsd first.

@ShadyAbuKalam
Copy link

@workhorsy, Any updates on this ?

@workhorsy
Copy link
Owner

Unfortunately I haven't made any progress on this. I can't find a way to get threads_per_core, cores_per_socket, sockets, or numa_nodes on vanilla Windows. I've also been extremely busy with real life, and haven't had much time to work on this project. Any help would be great.

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

Successfully merging this pull request may close these issues.

3 participants