Skip to content

Commit

Permalink
enhancement(eviction): add numa pressure victim minimum utilization t…
Browse files Browse the repository at this point in the history
…hreshold
  • Loading branch information
zzzzhhb committed Sep 26, 2023
1 parent 92231a6 commit 70c0e35
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ spec:
threshold for the number of times NUMA's free memory
falls below the watermark
type: integer
numaVictimMinimumUtilizationThreshold:
description: NumaVictimMinimumUtilizationThreshold is
the victim's minimum memory usage on a NUMA node, if
a pod uses less memory on a NUMA node than this threshold,it
won't be evicted by this NUMA's memory pressure.
type: number
rssOveruseRateThreshold:
description: RSSOveruseRateThreshold is the threshold
for the rate of rss
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/config/v1alpha1/adminqos.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ type MemoryPressureEvictionConfig struct {
// +optional
EnableSystemLevelEviction *bool `json:"enableSystemLevelEviction,omitempty"`

// NumaVictimMinimumUtilizationThreshold is the victim's minimum memory usage on a NUMA node, if a pod
// uses less memory on a NUMA node than this threshold,it won't be evicted by this NUMA's memory pressure.
// +optional
NumaVictimMinimumUtilizationThreshold *float64 `json:"numaVictimMinimumUtilizationThreshold,omitempty"`

// NumaFreeBelowWatermarkTimesThreshold is the threshold for the number of
// times NUMA's free memory falls below the watermark
// +kubectl:validation:Minimum=0
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70c0e35

Please sign in to comment.