kubernetes: k8s.io/kubernetes/pkg/util/oom Index | Files

package oom

import "k8s.io/kubernetes/pkg/util/oom"

Package oom implements utility functions relating to out of memory management.

Index

Package Files

doc.go oom.go oom_fake.go oom_linux.go

type FakeOOMAdjuster Uses

type FakeOOMAdjuster struct{}

type OOMAdjuster Uses

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 Uses

func NewFakeOOMAdjuster() *OOMAdjuster

func NewOOMAdjuster Uses

func NewOOMAdjuster() *OOMAdjuster

Package oom imports 9 packages (graph) and is imported by 455 packages. Updated 2019-07-01. Refresh now. Tools for package owners.