Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetContainerOOMScoreAdjust (0.31 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/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