MCPcopy Create free account
hub / github.com/containerd/cgroups / IgnoreModules

Function IgnoreModules

cgroup1/memory.go:170–176  ·  view source on GitHub ↗

IgnoreModules configure the memory controller to not read memory metrics for some module names (e.g. passing "memsw" would avoid all the memory.memsw.* entries)

(names ...string)

Source from the content-addressed store, hash-verified

168// IgnoreModules configure the memory controller to not read memory metrics for some
169// module names (e.g. passing "memsw" would avoid all the memory.memsw.* entries)
170func IgnoreModules(names ...string) func(*memoryController) {
171 return func(mc *memoryController) {
172 for _, name := range names {
173 mc.ignored[name] = struct{}{}
174 }
175 }
176}
177
178// OptionalSwap allows the memory controller to not fail if cgroups is not accounting
179// Swap memory (there are no memory.memsw.* entries)

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…