22 ms·
There has been lots of discussion lately about Ruby and malloc. jemalloc gives the best results for Server Performance and memory usage [1], but is slightly slo
by ksec 8y ago
There has been lots of discussion lately about Ruby and malloc. jemalloc gives the best results for Server Performance and memory usage [1], but is slightly slower in low memory usage scenario i.e Non Server usage which is popular in Japan. But jemalloc sometimes ( Not sure if this is still the case ) doesn't work well with muslc, used in Alpine Linux.
The Ruby Core team has decided against [2] shipping jemalloc by default, but will use it when it is available. Which ultimately led to some work on SleepyGC [3] and Transient heap [4].
[1] https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/ https://www.mikeperham.com/2018/04/25/taming-rails-memory-bl...
[2] https://bugs.ruby-lang.org/issues/14718 https://bugs.ruby-lang.org/issues/14718
[3] https://bugs.ruby-lang.org/issues/14723 https://bugs.ruby-lang.org/issues/14723
[4] https://bugs.ruby-lang.org/issues/14858 https://bugs.ruby-lang.org/issues/14858