Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CPUsPerCore (0.11 sec)

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

    	defer func() {
    		if rerr != nil {
    			metrics.CPUManagerPinningErrorsTotal.Inc()
    		}
    	}()
    
    	if p.options.FullPhysicalCPUsOnly {
    		CPUsPerCore := p.topology.CPUsPerCore()
    		if (numCPUs % CPUsPerCore) != 0 {
    			// Since CPU Manager has been enabled requesting strict SMT alignment, it means a guaranteed pod can only be admitted
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			stDefaultCPUSet: cpuset.New(0, 1, 2, 3, 4, 5, 6, 7),
    			pod:             makePod("fakePod", "fakeContainer2", "1000m", "1000m"),
    			expErr:          SMTAlignmentError{RequestedCPUs: 1, CpusPerCore: 2},
    			expCPUAlloc:     false,
    			expCSet:         cpuset.New(), // reject allocation of sibling of partial core
    		},
    		{
    			// test SMT-level != 2 - which is the default on x86_64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    // "fully available" means that all the CPUs in it are free.
    func (a *cpuAccumulator) isCoreFree(coreID int) bool {
    	return a.details.CPUsInCores(coreID).Size() == a.topo.CPUsPerCore()
    }
    
    // Returns free NUMA Node IDs as a slice sorted by sortAvailableNUMANodes().
    func (a *cpuAccumulator) freeNUMANodes() []int {
    	free := []int{}
    	for _, numa := range a.sortAvailableNUMANodes() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top