calculator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 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 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 sockets, 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