- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 105 for cpuIDs (0.25 sec)
-
pkg/kubelet/cm/cpumanager/topology/topology.go
coreIDs = append(coreIDs, info.CoreID) } } } return cpuset.New(coreIDs...) } // CPUs returns all of the logical CPU IDs in this CPUDetails. func (d CPUDetails) CPUs() cpuset.CPUSet { var cpuIDs []int for cpuID := range d { cpuIDs = append(cpuIDs, cpuID) } return cpuset.New(cpuIDs...) } // CPUsInNUMANodes returns all of the logical CPU IDs associated with the given
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/apis/podresources/server_v1_test.go
{ Name: initContainerName, Devices: devs, CpuIds: cpus, Memory: memory, DynamicResources: []*podresourcesapi.DynamicResource{}, }, { Name: containerName, Devices: devs, CpuIds: cpus, Memory: memory, DynamicResources: []*podresourcesapi.DynamicResource{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_none_test.go
// any random topology is fine var cpuIDs []int for cpuID := range topoSingleSocketHT.CPUDetails { cpuIDs = append(cpuIDs, cpuID) } policy := &nonePolicy{} st := &mockState{ assignments: state.ContainerCPUAssignments{}, defaultCPUSet: cpuset.New(cpuIDs...), } cpus := policy.GetAllocatableCPUs(st) if cpus.Size() != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1.go
metrics.PodResourcesEndpointRequestsGetAllocatableCount.WithLabelValues("v1").Inc() response := &podresourcesv1.AllocatableResourcesResponse{ Devices: p.devicesProvider.GetAllocatableDevices(), CpuIds: p.cpusProvider.GetAllocatableCPUs(), Memory: p.memoryProvider.GetAllocatableMemory(), } return response, nil } // Get returns information about the resources assigned to a specific pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 13:00:09 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology_hints_test.go
}, { name: "TestCase04: Guaranteed Pod requests 2 CPUs", pod: testPod4, expectedCPU: 2, }, { name: "TestCase05: Guaranteed Pod requests 5 CPUs", pod: testPod5, expectedCPU: 5, }, { name: "TestCase06: The number of CPUs requested By app is bigger than the number of CPUs requested by init", pod: testPod6, expectedCPU: 5, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static_test.go
expErr: nil, expCPUAlloc: false, expCSet: cpuset.New(), }, { // All the CPUs from Socket 0 are available. Some CPUs from each // Socket have been already assigned. // Expect all CPUs from Socket 0. description: "GuPodMultipleCores, topoQuadSocketFourWayHT, ExpectAllocSock0", topo: topoQuadSocketFourWayHT,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 40.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// by number of free CPUs that their cores contain. Finally, for each core, the CPUs in it are // sorted by numerical ID. The order is always ascending. In other words, the relative order of two // CPUs is determined as follows: // 1. If the two CPUs belong to different sockets, the CPU in the socket with the smaller amount of // free CPUs appears first.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
if cpus.Intersection(availableCPUs).Size() > 0 { t.Errorf("expected intersection of taken cpus [%s] and acc.details.CPUs() [%s] to be empty", cpus, availableCPUs) } if !cpus.IsSubsetOf(acc.result) { t.Errorf("expected [%s] to be a subset of acc.result [%s]", cpus, acc.result) } } expNumCPUsNeeded := tc.numCPUs - totalTaken if acc.numCPUsNeeded != expNumCPUsNeeded {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_static.go
if e.AvailablePhysicalCPUs > 0 { return fmt.Sprintf("SMT Alignment Error: not enough free physical CPUs: available physical CPUs = %d, requested CPUs = %d, CPUs per core = %d", e.AvailablePhysicalCPUs, e.RequestedCPUs, e.CpusPerCore) } return fmt.Sprintf("SMT Alignment Error: requested %d cpus not multiple cpus per core = %d", e.RequestedCPUs, e.CpusPerCore) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 28.8K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/types.go
GetPodByName(namespace, name string) (*v1.Pod, bool) } // CPUsProvider knows how to provide the cpus used by the given container type CPUsProvider interface { // GetCPUs returns information about the cpus assigned to pods and containers GetCPUs(podUID, containerName string) []int64 // GetAllocatableCPUs returns the allocatable (not allocated) CPUs GetAllocatableCPUs() []int64 } type MemoryProvider interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:04 UTC 2023 - 2.6K bytes - Viewed (0)