Repository navigation
Conversation
|
Do we have an official recommendation from Ruby upstream we can point to
for building in this way?
|
|
@tianon There is a discussion in the bugtracker which it is acknowledged that jemalloc is better, but that it can't be set as the default due to vagaries of different platforms. Since this image is based on Debian I can't see any reason for not doing this - it really is a huge benefit. |
|
It looks like this has been resolved upstream so that ruby can now be configured to use |
|
If anyone is looking to run this now, I've forked this repository, merged this PR, and added a public/automated docker hub that can be found here: https://hub.docker.com/r/swipesense/ruby-jemalloc We've been using this in production for a couple weeks now and have seen great results. I will maintain that docker hub and repo until this or a similar PR is merged. |
* master: (70 commits) Update to 2.6.0-preview3, bundler 1.17.1, rubygems 2.7.8 Update to 2.4.5, bundler 1.17.1, rubygems 2.7.8 Update to 2.5.3, bundler 1.17.1, rubygems 2.7.8 Update to 2.3.8, bundler 1.17.1, rubygems 2.7.8 Update to 2.6.0-preview2, bundler 1.17.1, rubygems 2.7.8 Update to 2.5.3, bundler 1.17.1, rubygems 2.7.7 Update to 2.4.5, bundler 1.17.1, rubygems 2.7.7 Update to 2.3.8, bundler 1.17.1, rubygems 2.7.7 Update to 2.6.0-preview2, bundler 1.17.1, rubygems 2.7.7 Update to 2.4.5, bundler 1.17.0, rubygems 2.7.7 Update to 2.5.3, bundler 1.17.0, rubygems 2.7.7 Update to 2.3.8, bundler 1.17.0, rubygems 2.7.7 Update to 2.6.0-preview2, bundler 1.17.0, rubygems 2.7.7 Remove Alpine 3.6 support from Ruby 2.4 (now that it has 3.8) Update generate-stackbrew-library.sh minor tweak to rerun travis Support Alpine 3.8 Upgrade Ruby to 2.5.3 Update to 2.5.3, bundler 1.16.6, rubygems 2.7.7 Update to 2.3.8, bundler 1.16.6, rubygems 2.7.7 ...
|
Closing PR until a recommendation from Ruby upstream. Discussion can continue on #182. See also #182 (comment) |
Using
jemalloccan decrease memory usage considerably:https://www.levups.com/en/blog/2017/optimize_ruby_memory_usage_jemalloc_heroku_scalingo.html
https://medium.com/@adrienjarthon/ruby-jemalloc-results-for-updown-io-d3fb2d32f67f
This PR updates the Ruby slim template to be built with
jemalloc.