A deep dive into Ruby memory management. I originally gave this talk in July 2018 at a meetup hosted by Weedmaps.
I am incredibly grateful to the giants whose shoulders I stood on in order to put this talk together. Presented in alphabetical order.
- Debugging Memory Leaks in Ruby by Sam Saffron
- Demystifying the Ruby GC by Sam Saffron
- How I spent two weeks hunting a memory leak in Ruby by Oleg Dashevskii
- How Ruby Uses Memory by Richard Schneeman
- Hunting Down Memory Issues In Ruby: A Definitive Guide by Bruz Marzolf
- Incremental Garbage Collection in Ruby 2.2 by Koichi Sasada
- Mark and Sweep Garbage Collection Algorithm by Chirag Agarwal
- Optimizing Rails for Memory Usage by Brian Hempel
- Ruby Memory Environment Variables - Simpler Than They Look by Noah Gibbs
- Ruby Hacking Guide: Garbage Collection by Minero Aoki
- Using lazy enumerators to work with large files in Ruby by Starr Horne
- Visualizing Your Ruby Heap by Aaron Patterson
Some of the relevant Ruby standard library modules.