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 RefaultPolicyConf ¶
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 }
func NewTransparentMemoryOffloadingConfiguration ¶
func NewTransparentMemoryOffloadingConfiguration() *TransparentMemoryOffloadingConfiguration
func (*TransparentMemoryOffloadingConfiguration) ApplyConfiguration ¶
func (c *TransparentMemoryOffloadingConfiguration) ApplyConfiguration(conf *crd.DynamicConfigCRD)
Click to show internal directories.
Click to hide internal directories.