SDB: Efficient Ruby Stack Scanning Without the GVL
summary
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
chapters (9)
- 0:00Introduction to SDB
- 2:40Why a new stack profiler
- 4:51Designing the stack profiler
- 8:28Scanning stacks without GVL
- 16:04Thread safety trade-offs
- 18:09Evaluating SDB performance
- 25:00Does the effort pay off
- 27:09Related work and future
- 28:12Conclusion and Q&A








