~/talk

Finding a needle in the haystack - Debugging performance issues

Talkat RubyConf 2023 · 2023-11-13..11-15· [ruby, databases]
slides:none on file

Starts with measurable baselines, then drills into concrete findings: a Ruby 3 upgrade coincides with a 2x–3x slowdown and heap growth from ~7M to ~9M, profiling shows 63% of time in GC, and root cause is a library change that causes double compression in cache (mcash) leading to extra marshaling and mem pressure. Tools used are exact: RBSpy/StackProf statistical profiles, thread profilers, GDB snapshots and benchmark scripts to validate fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Talk overview
  3. 6:51Measuring performance
  4. 8:41Profiling and benchmarking
  5. 12:57Profiling tools
  6. 18:41Tracers and use cases
  7. 20:07Debugging mindset
  8. 21:10Stuck async worker
  9. 23:21Slow Rails boot
  10. 25:07Performance regression
  11. 34:28Key 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.