diff --git a/config/crd/bases/config.katalyst.kubewharf.io_transparentmemoryoffloadingconfigurations.yaml b/config/crd/bases/config.katalyst.kubewharf.io_transparentmemoryoffloadingconfigurations.yaml index f7a16516..f31b835a 100644 --- a/config/crd/bases/config.katalyst.kubewharf.io_transparentmemoryoffloadingconfigurations.yaml +++ b/config/crd/bases/config.katalyst.kubewharf.io_transparentmemoryoffloadingconfigurations.yaml @@ -98,6 +98,11 @@ spec: description: EnableSwap is whether to enable swap to offloading anon pages type: boolean + enableSwapOnProactiveEnabled: + description: EnableSwapOnProactiveEnable is whether + to enable swap to offloading anon pages only when + host swappiness_proactive is enabled + type: boolean enableTMO: description: EnableTMO is whether to enable TMO on target objective @@ -231,6 +236,11 @@ spec: description: EnableSwap is whether to enable swap to offloading anon pages type: boolean + enableSwapOnProactiveEnabled: + description: EnableSwapOnProactiveEnable is whether + to enable swap to offloading anon pages only when + host swappiness_proactive is enabled + type: boolean enableTMO: description: EnableTMO is whether to enable TMO on target objective diff --git a/pkg/apis/config/v1alpha1/tmo.go b/pkg/apis/config/v1alpha1/tmo.go index 562b17c8..7d77ccf6 100644 --- a/pkg/apis/config/v1alpha1/tmo.go +++ b/pkg/apis/config/v1alpha1/tmo.go @@ -109,6 +109,11 @@ type TMOConfigDetail struct { // +optional EnableSwap *bool `json:"enableSwap,omitempty"` + // EnableSwapOnProactiveEnable is whether to enable swap to offloading anon pages only when + // host swappiness_proactive is enabled + // +optional + EnableSwapOnProactiveEnabled *bool `json:"enableSwapOnProactiveEnabled,omitempty"` + // Interval is the minimum duration the objectives got memory reclaimed by TMO // +optional Interval *metav1.Duration `json:"interval,omitempty"` diff --git a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go index eaf942d6..d9e6e528 100644 --- a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go @@ -1849,6 +1849,11 @@ func (in *TMOConfigDetail) DeepCopyInto(out *TMOConfigDetail) { *out = new(bool) **out = **in } + if in.EnableSwapOnProactiveEnabled != nil { + in, out := &in.EnableSwapOnProactiveEnabled, &out.EnableSwapOnProactiveEnabled + *out = new(bool) + **out = **in + } if in.Interval != nil { in, out := &in.Interval, &out.Interval *out = new(v1.Duration)