Malloc Can Double Multi-threaded Ruby Program Memory Usage


21 bookmarks. First posted by floehopper december 2017.


Memory fragmentation is difficult to measure and diagnose, but it can also sometimes be very easy to fix. Let's look at one source of memory fragmentation in multi-threaded CRuby programs: malloc's per-thread memory arenas. (3343 words/20 minutes)
ruby  memory  performance 
december 2017 by moonhouse
Malloc Can Double Multi-threaded Ruby Program Memory Usage via Instapaper http://ift.tt/2zNTrr5
IFTTT  Instapaper 
december 2017 by chaoxian
Multithreaded Ruby programs may be consuming 2 to 4 times the amount of memory that they really need, due to fragmentation caused by per-thread memory arenas in malloc. To fix this, you can reduce the maximum number of arenas by setting the MALLOC_ARENA_MAX environment variable or by switching to an allocator with better performance, such as jemalloc.
ruby  rubyonrails  optimization  memory  gc  reference  articles  performance  threads 
december 2017 by oscar-lopez
RT : New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter
december 2017 by sarcas
Memory fragmentation is difficult to measure and diagnose, but it can also sometimes be very easy to fix. Let's look at one source of memory fragmentation in multi-threaded CRuby programs: malloc's per-thread memory arenas.
ruby  memory  performance 
december 2017 by stevenharman
by Nate Berkopec ( @nateberkopec ) of (who?) , a Rails performance consultancy. Summary: Memory fragmentation is difficult to measure and diagnose, but it can…
from instapaper
december 2017 by badboy
New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter_favs
december 2017 by pjaspers
New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter_favs
december 2017 by floehopper