tmo

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnableTMO                                   bool                   = false
	DefaultEnableSwap                                  bool                   = false
	DefaultTMOInterval                                 time.Duration          = 30 * time.Second
	DefaultTMOPolicyName                               v1alpha1.TMOPolicyName = v1alpha1.TMOPolicyNamePSI
	DefaultTMOMaxProbe                                 float64                = 0.01
	DefaultTMOPSIPolicyPSIAvg60Threshold               float64                = 0.1
	DefaultTMORefaultPolicyReclaimAccuracyTarget       float64                = 0.99
	DefaultTMORefaultPolicyReclaimScanEfficiencyTarget float64                = 0.6
)

Variables

This section is empty.

Functions

func ApplyTMOConfigDetail

func ApplyTMOConfigDetail(tmoConfigDetail *TMOConfigDetail, tmoConfigDetailDynamic v1alpha1.TMOConfigDetail)

Types

type PSIPolicyConf

type PSIPolicyConf struct {
	MaxProbe          float64
	PsiAvg60Threshold float64
}

type RefaultPolicyConf

type RefaultPolicyConf struct {
	MaxProbe                    float64
	ReclaimAccuracyTarget       float64
	ReclaimScanEfficiencyTarget float64
}

type TMOBlockConfig added in v0.5.11

type TMOBlockConfig struct {
	LabelsSelector      labels.Selector
	AnnotationsSelector labels.Selector
}

type TMOConfigDetail

type TMOConfigDetail struct {
	EnableTMO  bool
	EnableSwap bool
	Interval   time.Duration
	PolicyName v1alpha1.TMOPolicyName
	*PSIPolicyConf
	*RefaultPolicyConf
}

func NewTMOConfigDetail

func NewTMOConfigDetail(defaultConfigs *TMODefaultConfigurations) *TMOConfigDetail

type TMODefaultConfigurations

type TMODefaultConfigurations struct {
	DefaultEnableTMO                                   bool
	DefaultEnableSwap                                  bool
	DefaultTMOInterval                                 time.Duration
	DefaultTMOPolicyName                               v1alpha1.TMOPolicyName
	DefaultTMOMaxProbe                                 float64
	DefaultTMOPSIPolicyPSIAvg60Threshold               float64
	DefaultTMORefaultPolicyReclaimAccuracyTarget       float64
	DefaultTMORefaultPolicyReclaimScanEfficiencyTarget float64
}

func NewTMODefaultConfigurations

func NewTMODefaultConfigurations() *TMODefaultConfigurations

type TransparentMemoryOffloadingConfiguration

type TransparentMemoryOffloadingConfiguration struct {
	DefaultConfigurations *TMODefaultConfigurations
	QoSLevelConfigs       map[consts.QoSLevel]*TMOConfigDetail
	CgroupConfigs         map[string]*TMOConfigDetail
	BlockConfig           *TMOBlockConfig
}

func NewTransparentMemoryOffloadingConfiguration

func NewTransparentMemoryOffloadingConfiguration() *TransparentMemoryOffloadingConfiguration

func (*TransparentMemoryOffloadingConfiguration) ApplyConfiguration

func (c *TransparentMemoryOffloadingConfiguration) ApplyConfiguration(conf *crd.DynamicConfigCRD)

Jump to

Keyboard shortcuts

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