Documentation ¶
Index ¶
- func TakeByNUMABalance(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, ...) (machine.CPUSet, machine.CPUSet, error)
- func TakeByNUMABalanceReversely(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, ...) (machine.CPUSet, machine.CPUSet, error)
- func TakeByTopology(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, ...) (machine.CPUSet, error)
- func TakeHTByNUMABalance(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, ...) (machine.CPUSet, machine.CPUSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TakeByNUMABalance ¶
func TakeByNUMABalance(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, cpuRequirement int, ) (machine.CPUSet, machine.CPUSet, error)
TakeByNUMABalance tries to make the allocated cpu spread on different sockets, and it uses cpu Cores as the basic allocation unit
func TakeByNUMABalanceReversely ¶ added in v0.5.5
func TakeByNUMABalanceReversely(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, cpuRequirement int, ) (machine.CPUSet, machine.CPUSet, error)
TakeByNUMABalanceReversely tries to make the allocated cpu resersely spread on different NUMAs, and it uses cpu Cores as the basic allocation unit
func TakeByTopology ¶
func TakeByTopology(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, cpuRequirement int, ) (machine.CPUSet, error)
TakeByTopology tries to allocate those required cpus in the same socket or cores
func TakeHTByNUMABalance ¶
func TakeHTByNUMABalance(info *machine.KatalystMachineInfo, availableCPUs machine.CPUSet, cpuRequirement int, ) (machine.CPUSet, machine.CPUSet, error)
TakeHTByNUMABalance tries to make the allocated cpu spread on different NUMAs, and it uses cpu HT as the basic allocation unit
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.