Malloc Can Double Multi-threaded Ruby Program Memory Usage
Read OriginalThis technical article investigates a major source of memory fragmentation in multi-threaded CRuby applications, specifically Sidekiq processes. It explains how malloc's per-thread memory arenas can double memory usage and demonstrates how configuring the MALLOC_ARENA_MAX environment variable to 2 can cut memory consumption in half, while also discussing the trade-offs and applicability of this fix.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet