consts

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CPUResourcePluginPolicyNameDynamic is the name of the dynamic policy.
	CPUResourcePluginPolicyNameDynamic = string(consts.ResourcePluginPolicyNameDynamic)

	// CPUResourcePluginPolicyNameNative is the name of the native policy.
	CPUResourcePluginPolicyNameNative = string(consts.ResourcePluginPolicyNameNative)

	CPUPluginDynamicPolicyName = "qrm_cpu_plugin_" + CPUResourcePluginPolicyNameDynamic
	ClearResidualState         = CPUPluginDynamicPolicyName + "_clear_residual_state"
	CheckCPUSet                = CPUPluginDynamicPolicyName + "_check_cpuset"
	SyncCPUIdle                = CPUPluginDynamicPolicyName + "_sync_cpu_idle"
	CommunicateWithAdvisor     = CPUPluginDynamicPolicyName + "_communicate_with_advisor"
)
View Source
const (
	// CPUIncrRatioSharedCoresNUMABinding will be multiplied to the shared_cores with numa_biding entry request
	// and be used to increment pool size
	CPUIncrRatioSharedCoresNUMABinding = 2.0

	// CPUIncrRatioDefault is the default value be multiplied to the entry request
	// and be used to increment pool size
	CPUIncrRatioDefault = 1.0
)
View Source
const (
	// packing: refers to the strategy of putting as many containers as possible onto a single NUMA node in order to utilize the resources efficiently and reduce fragmentation.
	CPUNUMAHintPreferPolicyPacking = "packing"
	// spreading: tries to distributing containers across multiple nodes. Aiming to balance the load by avoiding overloading individual nodes.
	CPUNUMAHintPreferPolicySpreading = "spreading"
	// dynamic_packing: refers to the strategy of putting as many containers as possible onto a single NUMA node until the node hits configurable threshold.
	// if all nodes hit configurable threshold, use spreading policy instead.
	CPUNUMAHintPreferPolicyDynamicPacking = "dynamic_packing"
)
View Source
const (
	// CPUStateAnnotationKeyNUMAHint is the key stored in allocationInfo.Annotations
	// to indicate NUMA hint for the entry
	CPUStateAnnotationKeyNUMAHint = "numa_hint"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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