hugepages

package
v0.0.0-...-587efbe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RhelDefaultHugepagesz    = 2048 // kB
	RhelDefaultHugepages     = 0
	HugepagesParam           = "hugepages"
	HugepageszParam          = "hugepagesz"
	DefaultHugepagesz        = "default_hugepagesz"
	KernArgsKeyValueSplitLen = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tester

type Tester struct {
	// contains filtered or unexported fields
}

func NewTester

func NewTester(node *provider.Node, probePod *corev1.Pod, commander clientsholder.Command) (*Tester, error)

func (*Tester) HasMcSystemdHugepagesUnits

func (tester *Tester) HasMcSystemdHugepagesUnits() bool

func (*Tester) Run

func (tester *Tester) Run() error

func (*Tester) TestNodeHugepagesWithKernelArgs

func (tester *Tester) TestNodeHugepagesWithKernelArgs() (bool, error)

TestNodeHugepagesWithKernelArgs compares node hugepages against kernelArguments config. The total count of hugepages of the size defined in the kernelArguments must match the kernArgs' hugepages value. For other sizes, the sum should be 0.

func (*Tester) TestNodeHugepagesWithMcSystemd

func (tester *Tester) TestNodeHugepagesWithMcSystemd() (bool, error)

TestNodeHugepagesWithMcSystemd compares the node's hugepages values against the mc's systemd units ones.

Jump to

Keyboard shortcuts

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