const policyTypeStatic …
type systemReservedMemory …
type reusableMemory …
type staticPolicy …
var _ …
func NewPolicyStatic(machineInfo *cadvisorapi.MachineInfo, reserved systemReservedMemory, affinity topologymanager.Store) (Policy, error) { … }
func (p *staticPolicy) Name() string { … }
func (p *staticPolicy) Start(s state.State) error { … }
func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) { … }
func (p *staticPolicy) updateMachineState(machineState state.NUMANodeMap, numaAffinity []int, resourceName v1.ResourceName, requestedSize uint64) { … }
func (p *staticPolicy) getPodReusableMemory(pod *v1.Pod, numaAffinity bitmask.BitMask, resourceName v1.ResourceName) uint64 { … }
func (p *staticPolicy) RemoveContainer(s state.State, podUID string, containerName string) { … }
func regenerateHints(pod *v1.Pod, ctn *v1.Container, ctnBlocks []state.Block, reqRsrc map[v1.ResourceName]uint64) map[string][]topologymanager.TopologyHint { … }
func getPodRequestedResources(pod *v1.Pod) (map[v1.ResourceName]uint64, error) { … }
func (p *staticPolicy) GetPodTopologyHints(s state.State, pod *v1.Pod) map[string][]topologymanager.TopologyHint { … }
func (p *staticPolicy) GetTopologyHints(s state.State, pod *v1.Pod, container *v1.Container) map[string][]topologymanager.TopologyHint { … }
func getRequestedResources(pod *v1.Pod, container *v1.Container) (map[v1.ResourceName]uint64, error) { … }
func (p *staticPolicy) calculateHints(machineState state.NUMANodeMap, pod *v1.Pod, requestedResources map[v1.ResourceName]uint64) map[string][]topologymanager.TopologyHint { … }
func (p *staticPolicy) isHintPreferred(maskBits []int, minAffinitySize int) bool { … }
func areGroupsEqual(group1, group2 []int) bool { … }
func (p *staticPolicy) validateState(s state.State) error { … }
func areMachineStatesEqual(ms1, ms2 state.NUMANodeMap) bool { … }
func (p *staticPolicy) getDefaultMachineState() state.NUMANodeMap { … }
func (p *staticPolicy) getResourceSystemReserved(nodeID int, resourceName v1.ResourceName) uint64 { … }
func (p *staticPolicy) getDefaultHint(machineState state.NUMANodeMap, pod *v1.Pod, requestedResources map[v1.ResourceName]uint64) (*topologymanager.TopologyHint, error) { … }
func isAffinitySatisfyRequest(machineState state.NUMANodeMap, mask bitmask.BitMask, requestedResources map[v1.ResourceName]uint64) bool { … }
func (p *staticPolicy) extendTopologyManagerHint(machineState state.NUMANodeMap, pod *v1.Pod, requestedResources map[v1.ResourceName]uint64, mask bitmask.BitMask) (*topologymanager.TopologyHint, error) { … }
func isHintInGroup(hint []int, group []int) bool { … }
func findBestHint(hints []topologymanager.TopologyHint) *topologymanager.TopologyHint { … }
func (p *staticPolicy) GetAllocatableMemory(s state.State) []state.Block { … }
func (p *staticPolicy) updatePodReusableMemory(pod *v1.Pod, container *v1.Container, memoryBlocks []state.Block) { … }
func (p *staticPolicy) updateInitContainersMemoryBlocks(s state.State, pod *v1.Pod, container *v1.Container, containerMemoryBlocks []state.Block) { … }
func isRegularInitContainer(pod *v1.Pod, container *v1.Container) bool { … }
func isNUMAAffinitiesEqual(numaAffinity1, numaAffinity2 []int) bool { … }
func isAffinityViolatingNUMAAllocations(machineState state.NUMANodeMap, mask bitmask.BitMask) bool { … }