Documentation ¶
Overview ¶
Package oom implements utility functions relating to out of memory management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOomAdjuster ¶ added in v0.19.0
type FakeOomAdjuster struct{}
type OomAdjuster ¶ added in v0.19.0
type OomAdjuster struct { ApplyOomScoreAdj func(pid int, oomScoreAdj int) error ApplyOomScoreAdjContainer func(cgroupName string, oomScoreAdj, maxTries int) error // contains filtered or unexported fields }
This is a struct instead of an interface to allow injection of process ID listers and applying OOM score in tests. TODO: make this an interface, and inject a mock ioutil struct for testing.
func NewFakeOomAdjuster ¶ added in v0.19.0
func NewFakeOomAdjuster() *OomAdjuster
func NewOomAdjuster ¶ added in v0.19.0
func NewOomAdjuster() *OomAdjuster
Click to show internal directories.
Click to hide internal directories.