Skip to content
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

feat(cgroup): setting memory.low/min in ApplyMemory() #476

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

lubinszARM
Copy link
Contributor

setting memory.low/min in ApplyMemory()

descriptions for memory.low & memory.min:
memory.low: cgroup memory that will not be reclaimed in soft_limit_reclaim phase of kswapd
memory.min: cgroup memory that can never be reclaimed by kswapd

What type of PR is this?

Enhancements

What this PR does / why we need it:

Provide the interfaces of memory.low/min to help users to set.

Which issue(s) this PR fixes:

None.

Special notes for your reviewer:

Through these new interfaces, we can set a series of special settings for the critical services, such as katalyst, malachite.

@lubinszARM lubinszARM requested a review from csfldf as a code owner February 19, 2024 10:18
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (7c729c9) 54.93% compared to head (0056135) 54.85%.
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/util/cgroup/manager/v2/fs_linux.go 50.00% 4 Missing and 2 partials ⚠️
pkg/util/cgroup/manager/v1/fs_linux.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #476      +/-   ##
==========================================
- Coverage   54.93%   54.85%   -0.08%     
==========================================
  Files         503      503              
  Lines       54822    54840      +18     
==========================================
- Hits        30114    30084      -30     
- Misses      21471    21508      +37     
- Partials     3237     3248      +11     
Flag Coverage Δ
unittest 54.85% <50.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lubinszARM lubinszARM force-pushed the pr_mem_min branch 3 times, most recently from 245c0b6 to 012740e Compare February 20, 2024 05:17
   memory.low: cgroup memory that will not be reclaimed
 in soft_limit_reclaim phase of kswapd
   memory.min: cgroup memory that can never be reclaimed by kswapd

Signed-off-by: Robin Lu <robin.lu@bytedance.com>
@csfldf csfldf merged commit 3ff3454 into kubewharf:main Feb 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants