Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CPUsPerCore (0.07 sec)

  1. pkg/kubelet/cm/cpumanager/topology/topology.go

    type CPUTopology struct {
    	NumCPUs      int
    	NumCores     int
    	NumSockets   int
    	NumNUMANodes int
    	CPUDetails   CPUDetails
    }
    
    // CPUsPerCore returns the number of logical CPUs are associated with
    // each core.
    func (topo *CPUTopology) CPUsPerCore() int {
    	if topo.NumCores == 0 {
    		return 0
    	}
    	return topo.NumCPUs / topo.NumCores
    }
    
    // CPUsPerSocket returns the number of logical CPUs are associated with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top