Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetContainerOOMScoreAdjust (0.25 sec)

  1. pkg/kubelet/qos/policy.go

    	KubeletOOMScoreAdj int = -999
    	// KubeProxyOOMScoreAdj is the OOM score adjustment for kube-proxy
    	KubeProxyOOMScoreAdj  int = -999
    	guaranteedOOMScoreAdj int = -997
    	besteffortOOMScoreAdj int = 1000
    )
    
    // GetContainerOOMScoreAdjust returns the amount by which the OOM score of all processes in the
    // container should be adjusted.
    // The OOM score of a process is the percentage of memory it consumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 14:49:26 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kubelet/qos/policy_test.go

    		},
    		{
    			pod:             &nodeCritical,
    			memoryCapacity:  4000000000,
    			lowOOMScoreAdj:  -997,
    			highOOMScoreAdj: -997,
    		},
    	}
    	for _, test := range oomTests {
    		oomScoreAdj := GetContainerOOMScoreAdjust(test.pod, &test.pod.Spec.Containers[0], test.memoryCapacity)
    		if oomScoreAdj < test.lowOOMScoreAdj || oomScoreAdj > test.highOOMScoreAdj {
    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/kuberuntime/kuberuntime_container_linux.go

    		cpuRequest = container.Resources.Requests.Cpu()
    	}
    	lcr := m.calculateLinuxResources(cpuRequest, container.Resources.Limits.Cpu(), container.Resources.Limits.Memory())
    
    	lcr.OomScoreAdj = int64(qos.GetContainerOOMScoreAdjust(pod, container,
    		int64(m.machineInfo.MemoryCapacity)))
    
    	lcr.HugepageLimits = GetHugepageLimitsFromResources(container.Resources)
    
    	// Configure swap for the container
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top