meminfo.go 384 B

1234567891011121314151617
  1. package system
  2. // MemInfo contains memory statistics of the host system.
  3. type MemInfo struct {
  4. // Total usable RAM (i.e. physical RAM minus a few reserved bits and the
  5. // kernel binary code).
  6. MemTotal int64
  7. // Amount of free memory.
  8. MemFree int64
  9. // Total amount of swap space available.
  10. SwapTotal int64
  11. // Amount of swap space that is currently unused.
  12. SwapFree int64
  13. }