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

Determine MemoryInfo.TotalPhysicalBytes on Windows #185

Closed
jaypipes opened this issue Apr 17, 2020 · 1 comment
Closed

Determine MemoryInfo.TotalPhysicalBytes on Windows #185

jaypipes opened this issue Apr 17, 2020 · 1 comment

Comments

@jaypipes
Copy link
Owner

jaypipes commented Apr 17, 2020

We should be able to determine the total amount of physical memory attached to the hardware on Windows by summing the size of the Win32_PhysicalMemory.Size WMI table fields.

See #171 (comment)

@jaypipes
Copy link
Owner Author

This is now being done:

PS C:\Users\jaypi\go\src\github.com\jaypipes\ghw> go run .\cmd\ghwc\main.go memory -fyaml                                                                                                                                                                                      memory:
  modules:
  - label: P0 CHANNEL A
    location: DIMM 1
    serial_number: 511216B4
    size_bytes: 8589934592
    vendor: Kingston
  - label: P0 CHANNEL B
    location: DIMM 1
    serial_number: 5212D9B3
    size_bytes: 8589934592
    vendor: Kingston
  supported_page_sizes: null
  total_physical_bytes: 17179869184
  total_usable_bytes: 17125675008

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