~/talk

Keynote: Taking Out The Trash

Talkat RedDotRubyConf 2016 · 2016-06-23..06-24· [ruby, software-architecture]
slides:none on file

Explains how MRI actually reclaims and allocates memory: a mark-and-sweep collector that is generational and incremental using tricolor marking, plus right barriers and remembered sets to avoid freeing live objects. Details: Ruby page ≈16KB, object slot ≈40B, tag pointers use low bits so small ints and symbols avoid allocation; fixednum limits explained. Shows practical tools GC.stat, GC::Profiler and ObjectSpace.dump_all and proposes grouping likely-old objects into dedicated pages to reduce fragmentation and fork copy‑on‑write.

AI-written summary · about

  1. 0:00Intro
  2. 0:46Who am I
  3. 2:15Cats
  4. 8:50Types of Garbage Collector
  5. 11:19Markandsweep
  6. 13:30Generational Garbage Collector
  7. 15:26Write Barrier
  8. 17:57Tricolor Marking
  9. 26:29Allocation Hacks
  10. 28:31Representation Hacks
  11. 31:52Allocation Problems
  12. 33:30Grouping Objects
  13. 35:53Grouping Old Objects
  14. 40:44Questions
~/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.