Documentation
¶
Index ¶
Constants ¶
View Source
const ( THPPath = "/sys/kernel/mm/transparent_hugepage/" THPEnabledFile = "enabled" THPShmemEnabledFile = "shmem_enabled" THPDefragFile = "defrag" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewHugepageManager ¶
func (*Manager) ApplyConfig ¶
func (h *Manager) ApplyConfig(thp *nodev1beta1.THPConfig) error
func (*Manager) GenerateStatus ¶
func (h *Manager) GenerateStatus() (*nodev1beta1.HugepageStatus, error)
func (*Manager) GetDefaultTHPConfig ¶
func (h *Manager) GetDefaultTHPConfig() *nodev1beta1.THPConfig
GetDefaultTHPConfig returns the system's current THP config, or if that fails, it returns sensible default values. This is to be used when first creating a Hugepage CR for a node so that the initial spec reflects the current state of the system.
Click to show internal directories.
Click to hide internal directories.