Documentation
¶
Index ¶
- Constants
- func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)
- func GetMachineConfigName(profile *performancev2.PerformanceProfile) string
- func GetOCIHooksConfigContent(configFile string, profile *performancev2.PerformanceProfile) ([]byte, error)
- func New(assetsDir string, profile *performancev2.PerformanceProfile) (*machineconfigv1.MachineConfig, error)
Constants ¶
View Source
const ( // MCKernelRT is the value of the kernel setting in MachineConfig for the RT kernel MCKernelRT = "realtime" // MCKernelDefault is the value of the kernel setting in MachineConfig for the default kernel MCKernelDefault = "default" // HighPerformanceRuntime contains the name of the high-performance runtime HighPerformanceRuntime = "high-performance" // OCIHooksConfigDir is the default directory for the OCI hooks OCIHooksConfigDir = "/etc/containers/oci/hooks.d" // OCIHooksConfig file contains the low latency hooks configuration OCIHooksConfig = "99-low-latency-hooks" )
Variables ¶
This section is empty.
Functions ¶
func GetHugepagesSizeKilobytes ¶
func GetHugepagesSizeKilobytes(hugepagesSize performancev2.HugePageSize) (string, error)
GetHugepagesSizeKilobytes retruns hugepages size in kilobytes
func GetMachineConfigName ¶
func GetMachineConfigName(profile *performancev2.PerformanceProfile) string
GetMachineConfigName generates machine config name from the performance profile
func GetOCIHooksConfigContent ¶
func GetOCIHooksConfigContent(configFile string, profile *performancev2.PerformanceProfile) ([]byte, error)
GetOCIHooksConfigContent reads and returns the content of the OCI hook file
func New ¶
func New(assetsDir string, profile *performancev2.PerformanceProfile) (*machineconfigv1.MachineConfig, error)
New returns new machine configuration object for performance sensitive workloads
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.