-
Notifications
You must be signed in to change notification settings - Fork 32
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
Added support for Debian 10 (buster) #32
Conversation
Ahh, I'm just installing gems and compiling all of the native extensions, and I got this crash with the This should be nothing to worry about, because I can install the latest
This native extension was compiling fine using the same fullstaq ruby version for Debian 9. UPDATE: I just saw this changelog entry for jemalloc 5.2.1:
I will try to compile with the latest jemalloc and see if that fixes it. UPDATE 2: Great! Updating to jemalloc
I also realized that this might not be an isolated incident specifically for I'm also not sure if using the very latest version is a bit dangerous. So maybe there's a safer version of jemalloc somewhere between 3.6.0 and 5.2.1. Anyway, I will be testing this out in test/staging/production over the coming weeks, and will update if I run into any more issues. |
Hmm, I'm trying to build Ruby 2.6.5 now, so I ran: But it looks jemalloc is missing from the package:
Not sure why that's happening. |
@FooBarWidget Would it be possible to add a "sanity check" after compiling/packaging Ruby, to make sure that this can be caught a bit earlier? (I'm just not too familiar with these scripts, so I don't know the best place to put that.) EDIT: I was also wondering about the rationale behind jemalloc |
Ah I finally figured it out, from the
I just needed to rename
I will update the test to check for both 'LIBS' and 'SOLIBS':
|
That's a bummer. Newer Jemalloc versions are problematic. Jemalloc > 3 don't result in as much memory usage reduction as v3. The cause is still unknown. |
Ahhh I see! I just saw this tweet from Nate Berkopec:
Maybe it would be possible to use Jemalloc |
That's indeed what he said in January, but I tested Jemalloc 5 somewhere in June and I saw that even the latest v5 uses more memory than v3, so it's not THP that's the problem. |
Sorry I should have read more before posting that comment! I also just found your article "The status of Ruby memory trimming & how you can help with testing". Do you have any results / updates for I switched to DataDog recently for APM and metrics, and to be honest I don't really know how to use it yet! But I think I've found the average memory utilization for my containers: This is for Ruby |
All right, looking forward to your results. |
So it did result in a reduction in memory usage. That's good! It would be ideal if we can make jemalloc 3 work on Debian 10. I can give fixing it a quick try. Would you be willing to test it out to see whether it uses less memory than Jemalloc 5? |
Oh yeah, I think it might actually be the gcc 8 update that caused this, and compiling the
One solution might be for |
Ah okay. Let's split up the Jemalloc discussion then. Your PR looks good so I'll accept it, thanks again! |
Detects issues such as: #34 #32 (comment)
Fixes #16
I just needed to rename
libgdbm4
tolibgdbm6
, then everything was compiled and packaged without any problems.I also updated the README to include the debian release names: 9 (stretch), 10 (buster)