Documentation
¶
Index ¶
- Constants
- type Ksmtuned
- func (k *Ksmtuned) Apply(thresCoef uint, param ksmtunedv1.KsmtunedParameters)
- func (k *Ksmtuned) Prune() error
- func (k *Ksmtuned) RunStatus() (ksmtunedv1.KsmdPhase, error)
- func (k *Ksmtuned) SetKsmdUtilization(gv *prometheus.GaugeVec)
- func (k *Ksmtuned) Status() <-chan *ksmtunedv1.KsmtunedStatus
- func (k *Ksmtuned) Stop() error
- func (k Ksmtuned) ToggleMergeAcrossNodes(toggle uint) error
Constants ¶
View Source
const ( Ksmd = "ksmd" KSMPath ksmPath = "/sys/kernel/mm/ksm" RunPath = KSMPath + "/run" PagesToScanPath = KSMPath + "/pages_to_scan" SleepMillisecsPath = KSMPath + "/sleep_millisecs" MergeAcrossNodes = KSMPath + "/merge_across_nodes" )
View Source
const ( MonitorInterval = time.Second * 60 MinThres = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ksmtuned ¶
type Ksmtuned struct {
// contains filtered or unexported fields
}
func (*Ksmtuned) Apply ¶
func (k *Ksmtuned) Apply(thresCoef uint, param ksmtunedv1.KsmtunedParameters)
func (*Ksmtuned) SetKsmdUtilization ¶
func (k *Ksmtuned) SetKsmdUtilization(gv *prometheus.GaugeVec)
func (*Ksmtuned) Status ¶
func (k *Ksmtuned) Status() <-chan *ksmtunedv1.KsmtunedStatus
func (Ksmtuned) ToggleMergeAcrossNodes ¶
ToggleMergeAcrossNodes toggle /sys/kernel/mm/ksm/merge_across_nodes
Click to show internal directories.
Click to hide internal directories.