~/talk

Angelina Ballerina Learns About Memory Allocation

Talkat Strange Loop 2017 · 2017-09-28..09-30· [web-performance, testing]
slides:none on file

An app that generates huge Excel files triggers Heroku request timeouts (>30s) and memory quota exceeded errors; the diagnosis traces to retained versus transient Ruby objects in the spreadsheet path. The talk states Ruby uses mark‑and‑sweep with generational and incremental GC, notes no compacting, and gives concrete numbers — 408 slots per heap page at ~40 bytes per slot — and shows using GC.stat, GC::Profiler and ObjectSpace plus Rails gems to find which objects stay retained and where fixing allocation reduces OOMs.

AI-written summary · about

  1. 0:00Start
  2. 3:33Angelina Ballerina
  3. 3:51Angelina Loves To Dance
  4. 5:49Request Timeout Errors
  5. 6:08Memory Quota Exceeded Errors
  6. 6:36Memory Quota Exceeded
  7. 6:53Webserver Graph
  8. 7:20Basic Terms
  9. 7:48Types of Memory Stack
  10. 8:30Malloc
  11. 10:28Bump Pointer Allocation
  12. 11:25Garbage Collection
  13. 14:24Stack Allocation
  14. 14:43Garbage Collectors
  15. 19:23Reference Counting
  16. 21:16Memory Fragmentation
  17. 21:43Mark-and-Sweep
  18. 26:51Write Barrier
  19. 27:41Incremental Garbage Collection
  20. 32:49Gc Stat
  21. 33:01Heap-Allocated Pages
  22. 34:22Heap Free Slots
  23. 34:38Heap Final Slots
  24. 35:11Total Allocated Objects
  25. 36:08Gc Profilers
  26. 36:28The Object Space Library
  27. 38:29Thank You
~/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.