Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ProcessorCount (0.11 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    		//   If both CpuWeight and CpuMaximum are set - ContainerD catches this invalid case and returns an error instead.
    		resources.CpuMaximum = calculateCPUMaximum(cpuLimit, int64(winstats.ProcessorCount()))
    	}
    
    	// The processor resource controls are mutually exclusive on
    	// Windows Server Containers, the order of precedence is
    	// CPUCount first, then CPUMaximum.
    	if resources.CpuCount > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go

    	err = fakeRuntimeSvc.applyPlatformSpecificContainerConfig(containerConfig, &pod.Spec.Containers[0], pod, new(int64), "foo", nil)
    	require.NoError(t, err)
    
    	limit := int64(3000)
    	expectedCpuMax := 10 * limit / int64(winstats.ProcessorCount())
    	// Above, we're setting the limit to 3 CPUs. But we can't expect more than 100% of the CPUs
    	// we have. (e.g.: if we only have 2 CPUs, we can't have 150% CPU max).
    	if expectedCpuMax > 10000 {
    		expectedCpuMax = 10000
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top