Fast, flexible, and comprehensive bug detection for persistent memory programs
Bang Di, Jiawen Liu, Hao Chen, Dong Li
摘要
Debugging persistent memory (PM) programs faces a fundamental tradeoff between performance overhead and bug coverage (comprehensiveness). Large performance overhead or limited bug coverage makes debugging infeasible or ineffective for PM programs. We present PMDebugger, a debugger that detects crash consistency bugs in PM programs. Unlike prior work, PMDebugger is fast, flexible and comprehensive. The design of PMDebugger is driven by a characterization that shows how three fundamental operations in PM programs (store, cache writeback and fence) typically occur in PM programs. PMDebugger uses a hierarchical design composed of PM debugging-specific data structures, operations and bug-detection algorithms (rules). We generalize nine rules to detect crash-consistency bugs for various PM persistency models. Compared with a state-of-the-art detector (XFDetector) and an industry-quality detector (Pmemcheck), PMDebugger leads to 49.3x and 3.4x speedup on average. Compared with another state-of-theart detector (PMTest) optimized for high performance, PMDebugger achieves comparable performance (within a factor of 2), without heavily relying on programmer annotations, and detects 38 more bugs on ten applications. PMDebugger also identifies more bugs than XFDetector and Pmemcheck. PMDebugger detects 19 new bugs in a real application (memcached) and two new bugs from Intel PMDK.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficiently detecting concurrency bugs in persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Efficiently detecting concurrency bugs in persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
- Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 MOD: Minimally Ordered Durable Datastructures for Persistent Memory
- Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)
- Persistent Processor Architecture 引用了 Capri: Compiler and Architecture Support for Whole-System Persistence
- Persistent Processor Architecture 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Persistent Processor Architecture 引用了 MOD: Minimally Ordered Durable Datastructures for Persistent Memory
- Persistent Processor Architecture 引用了 PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)
- Yashme: detecting persistency races 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Yashme: detecting persistency races 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Chipmunk: Investigating Crash-Consistency in Persistent-Memory File Systems 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Chipmunk: Investigating Crash-Consistency in Persistent-Memory File Systems 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- AGAMOTTO: How Persistent is your Persistent Memory Application? 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- AGAMOTTO: How Persistent is your Persistent Memory Application? 引用了 MOD: Minimally Ordered Durable Datastructures for Persistent Memory
引用它的顶会 Paper19
- Capri: Compiler and Architecture Support for Whole-System PersistenceJungi Jeong, Jianping Zeng, Changhee JungHPDC 2022 · 21 次引用
- Yashme: detecting persistency racesHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2022 · 18 次引用
- Persistent Processor ArchitectureJianping Zeng, Jungi Jeong, Changhee JungMICRO 2023 · 12 次引用
- Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 次引用
- Chipmunk: Investigating Crash-Consistency in Persistent-Memory File SystemsHayley LeBlanc, Shankara Pailoor, Om Saran K. R. E., Isil Dillig 等EuroSys 2023 · 11 次引用
它引用的 Paper8
- FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent MemoryYoumin Chen, Youyou Lu, Fan Yang, Qing Wang 等ASPLOS 2020 · 166 次引用
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch 等ASPLOS 2020 · 60 次引用
- MOD: Minimally Ordered Durable Datastructures for Persistent MemorySwapnil Haria, Mark D. Hill, Michael M. SwiftASPLOS 2020 · 47 次引用
- AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn 等OSDI 2020 · 43 次引用
- PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)Jungi Jeong, Changhee JungASPLOS 2021 · 30 次引用
相关 Paper
- Constraint Based Program Repair for Persistent Memory BugsZunchen Huang, Chao WangICSE 2024 · 3 次引用
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 次引用
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 次引用
- Automated Insertion of Flushes and Fences for PersistencyYutong Guo, Weiyu Luo, Brian DemskyASE 2025 · 1 次引用
- Discovering Likely Program Invariants for Persistent MemoryZunchen Huang, Srivatsan Ravi, Chao WangASE 2024 · 1 次引用
