~/talk

Compacting GC in MRI

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [ruby-on-rails]
slides:none on file

An implementation of a compacting GC for MRI exists that actually moves objects using a two-finger compaction algorithm, updates pointers, and exposes a gc_compact entry in the branch; it finds about 46% movable objects on a Rails heap, skips objects fixed by rb_gc_mark, C globals and literal strings (bytecode points to literals), and so far reduces fork-induced page faults as measured with ObjectSpace dump JSON traces and smap/pss comparisons; production testing is ongoing.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 3:00Copy-on-write optimization
  3. 11:42Page faults and GC impact
  4. 14:41Heap compaction concept
  5. 20:37Compaction algorithm steps
  6. 26:56Challenges in object movement
  7. 35:15Compaction results and visualization
  8. 39:44Memory measurement tools
  9. 40:32Current status and future work
  10. 41:18Conclusion and key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.