Lune

ASPLOS2021Top-tier venue

Fast, flexible, and comprehensive bug detection for persistent memory programs

Bang Di, Jiawen Liu, Hao Chen, Dong Li

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

19 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficiently detecting concurrency bugs in persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Efficiently detecting concurrency bugs in persistent memory programs cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • Capri: Compiler and Architecture Support for Whole-System Persistence cites FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
  • Capri: Compiler and Architecture Support for Whole-System Persistence cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Capri: Compiler and Architecture Support for Whole-System Persistence cites MOD: Minimally Ordered Durable Datastructures for Persistent Memory
  • Capri: Compiler and Architecture Support for Whole-System Persistence cites PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)
  • Persistent Processor Architecture cites Capri: Compiler and Architecture Support for Whole-System Persistence
  • Persistent Processor Architecture cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Persistent Processor Architecture cites MOD: Minimally Ordered Durable Datastructures for Persistent Memory
  • Persistent Processor Architecture cites PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)
  • Yashme: detecting persistency races cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Yashme: detecting persistency races cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • Chipmunk: Investigating Crash-Consistency in Persistent-Memory File Systems cites Cross-Failure Bug Detection in Persistent Memory Programs
  • Chipmunk: Investigating Crash-Consistency in Persistent-Memory File Systems cites AGAMOTTO: How Persistent is your Persistent Memory Application?
  • AGAMOTTO: How Persistent is your Persistent Memory Application? cites Cross-Failure Bug Detection in Persistent Memory Programs
  • AGAMOTTO: How Persistent is your Persistent Memory Application? cites MOD: Minimally Ordered Durable Datastructures for Persistent Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers19

  1. Capri: Compiler and Architecture Support for Whole-System PersistenceJungi Jeong, Jianping Zeng, Changhee JungHPDC 2022 · 21 citations
  2. Yashme: detecting persistency racesHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2022 · 18 citations
  3. Persistent Processor ArchitectureJianping Zeng, Jungi Jeong, Changhee JungMICRO 2023 · 12 citations
  4. Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 citations
  5. Chipmunk: Investigating Crash-Consistency in Persistent-Memory File SystemsHayley LeBlanc, Shankara Pailoor, Om Saran K. R. E., Isil Dillig et al.EuroSys 2023 · 11 citations

Builds on8

  1. FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent MemoryYoumin Chen, Youyou Lu, Fan Yang, Qing Wang et al.ASPLOS 2020 · 166 citations
  2. Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch et al.ASPLOS 2020 · 60 citations
  3. MOD: Minimally Ordered Durable Datastructures for Persistent MemorySwapnil Haria, Mark D. Hill, Michael M. SwiftASPLOS 2020 · 47 citations
  4. AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn et al.OSDI 2020 · 43 citations
  5. PMEM-spec: persistent memory speculation (strict persistency can trump relaxed persistency)Jungi Jeong, Changhee JungASPLOS 2021 · 30 citations

Related papers

  1. Constraint Based Program Repair for Persistent Memory BugsZunchen Huang, Chao WangICSE 2024 · 3 citations
  2. PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 citations
  3. Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 citations
  4. Automated Insertion of Flushes and Fences for PersistencyYutong Guo, Weiyu Luo, Brian DemskyASE 2025 · 1 citation
  5. Discovering Likely Program Invariants for Persistent MemoryZunchen Huang, Srivatsan Ravi, Chao WangASE 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines