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

Get topology information on Windows #166

Open
jaypipes opened this issue Feb 15, 2020 · 1 comment
Open

Get topology information on Windows #166

jaypipes opened this issue Feb 15, 2020 · 1 comment

Comments

@jaypipes
Copy link
Owner

I'm actually not sure which Win32 subsystem or WMI table holds information about the socket and memory topology for the hardware, so we'll have to figure that out.

@jaypipes
Copy link
Owner Author

Because WMI is based on CIM, which is horrendously awful and created before most modern hardware, after much research, it seems I'll have to rely on the Win32 kernel GetLogicalProcessorInformation API call:

https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getlogicalprocessorinformation?redirectedfrom=MSDN

Which we'll probably need to use the unsafe and golang.org/x/sys/windows/registry packages with.

@jaypipes jaypipes added this to the v1.0.0 milestone Apr 17, 2020
jaypipes added a commit that referenced this issue May 31, 2020
Adds a `ghw.TopologyInfo` implementation for Windows that uses the
Win32 GetLogicalProcessorInformation API call. This first batch simply
implements NUMA node construction for each identified NUMA node in the
returned logical processor information struct array. Next patches will
implement the cache discovery mechanisms.

Issue #166
jaypipes added a commit that referenced this issue May 31, 2020
Adds a `ghw.TopologyInfo` implementation for Windows that uses the
Win32 GetLogicalProcessorInformation API call. This first batch simply
implements NUMA node construction for each identified NUMA node in the
returned logical processor information struct array. Next patches will
implement the cache discovery mechanisms.

Issue #166
jaypipes added a commit that referenced this issue May 31, 2020
Adds a `ghw.TopologyInfo` implementation for Windows that uses the
Win32 GetLogicalProcessorInformation API call. This first batch simply
implements NUMA node construction for each identified NUMA node in the
returned logical processor information struct array. Next patches will
implement the cache discovery mechanisms.

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

No branches or pull requests

1 participant