-
Notifications
You must be signed in to change notification settings - Fork 595
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
refactor: memory management #13636
refactor: memory management #13636
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13636 +/- ##
==========================================
+ Coverage 68.04% 68.08% +0.03%
==========================================
Files 1517 1517
Lines 261828 261735 -93
==========================================
+ Hits 178163 178202 +39
+ Misses 83665 83533 -132
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
commit a3ea7c0 Author: Eric Fu <[email protected]> Date: Sat Nov 25 11:00:48 2023 +0800 refactor: memory management (#13636) commit 2348a2b Author: Bugen Zhao <[email protected]> Date: Fri Nov 24 18:26:48 2023 +0800 fix(streaming): use correct label for `stream_fragment_exchange_bytes` metrics (#13644) Signed-off-by: Bugen Zhao <[email protected]> commit 3ccb249 Author: Runji Wang <[email protected]> Date: Fri Nov 24 17:39:12 2023 +0800 fix: estimate jsonb's value encoding size (#13643) Signed-off-by: Runji Wang <[email protected]> commit 7b21e04 Author: Dylan <[email protected]> Date: Fri Nov 24 16:54:38 2023 +0800 feat(optimizer): improve inline session timezone in exprs (#13640) Signed-off-by: Little-Wallace <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
This part of code became too shitty due to several changes in the history, so I decided to refactor this part first. This PR is a pure refactor without any changes to the logic.
MemoryManager
(mostly fromGlobalMemoryManager
) offers interface to other components and calls theLruWatermarkController
in certain intervalLruWatermarkController
(mostly fromJemallocAndJvmMemoryControl
) executes the real controlling work, including collecting statistics from Jemalloc & JVM and generate a new LRU watermark epoch.config.rs
Later, I will do #13610 (comment) on top of this refactoring.(Thinking...)Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.