-
Notifications
You must be signed in to change notification settings - Fork 203
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
Examine Ruby memory use #1269
Comments
In the short term, investigate using MALLOC_ARENA_MAX=2 |
The "Joyful Bikeshedding" is, as far as I can tell, the best analysis. Many people thought it was fragmentation, but with additional analysis, it appears that the real problem is slightly different. That said, others have also noticed that setting MALLOC_ARENA_MAX=2 is helpful for Ruby: https://www.speedshop.co/2017/12/04/malloc-doubles-ruby-memory.html Experimentation reveals no serious problems in setting this environment variable for our situation. |
I continue to monitor. I see no serious problems. The memory use is somewhat less - it's not trivial, but it looks like we have a better margin. |
I've continued to monitor. So I'm closing this issue. Further improvements would be welcome, but right now we should move on to other things. |
See
https://www.joyfulbikeshedding.com/blog/2019-03-14-what-causes-ruby-memory-bloat.html#is-fragmentation-at-the-ruby-heap-pages-level-the-cause-of-memory-bloating
The text was updated successfully, but these errors were encountered: