memory

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL