- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ApplyOOMScoreAdjContainer (0.36 sec)
-
pkg/util/oom/oom_linux_test.go
err := oomAdjuster.ApplyOOMScoreAdjContainer("", 100, maxTries) // Check error value. if expectedError && err == nil { t.Errorf("Expected error %+v when running ApplyOOMScoreAdjContainer but got no error", expectedError) return } else if !expectedError && err != nil { t.Errorf("Expected no error but got error %+v when running ApplyOOMScoreAdjContainer", err) return } else if err != nil { return
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 3.3K bytes - Viewed (0) -
pkg/util/oom/oom_linux.go
"k8s.io/klog/v2" ) func NewOOMAdjuster() *OOMAdjuster { oomAdjuster := &OOMAdjuster{ pidLister: getPids, ApplyOOMScoreAdj: applyOOMScoreAdj, } oomAdjuster.ApplyOOMScoreAdjContainer = oomAdjuster.applyOOMScoreAdjContainer return oomAdjuster } func getPids(cgroupName string) ([]int, error) { return cmutil.GetPids(filepath.Join("/", cgroupName)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 07:13:28 UTC 2022 - 4K bytes - Viewed (0) -
pkg/util/oom/oom_fake.go
func NewFakeOOMAdjuster() *OOMAdjuster { return &OOMAdjuster{ pidLister: func(cgroupName string) ([]int, error) { return make([]int, 0), nil }, ApplyOOMScoreAdj: fakeApplyOOMScoreAdj, ApplyOOMScoreAdjContainer: fakeApplyOOMScoreAdjContainer, } } func fakeApplyOOMScoreAdj(pid int, oomScoreAdj int) error { return nil } func fakeApplyOOMScoreAdjContainer(cgroupName string, oomScoreAdj, maxTries int) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 30 00:47:36 UTC 2016 - 1K bytes - Viewed (0) -
pkg/util/oom/oom_unsupported.go
) var unsupportedErr = errors.New("setting OOM scores is unsupported in this build") func NewOOMAdjuster() *OOMAdjuster { return &OOMAdjuster{ ApplyOOMScoreAdj: unsupportedApplyOOMScoreAdj, ApplyOOMScoreAdjContainer: unsupportedApplyOOMScoreAdjContainer, } } func unsupportedApplyOOMScoreAdj(pid int, oomScoreAdj int) error { return unsupportedErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.1K bytes - Viewed (0) -
pkg/util/oom/oom.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 30 00:47:36 UTC 2016 - 1K bytes - Viewed (0)