calculator

package
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL