vcpu

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 9 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, emulatorThread uint32, cpuset []int) 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