-
Notifications
You must be signed in to change notification settings - Fork 590
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
reduce reserved memory and/or having reserved memory a more reasonable upper bound #16130
Comments
We recently encountered users who allocate 150GB+ memory. The reserved memory would be quite large, 45GB+ memory, and wasteful if the true difference is not that big |
How about introduce an option (env var) for setting the memory for memory management? |
Repost from Slack for better visibility https://risingwave-labs.slack.com/archives/C03Q34JHLLC/p1713339502326229:
As we observe there are indeterministic (sometimes large sometimes small close to 0) gaps between the Jemalloc estimation and RSS in #13648 and https://risingwave-labs.slack.com/archives/C03L8DNMDDW/p1709284323589129?thread_ts=1709280838.845109&cid=C03L8DNMDDW. I was wondering if we could replace Jemalloc memory estimation with RSS to guide the memory control policy. From @fuyufjh:
Later, we discovered that there are two variables in Jemalloc to control the timing of returning the memory page to OS: By setting both But whether they really work as expected needs to be tested:
|
As #16992 brought this issue again, I took a look at
as https://github.com/tikv/jemallocator/blob/main/jemalloc-ctl/src/opt.rs does not expose these two variables |
This issue has been open for 60 days with no activity. If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the You can also confidently close this issue as not planned to keep our backlog clean. |
https://risingwave-labs.slack.com/archives/C03L8DNMDDW/p1709280838845109
We right now reserved 30% of total memory because we once observed in #13648 that the difference between actual usage (jemalloc_allocated) and process usage (process_resident_memory) is somehow pretty large, ~30%.
but later we also observed that https://risingwave-labs.slack.com/archives/C03L8DNMDDW/p1709284323589129?thread_ts=1709280838.845109&cid=C03L8DNMDDW the difference is not that big.
The text was updated successfully, but these errors were encountered: