const PolicyStatic …
const ErrorSMTAlignment …
type SMTAlignmentError …
func (e SMTAlignmentError) Error() string { … }
func (e SMTAlignmentError) Type() string { … }
type staticPolicy …
var _ …
func NewStaticPolicy(topology *topology.CPUTopology, numReservedCPUs int, reservedCPUs cpuset.CPUSet, affinity topologymanager.Store, cpuPolicyOptions map[string]string) (Policy, error) { … }
func (p *staticPolicy) Name() string { … }
func (p *staticPolicy) Start(s state.State) error { … }
func (p *staticPolicy) validateState(s state.State) error { … }
func (p *staticPolicy) GetAllocatableCPUs(s state.State) cpuset.CPUSet { … }
func (p *staticPolicy) GetAvailableCPUs(s state.State) cpuset.CPUSet { … }
func (p *staticPolicy) GetAvailablePhysicalCPUs(s state.State) cpuset.CPUSet { … }
func (p *staticPolicy) updateCPUsToReuse(pod *v1.Pod, container *v1.Container, cset cpuset.CPUSet) { … }
func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) { … }
func getAssignedCPUsOfSiblings(s state.State, podUID string, containerName string) cpuset.CPUSet { … }
func (p *staticPolicy) RemoveContainer(s state.State, podUID string, containerName string) error { … }
func (p *staticPolicy) allocateCPUs(s state.State, numCPUs int, numaAffinity bitmask.BitMask, reusableCPUs cpuset.CPUSet) (cpuset.CPUSet, error) { … }
func (p *staticPolicy) guaranteedCPUs(pod *v1.Pod, container *v1.Container) int { … }
func (p *staticPolicy) podGuaranteedCPUs(pod *v1.Pod) int { … }
func (p *staticPolicy) takeByTopology(availableCPUs cpuset.CPUSet, numCPUs int) (cpuset.CPUSet, error) { … }
func (p *staticPolicy) GetTopologyHints(s state.State, pod *v1.Pod, container *v1.Container) map[string][]topologymanager.TopologyHint { … }
func (p *staticPolicy) GetPodTopologyHints(s state.State, pod *v1.Pod) map[string][]topologymanager.TopologyHint { … }
func (p *staticPolicy) generateCPUTopologyHints(availableCPUs cpuset.CPUSet, reusableCPUs cpuset.CPUSet, request int) []topologymanager.TopologyHint { … }
func (p *staticPolicy) isHintSocketAligned(hint topologymanager.TopologyHint, minAffinitySize int) bool { … }
func (p *staticPolicy) getAlignedCPUs(numaAffinity bitmask.BitMask, allocatableCPUs cpuset.CPUSet) cpuset.CPUSet { … }