MCPcopy
hub / github.com/NVIDIA/aistore / MemStat

Struct MemStat

sys/mem.go:18–28  ·  view source on GitHub ↗

Memory stats for the host OS or for container, depending on where the app is running. For the host, returns an error if memory cannot be read. If the function fails to read container's stats, it returns host memory. Swap stats, however, are _always_ host stats.

Source from the content-addressed store, hash-verified

16// container's stats, it returns host memory. Swap stats, however, are _always_ host stats.
17
18type MemStat struct {
19 Total uint64
20 Used uint64
21 Free uint64
22 BuffCache uint64
23 ActualFree uint64
24 ActualUsed uint64
25 SwapTotal uint64
26 SwapFree uint64
27 SwapUsed uint64
28}
29
30var mem0 = MemStat{ActualFree: math.MaxUint64}
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected