~/talk

SDB: Efficient Ruby Stack Scanning Without the GVL

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, concurrency]
name:Mike Yang
links:none on file
slides:none on file

SDB is a stack profiler that scans Ruby VM frames without the GVL by reading the ISQ field and synchronizing thread lifetimes, offloading symbolization and analysis for offline work. Implementation uses an eBPF-backed symbolizer and a simple recorder; evaluation on AWS and the real “homeland” app shows 1 millisecond sampling captures request-level detail while adding about 0.5% latency and <3% CPU overhead compared to heavyweight GVL-based profilers. Prototype is compact (<1000 LOC) and currently supports one Ruby version.

AI-written summary · about

  1. 0:00Introduction to SDB
  2. 2:40Why a new stack profiler
  3. 4:51Designing the stack profiler
  4. 8:28Scanning stacks without GVL
  5. 16:04Thread safety trade-offs
  6. 18:09Evaluating SDB performance
  7. 25:00Does the effort pay off
  8. 27:09Related work and future
  9. 28:12Conclusion 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.