~/talk

Real World Ruby Performance at Scale

Talkat RubyConf 2014 · 2014-11-17..11-19· [ruby]

Claims concrete wins: Ruby 2.1 tools actually shave tail latencies and make production profiling safe. Uses PB profiler (meta-runner of benchmark, RBlineprof, memory_profiler), stackprof / stackprof-remote for production sampling, and memcache key hoisting. Finds a bad DNS-backed statsd send and cuts nested JSON generation from ~1.6s per item to ~30ms per item, shows occasional 1-in-10k cache misses drive p90 spikes, and proves iterative measure-change-confirm fixes work even when big cliffs don’t appear.

AI-written summary · about

  1. 0:00Start
  2. 0:11Real World Ruby Performance at Scale Aaron Quint
  3. 1:58SKIPPING THE INTRO
  4. 2:48TIPS AND TRICKS ARE THE CLIFF NOTES OF TECH LEARNING
  5. 3:52RUBY PERFORMANCE AS THERAPY
  6. 4:51PERFORMANCE IS ABOUT CONTEXT
  7. 7:17METRICS! MEASUREMENT! MMMNUMBERS MILLISECONDS MATTER!
  8. 7:49TOOLS ABOUND!
  9. 8:14WHAT ARE THE STEPS TO FIX THIS PROBLEM?
  10. 8:40TWO ANGLES OF OPTIMIZATION
  11. 9:27VERTICAL: FIX INDIVIDUAL ELEMENTS aka, speeding up a single query, controller action, or code path
  12. 9:42HORIZONTAL: ADDRESS HARDWARE OR SOFTWARE ACROSS A CLUSTER
  13. 10:06CONTEXT IS CRUCIAL TO ACCEPTANCE
  14. 10:24KNOWING YOUR TOOLS IS CRUCIAL TO TREATMENT
  15. 12:35FEATURES VS. SPEED
  16. 13:06WE REALIZED THAT BEING FAST MEANT BEING STABLE
  17. 13:50CASE STUDIES IN PERFORMANCE THERAPY
  18. 14:01JSON FOR DAYS
  19. 17:49UNCACHED PERFORMANCE IS STILL A PROBLEM
  20. 18:08PPPROFILER TO THE RESCUE
  21. 21:54MAKE THE SLOWEST LINES FASTER Rinse and Repeat
  22. 23:25FINGER IN THE SOCKET
  23. 23:35BEFORE VDAY WE WERE LOOKING FOR ANY WINS
  24. 27:34HMM, WHY IS STATSD SLOW?
  25. 29:20THE HOLIDAY SCALE
  26. 31:45SHRINKING THE GAP
  27. 39:33BIG WINS ARE NOT THE POINT
  28. 40:29IF YOU'RE NOT FAILING YOU'RE NOT BEING HONEST
  29. 41:02DON'T JUST MAKE TOOLS, LEARN TO USE THEM
~/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.