Toward Ractor local GC
summary
Proposes ractor-local garbage collection that treats sharable objects as roots and avoids cross-ractor reference tracking by conservatively marking all sharable objects live, with a fallback to global GC when needed. Implements a prototype in Ruby and runs microbenchmarks on a 14-core Intel machine showing up to ~5× speedup with 16 ractors on short-lived strings and over 4× on longer-lived workloads. Prototype runs safely and reduces global pauses while accepting some retained sharable-object memory.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 4:58Background on Ractor and GC
- 10:54Challenges of local GC
- 18:14Conservative approach proposal
- 23:43Evaluation and benchmarks
- 28:24Future work and summary
related talks
29mMillion-Agent Ruby: Ractor-Local GC in the Age of AI
30mRactor on Ruby 3.4
28mCome Discuss Ractors and Concurrency with 'The Dude'!
25mRactor Demonstration
28mRactors in Ruby 4.0: Message Passing Without the Pain
34mUnder the Hood of Ruby's Generational Garbage Collector
29mUsing Ractors and Making Ractors Usable
54mKeynote: Exploring Memory in Ruby - Building a Compacting GC
