Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NumSockets (0.24 sec)

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

    	return topo.NumCPUs / topo.NumCores
    }
    
    // CPUsPerSocket returns the number of logical CPUs are associated with
    // each socket.
    func (topo *CPUTopology) CPUsPerSocket() int {
    	if topo.NumSockets == 0 {
    		return 0
    	}
    	return topo.NumCPUs / topo.NumSockets
    }
    
    // CPUCoreID returns the physical core ID which the given logical CPU
    // belongs to.
    func (topo *CPUTopology) CPUCoreID(cpu int) (int, error) {
    	info, ok := topo.CPUDetails[cpu]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/topology/topology_test.go

    				NumCores: 0,
    			},
    			want:    &CPUTopology{},
    			wantErr: true,
    		},
    		{
    			name: "OneSocketHT",
    			machineInfo: cadvisorapi.MachineInfo{
    				NumCores:   8,
    				NumSockets: 1,
    				Topology: []cadvisorapi.Node{
    					{Id: 0,
    						Cores: []cadvisorapi.Core{
    							{SocketID: 0, Id: 0, Threads: []int{0, 4}},
    							{SocketID: 0, Id: 1, Threads: []int{1, 5}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_test.go

    limitations under the License.
    */
    
    package cpumanager
    
    import (
    	"k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/topology"
    )
    
    var (
    	topoSingleSocketHT = &topology.CPUTopology{
    		NumCPUs:    8,
    		NumSockets: 1,
    		NumCores:   4,
    		CPUDetails: map[int]topology.CPUInfo{
    			0: {CoreID: 0, SocketID: 0, NUMANodeID: 0},
    			1: {CoreID: 1, SocketID: 0, NUMANodeID: 0},
    			2: {CoreID: 2, SocketID: 0, NUMANodeID: 0},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 24 20:49:58 UTC 2021
    - 40.6K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/policy_options.go

    		}
    		// Not compatible with topology when number of sockets are more than number of NUMA nodes.
    		if topology.NumSockets > topology.NumNUMANodes {
    			return fmt.Errorf("Align by socket is not compatible with hardware where number of sockets are more than number of NUMA")
    		}
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    				},
    			},
    		})
    	}
    
    	return pod
    }
    
    func TestCPUManagerAdd(t *testing.T) {
    	testPolicy, _ := NewStaticPolicy(
    		&topology.CPUTopology{
    			NumCPUs:    4,
    			NumSockets: 1,
    			NumCores:   4,
    			CPUDetails: map[int]topology.CPUInfo{
    				0: {CoreID: 0, SocketID: 0},
    				1: {CoreID: 1, SocketID: 0},
    				2: {CoreID: 2, SocketID: 0},
    				3: {CoreID: 3, SocketID: 0},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/cpumanager/policy_static.go

    func (p *staticPolicy) isHintSocketAligned(hint topologymanager.TopologyHint, minAffinitySize int) bool {
    	numaNodesBitMask := hint.NUMANodeAffinity.GetBits()
    	numaNodesPerSocket := p.topology.NumNUMANodes / p.topology.NumSockets
    	if numaNodesPerSocket == 0 {
    		return false
    	}
    	// minSockets refers to minimum number of socket required to satify allocation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    	acc := &cpuAccumulator{
    		topo:          topo,
    		details:       topo.CPUDetails.KeepOnly(availableCPUs),
    		numCPUsNeeded: numCPUs,
    		result:        cpuset.New(),
    	}
    
    	if topo.NumSockets >= topo.NumNUMANodes {
    		acc.numaOrSocketsFirst = &numaFirst{acc}
    	} else {
    		acc.numaOrSocketsFirst = &socketsFirst{acc}
    	}
    
    	return acc
    }
    
    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