~/talk

Faster Apps, No Memory Thrash: Get Your Memory Config Right

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [ruby, web-performance]
slides:none on file

Explains how Ruby memory sizes, slots vs big objects, and generational GC map to real slowdowns, and gives concrete fixes: use GC.stat dumps (and GC.start variants) to read live_slots, free_slots, malloc_limit and old malloc thresholds; run the app to warm up, save those stats, then set the environment variables (heap slots and malloc limits) so processes start at the right size with the provided mem gem; prefer destructive operations (String#<<, Array#concat) to cut allocations; switch to jemalloc for ~10–12% end-to-end speedups.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Understanding Ruby objects
  3. 4:30Garbage collection basics
  4. 7:49Memory allocation cycles
  5. 10:05Strategies for memory optimization
  6. 12:24Debugging memory issues
  7. 13:52Tuning memory configurations
  8. 15:44The mmm tool and warmup
  9. 19:34Optimizing with jemalloc
  10. 23:03Best practices for Ruby performance
  11. 25:11Advanced diagnostics
  12. 29:08GC profiler and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.