Malloc Can Double Multi-threaded Ruby Program Memory Usage


17 bookmarks. First posted by floehopper 13 days ago.


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 
5 days ago by moonhouse
Malloc Can Double Multi-threaded Ruby Program Memory Usage via Instapaper http://ift.tt/2zNTrr5
IFTTT  Instapaper 
10 days ago 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 
12 days ago by oscar-lopez
RT : New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter
12 days ago 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 
12 days ago 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
13 days ago by badboy
New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter_favs
13 days ago by floehopper
New blog post: Malloc Can Double Multithreaded Ruby Program Memory Usage

Your mileage will…
from twitter_favs
13 days ago by pjaspers