~/talk

Debugging Ruby

Talkat RubyConf 2010 · 2010-11-11..11-13· [ruby]
links:none on file
slides:none on file

Walks through concrete Linux-first diagnostics: use strace to collect short traces and find sigprocmask 3.5M calls causing ~30% overhead; tcpdump + Wireshark to replay slow HTTP and MySQL packets and spot a 1.3s query; perf/perf-tools reveals re_match taking 12% of CPU leading to replacing a Ruby time parser with a C one; ltrace/GDB(+gdb.rb) expose thread context copies and segfault stacks so buffers move to the heap; mov shows ~4M objects allocated and GC pauses ~200ms, fixed by switching drivers or reducing allocations.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Estrace
  3. 5:32TCP Dump
  4. 7:34CPU Profiler
  5. 11:51Perf Tools
  6. 16:55Profiler
  7. 18:10LTrace
  8. 19:54GLTrace
  9. 21:57GDB
  10. 24:58GV
  11. 30:31Mint
  12. 32:28Macros
~/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.