Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for oom_score_adj (0.15 sec)

  1. 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)
  2. 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)
  3. pkg/kubelet/cm/container_manager_linux.go

    	klog.V(5).InfoS("Attempting to apply oom_score_adj to process", "oomScoreAdj", oomScoreAdj, "pid", pid)
    	if err := oomAdjuster.ApplyOOMScoreAdj(pid, oomScoreAdj); err != nil {
    		klog.V(3).InfoS("Failed to apply oom_score_adj to process", "oomScoreAdj", oomScoreAdj, "pid", pid, "err", err)
    		errs = append(errs, fmt.Errorf("failed to apply oom score %d to PID %d: %v", oomScoreAdj, pid, err))
    	}
    	return utilerrors.NewAggregate(errs)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  4. 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)
  5. CHANGELOG/CHANGELOG-1.14.md

    - Updated kubelet CLI summary documentation and generated webpage ([#73256](https://github.com/kubernetes/kubernetes/pull/73256), [@deitch](https://github.com/deitch))
    - Set a low `oom_score_adj` for containers in pods with system-critical priorities ([#73758](https://github.com/kubernetes/kubernetes/pull/73758), [@sjenning](https://github.com/sjenning))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 14 22:06:39 UTC 2021
    - 271.5K bytes
    - Viewed (0)
  6. 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)
  7. pkg/util/oom/oom.go

    type OOMAdjuster struct {
    	pidLister                 func(cgroupName string) ([]int, error)
    	ApplyOOMScoreAdj          func(pid int, oomScoreAdj int) error
    	ApplyOOMScoreAdjContainer func(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)
  8. CHANGELOG/CHANGELOG-1.4.md

    * Admit critical pods in the kubelet ([#38836](https://github.com/kubernetes/kubernetes/pull/38836), [@bprashanth](https://github.com/bprashanth))
    * assign -998 as the oom_score_adj for critical pods (e.g. kube-proxy) ([#39114](https://github.com/kubernetes/kubernetes/pull/39114), [@dchen1107](https://github.com/dchen1107))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 133.5K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.5.md

    * Admit critical pods in the kubelet ([#38836](https://github.com/kubernetes/kubernetes/pull/38836), [@bprashanth](https://github.com/bprashanth))
    * assign -998 as the oom_score_adj for critical pods (e.g. kube-proxy) ([#39114](https://github.com/kubernetes/kubernetes/pull/39114), [@dchen1107](https://github.com/dchen1107))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 136.4K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    			[]v1.ContainerStatus{},
    			&runtimeapi.LinuxContainerResources{CpuShares: 256, MemoryLimitInBytes: 786432000, OomScoreAdj: 970},
    		},
    		{
    			"best-effort qos - no container status",
    			true,
    			nil,
    			nil,
    			[]v1.ContainerStatus{},
    			&runtimeapi.LinuxContainerResources{CpuShares: 2, OomScoreAdj: 1000},
    		},
    		{
    			"requests & limits, cpu & memory, guaranteed qos - empty resources container status",
    			true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top