-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement(sysadvisor): skip the containers if cache usage less then… #297
enhancement(sysadvisor): skip the containers if cache usage less then… #297
Conversation
2b13081
to
8acce7e
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #297 +/- ##
==========================================
- Coverage 53.39% 53.31% -0.09%
==========================================
Files 401 403 +2
Lines 43913 43998 +85
==========================================
+ Hits 23448 23458 +10
- Misses 17878 17966 +88
+ Partials 2587 2574 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
a52259b
to
7088198
Compare
@@ -247,6 +247,8 @@ func (ra *memoryResourceAdvisor) detectNUMAPressure(numaID int) (*types.MemoryPr | |||
if free < criticalWatermark { | |||
pressureState = types.MemoryPressureDropCache | |||
targetReclaimed.Set(int64(2*criticalWatermark - free)) | |||
} else if free < 2*criticalWatermark { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for those magic numbers, pls use const vars (along with a brief introduction)
containers := make([]*types.ContainerInfo, 0) | ||
cp.metaReader.RangeContainer(func(podUID string, containerName string, containerInfo *types.ContainerInfo) bool { | ||
if cp.reclaimedContainersFilter(containerInfo) { | ||
if cp.reclaimedContainersFilter(containerInfo, -1, minCacheUtilizationThreshold) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use const vars defined in pb package instead of -1
here
… threshold when reaping cache Signed-off-by: linzhecheng <linzhecheng@bytedance.com>
7088198
to
78a2d7b
Compare
… threshold when reaping cache
What type of PR is this?
Enhancements
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer: