- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NUMANodesInSockets (0.46 sec)
-
pkg/kubelet/cm/cpumanager/topology/topology.go
for _, info := range d { numaNodeIDs = append(numaNodeIDs, info.NUMANodeID) } return cpuset.New(numaNodeIDs...) } // NUMANodesInSockets returns all of the logical NUMANode IDs associated with // the given socket IDs in this CPUDetails. func (d CPUDetails) NUMANodesInSockets(ids ...int) cpuset.CPUSet { var numaNodeIDs []int for _, id := range ids { for _, info := range d { if info.SocketID == id {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology/topology_test.go
ids: []int{3}, want: cpuset.New(), }} for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := tt.details.NUMANodesInSockets(tt.ids...) if !reflect.DeepEqual(got, tt.want) { t.Errorf("NUMANodesInSockets() = %v, want %v", got, tt.want) } }) } } func TestCPUDetailsSockets(t *testing.T) { tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 31.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// partial order across them. func (s *socketsFirst) sortAvailableNUMANodes() []int { var result []int for _, socket := range s.sortAvailableSockets() { numas := s.acc.details.NUMANodesInSockets(socket).UnsortedList() s.acc.sort(numas, s.acc.details.CPUsInNUMANodes) result = append(result, numas...) } return result }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0)