MCPcopy Create free account
hub / github.com/containers/common / TestNumMems

Function TestNumMems

pkg/sysinfo/sysinfo_linux_test.go:106–114  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestNumMems(t *testing.T) {
107 if _, err := os.Stat("/proc/self/numa_maps"); !os.IsNotExist(err) {
108 t.Skip("NUMA must be supported")
109 }
110 cpuMems := NUMANodeCount()
111 if cpuMems < 0 {
112 t.Fatal("Invalid number of memory nodes, must be 0 or greater.")
113 }
114}

Callers

nothing calls this directly

Calls 2

NUMANodeCountFunction · 0.70
StatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…