LDB: An Efficient Latency Profiling Tool for Multithreaded Applications
Inho Cho, Seo Jin Park, Ahmed Saeed, Mohammad Alizadeh, Adam Belay
摘要
Maintaining low tail latency is critical for the efficiency and performance of large-scale datacenter systems. Software bugs that cause tail latency problems, however, are notoriously difficult to debug. We present LDB, a new latency profiling tool that aims to overcome this challenge by precisely identifying the specific functions that are responsible for tail latency anomalies. LDB observes the latency of all functions in a running program. It uses a novel, software-only technique called stack sampling, where a busy-spinning stack scanner thread polls lightweight metadata recorded in the call stack, shifting tracing costs away from program threads. In addition, LDB uses event tagging to record requests, inter-thread synchronization, and context switching. This can be used, for example, to generate per-request timelines and to find the root cause of complex tail latency problems such as lock contention in multi-threaded programs. We evaluate LDB with three datacenter applications, finding latency problems in each. Our results further show that LDB produces actionable insights, has low overhead, and can rapidly analyze recordings, making it feasible to use in production settings.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
引用它的顶会 Paper2
它引用的 Paper2
- How to diagnose nanosecond network latencies in rich end-host stacksRoni Haecki, Radhika Niranjan Mysore, Lalith Suresh, Gerd Zellweger 等NSDI 2022 · 58 次引用
- Hubble: Performance Debugging with In-Production, Just-In-Time Method Tracing on AndroidYu Luo, Kirk Rodrigues, Cuiqin Li, Feng Zhang 等OSDI 2022 · 11 次引用
相关 Paper
- TailTracer: Continuous Tail Tracing for Production UseTianyi Liu, Yi Li, Yiyu Zhang, Zhuangda Wang 等OOPSLA 2025 · 1 次引用
- The Benefit of Hindsight: Tracing Edge-Cases in Distributed SystemsLei Zhang, Zhiqiang Xie, Vaastav Anand, Ymir Vigfusson 等NSDI 2023 · 50 次引用
- Effective Performance Issue Diagnosis with Value-Assisted Cost ProfilingLingmei Weng, Yigong Hu, Peng Huang, Jason Nieh 等EuroSys 2023 · 8 次引用
- ScalAna: automating scaling loss detection with graph analysisYuyang Jin, Haojie Wang, Teng Yu, Xiongchao Tang 等SC 2020 · 16 次引用
- Understanding Host Network Stack LatencyTianyu Zuo, Jaehyun Hwang, Ao Tang, Rachit Agarwal 等SIGCOMM 2026
