~/talk

Methods of Memory Management in MRI

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby]

Covers how MRI actually allocates and reclaims memory: Ruby heap layout with 16KB pages, 40B object slots; tag‑pointer fixnum encoding and the 2^62 limit; mark‑and‑sweep, generational + tri‑color incremental tracing with write‑barriers and remembered sets; allocation slabs, bump pointer, eden/tomb behavior; introspection via GC.stat, ObjectSpace.dump and GC::Profiler; experimental heap‑splitting and a GitHub patch that groups classes/modules and yields a ~17% heap reduction on a Rails app — includes code, numbers, and measured results.

AI-written summary · about

  1. 0:00Start
  2. 5:35Bear Metal
  3. 16:30Mark Phase
  4. 16:57Sweep Phase
  5. 17:12Mark & Sweep
  6. 18:37Generational
  7. 22:32Object Colors
  8. 22:48Algorithm
  9. 24:36Tri-Color Marking
  10. 29:38Page Layout
  11. 30:22Full Pages
  12. 34:37Encode Number 2
  13. 35:14Biggest Fixnum
  14. 36:40Fixnums are singletons
  15. 37:35Tagged Pointers
  16. 37:59Poor Reclamation
  17. 40:14Two Page Types
  18. 46:01GC::Profiler
  19. 46:44ObjectSpace.dump
~/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.