- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for oom_score_adj (0.21 sec)
-
pkg/util/oom/oom_linux.go
return cmutil.GetPids(filepath.Join("/", cgroupName)) } // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self // Returns os.ErrNotExist if the `pid` does not exist. func applyOOMScoreAdj(pid int, oomScoreAdj int) error { if pid < 0 { return fmt.Errorf("invalid PID %d specified for oom_score_adj", pid) } var pidStr string if pid == 0 { pidStr = "self" } else { pidStr = strconv.Itoa(pid)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 07:13:28 UTC 2022 - 4K bytes - Viewed (0) -
pkg/kubelet/qos/policy_test.go
highOOMScoreAdj: -997, }, } for _, test := range oomTests { oomScoreAdj := GetContainerOOMScoreAdjust(test.pod, &test.pod.Spec.Containers[0], test.memoryCapacity) if oomScoreAdj < test.lowOOMScoreAdj || oomScoreAdj > test.highOOMScoreAdj { t.Errorf("oom_score_adj should be between %d and %d, but was %d", test.lowOOMScoreAdj, test.highOOMScoreAdj, oomScoreAdj) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 03 21:34:27 UTC 2021 - 5.6K bytes - Viewed (0) -
pkg/util/oom/oom_fake.go
ApplyOOMScoreAdj: fakeApplyOOMScoreAdj, ApplyOOMScoreAdjContainer: fakeApplyOOMScoreAdjContainer, } } func fakeApplyOOMScoreAdj(pid int, oomScoreAdj int) error { return nil } func fakeApplyOOMScoreAdjContainer(cgroupName string, oomScoreAdj, maxTries int) error { return nil
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
ApplyOOMScoreAdjContainer: unsupportedApplyOOMScoreAdjContainer, } } func unsupportedApplyOOMScoreAdj(pid int, oomScoreAdj int) error { return unsupportedErr } func unsupportedApplyOOMScoreAdjContainer(cgroupName string, oomScoreAdj, maxTries 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) -
pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/after/v1alpha1.yaml
infoBufferSize: "0" verbosity: 0 metricsBindAddress: 127.0.0.1:10249 mode: "" nftables: masqueradeAll: false masqueradeBit: 14 minSyncPeriod: 1s syncPeriod: 30s nodePortAddresses: null oomScoreAdj: -999 portRange: "" showHiddenMetricsForVersion: "" winkernel: enableDSR: false forwardHealthCheckVip: false networkName: "" rootHnsEndpointName: ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 17 12:50:03 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/proxy/apis/config/zz_generated.deepcopy.go
out.DetectLocal = in.DetectLocal if in.NodePortAddresses != nil { in, out := &in.NodePortAddresses, &out.NodePortAddresses *out = make([]string, len(*in)) copy(*out, *in) } if in.OOMScoreAdj != nil { in, out := &in.OOMScoreAdj, &out.OOMScoreAdj *out = new(int32) **out = **in } in.Conntrack.DeepCopyInto(&out.Conntrack) out.ConfigSyncPeriod = in.ConfigSyncPeriod return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 13 15:12:28 UTC 2024 - 6.8K bytes - Viewed (0) -
pkg/proxy/apis/config/v1alpha1/defaults_test.go
MasqueradeBit: ptr.To[int32](14), MasqueradeAll: false, SyncPeriod: metav1.Duration{Duration: 30 * time.Second}, MinSyncPeriod: metav1.Duration{Duration: 1 * time.Second}, }, OOMScoreAdj: &oomScore, Conntrack: kubeproxyconfigv1alpha1.KubeProxyConntrackConfiguration{ MaxPerCore: &ctMaxPerCore, Min: &ctMin,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:33:53 UTC 2023 - 5.1K bytes - Viewed (0) -
pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/roundtrip/default/v1alpha1.yaml
infoBufferSize: "0" verbosity: 0 metricsBindAddress: 127.0.0.1:10249 mode: "" nftables: masqueradeAll: false masqueradeBit: 14 minSyncPeriod: 1s syncPeriod: 30s nodePortAddresses: null oomScoreAdj: -999 portRange: "" showHiddenMetricsForVersion: "" winkernel: enableDSR: false forwardHealthCheckVip: false networkName: "" rootHnsEndpointName: ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 17 12:50:03 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/proxy/apis/config/v1alpha1/defaults.go
} else { obj.MetricsBindAddress = proxyutil.AppendPortIfNeeded(obj.MetricsBindAddress, ports.ProxyStatusPort) } if obj.OOMScoreAdj == nil { temp := int32(qos.KubeProxyOOMScoreAdj) obj.OOMScoreAdj = &temp } if obj.IPTables.SyncPeriod.Duration == 0 { obj.IPTables.SyncPeriod = metav1.Duration{Duration: 30 * time.Second} } if obj.IPTables.MinSyncPeriod.Duration == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:33:53 UTC 2023 - 5.2K bytes - Viewed (0)