Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HighPerformance contains the high-performance runtime handler name HighPerformance = "high-performance" // IrqBannedCPUConfigFile contains the original banned cpu mask configuration IrqBannedCPUConfigFile = "/etc/sysconfig/orig_irq_banned_cpus" // IrqSmpAffinityProcFile contains the default smp affinity mask configuration IrqSmpAffinityProcFile = "/proc/irq/default_smp_affinity" )
Variables ¶
This section is empty.
Functions ¶
func RestoreIrqBalanceConfig ¶ added in v1.20.2
func RestoreIrqBalanceConfig(irqBalanceConfigFile, irqBannedCPUConfigFile, irqSmpAffinityProcFile string) error
RestoreIrqBalanceConfig restores irqbalance service with original banned cpu mask settings
func UpdateIRQSmpAffinityMask ¶ added in v1.20.0
func UpdateIRQSmpAffinityMask(cpus, current string, set bool) (cpuMask, bannedCPUMask string, err error)
UpdateIRQSmpAffinityMask take input cpus that need to change irq affinity mask and the current mask string, return an update mask string and inverted mask, with those cpus enabled or disable in the mask.
Types ¶
type HighPerformanceHooks ¶
type HighPerformanceHooks struct {
// contains filtered or unexported fields
}
HighPerformanceHooks used to run additional hooks that will configure a system for the latency sensitive workloads
Click to show internal directories.
Click to hide internal directories.