Documentation ¶
Index ¶
Constants ¶
View Source
const (
// HighPerformance contains the high-performance runtime handler name
HighPerformance = "high-performance"
)
Variables ¶
This section is empty.
Functions ¶
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{}
HighPerformanceHooks used to run additional hooks that will configure a system for the latency sensitive workloads
type RuntimeHandlerHooks ¶
type RuntimeHandlerHooks interface { PreStart(ctx context.Context, c *oci.Container, s *sandbox.Sandbox) error PreStop(ctx context.Context, c *oci.Container, s *sandbox.Sandbox) error }
func GetRuntimeHandlerHooks ¶
func GetRuntimeHandlerHooks(ctx context.Context, handler string, r *oci.Runtime) (RuntimeHandlerHooks, error)
GetRuntimeHandlerHooks returns RuntimeHandlerHooks implementation by the runtime handler name
Click to show internal directories.
Click to hide internal directories.