memory: apply cgroup limit immediately - #11063
Conversation
Signed-off-by: okjiang <819421878@qq.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesCgroup memory hook
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@okJiang: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11063 +/- ##
==========================================
+ Coverage 79.23% 79.32% +0.09%
==========================================
Files 540 541 +1
Lines 76010 76358 +348
==========================================
+ Hits 60226 60571 +345
- Misses 11533 11535 +2
- Partials 4251 4252 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Issue Number: ref #10719
When PD is started by systemd under a cgroup, package initialization can cache the host physical memory before
InitMemoryHookselects the cgroup memory hooks.Because the total-memory cache remains valid for 60 seconds, RegionSyncer can size its history buffer using the host memory and retain an oversized limit for the process lifetime.
What is changed and how does it work?
Check List
Tests
Manual test:
Release note
Summary by CodeRabbit
Bug Fixes
Tests