machineconfig

package
v0.0.41001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

New returns new machine configuration object for performance sensitive workloads

Types

This section is empty.

Jump to

Keyboard shortcuts

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