Documentation
¶
Overview ¶
Package memory tracks the memory usage of the host.
Index ¶
Constants ¶
View Source
const Name = "memory"
Name is the ID of the memory component.
View Source
const OOMEventName = "OOM"
View Source
const SubSystem = "memory"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(gpudInstance *components.GPUdInstance) (components.Component, error)
Types ¶
type OOMInstance ¶ added in v0.5.1
type OOMInstance struct {
// process id of the killed process
Pid int
// the name of the killed process
ProcessName string
// the absolute name of the container that OOMed
ContainerName string
// the absolute name of the container that was killed
// due to the OOM.
VictimContainerName string
// the constraint that triggered the OOM. One of CONSTRAINT_NONE,
// CONSTRAINT_CPUSET, CONSTRAINT_MEMORY_POLICY, CONSTRAINT_MEMCG
Constraint string
}
struct that contains information related to an OOM kill instance
func (*OOMInstance) Summary ¶ added in v0.5.1
func (o *OOMInstance) Summary() string
Click to show internal directories.
Click to hide internal directories.