Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ProcessorCount (0.95 sec)

  1. pkg/kubelet/winstats/perfcounter_nodestats.go

    	if err != nil {
    		return nil, err
    	}
    
    	bootId, err := getBootID()
    	if err != nil {
    		return nil, err
    	}
    
    	return &cadvisorapi.MachineInfo{
    		NumCores:       ProcessorCount(),
    		MemoryCapacity: p.nodeInfo.memoryPhysicalCapacityBytes,
    		MachineID:      hostname,
    		SystemUUID:     systemUUID,
    		BootID:         bootId,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    	p.collectMetricsData(cpuCounter, memWorkingSetCounter, memCommittedBytesCounter, networkAdapterCounter)
    	metrics, _ = p.getNodeMetrics()
    	expectedMetrics = nodeMetrics{
    		cpuUsageCoreNanoSeconds:   uint64(ProcessorCount()) * 1e7,
    		cpuUsageNanoCores:         0,
    		memoryPrivWorkingSetBytes: 2,
    		memoryCommittedBytes:      3,
    		interfaceStats:            networkAdapterCounter.listInterfaceStats(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. 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