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 ( // 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.
Click to show internal directories.
Click to hide internal directories.