vcpu

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustDomainForTopologyAndCPUSet added in v0.49.1

func AdjustDomainForTopologyAndCPUSet(domain *api.Domain, vmi *v12.VirtualMachineInstance, topology *v1.Topology, cpuset []int, useIOThreads bool) error

func CalculateRequestedVCPUs

func CalculateRequestedVCPUs(cpuTopology *api.CPUTopology) uint32

func FormatDomainIOThreadPin added in v0.49.1

func FormatDomainIOThreadPin(vmi *v12.VirtualMachineInstance, domain *api.Domain, emulatorThreadsCPUSet string, cpuset []int) error

func FormatEmulatorThreadPin added in v1.1.1

func FormatEmulatorThreadPin(cpuPool VCPUPool, vmiAnnotations map[string]string, vCPUs int64) (string, error)

func GetCPUTopology added in v0.49.1

func GetCPUTopology(vmi *v12.VirtualMachineInstance) *api.CPUTopology

func GetVirtualMemory added in v0.49.1

func GetVirtualMemory(vmi *v12.VirtualMachineInstance) *resource.Quantity

func QuantityToByte added in v0.49.1

func QuantityToByte(quantity resource.Quantity) (api.Memory, error)

func QuantityToMebiByte added in v0.49.1

func QuantityToMebiByte(quantity resource.Quantity) (uint64, error)

Types

type VCPUPool

type VCPUPool interface {
	FitCores() (tune *api.CPUTune, err error)
	FitThread() (thread uint32, err error)
}

func NewRelaxedCPUPool

func NewRelaxedCPUPool(requestedToplogy *api.CPUTopology, nodeTopology *v1.Topology, cpuSet []int) VCPUPool

func NewStrictCPUPool

func NewStrictCPUPool(requestedToplogy *api.CPUTopology, nodeTopology *v1.Topology, cpuSet []int) VCPUPool

Jump to

Keyboard shortcuts

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