Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetExclusiveCPUs (0.33 sec)

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

    	return map[string][]topologymanager.TopologyHint{}
    }
    
    func (m *fakeManager) State() state.Reader {
    	return m.state
    }
    
    func (m *fakeManager) GetExclusiveCPUs(podUID, containerName string) cpuset.CPUSet {
    	klog.InfoS("GetExclusiveCPUs", "podUID", podUID, "containerName", containerName)
    	return cpuset.CPUSet{}
    }
    
    func (m *fakeManager) GetAllocatableCPUs() cpuset.CPUSet {
    	klog.InfoS("Get Allocatable CPUs")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/cpu_manager.go

    	// and other resource controllers.
    	GetTopologyHints(*v1.Pod, *v1.Container) map[string][]topologymanager.TopologyHint
    
    	// GetExclusiveCPUs implements the podresources.CPUsProvider interface to provide
    	// exclusively allocated cpus for the container
    	GetExclusiveCPUs(podUID, containerName string) cpuset.CPUSet
    
    	// GetPodTopologyHints implements the topologymanager.HintProvider Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/container_manager_linux.go

    		out[i] = int64(in[i])
    	}
    	return out
    }
    
    func (cm *containerManagerImpl) GetCPUs(podUID, containerName string) []int64 {
    	if cm.cpuManager != nil {
    		return int64Slice(cm.cpuManager.GetExclusiveCPUs(podUID, containerName).UnsortedList())
    	}
    	return []int64{}
    }
    
    func (cm *containerManagerImpl) GetAllocatableCPUs() []int64 {
    	if cm.cpuManager != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
Back to top