Lune

ASPLOS2021Top-tier venue

Hippocrates: healing persistent memory bugs without doing any harm

Ian Neal, Andrew Quinn, Baris Kasikci

Abstract

Persistent memory (PM) technologies aim to revolutionize storage systems, providing persistent storage at near-DRAM speeds. Alas, programming PM systems is error-prone, as the misuse or omission of the durability mechanisms (i.e., cache flushes and memory fences) can lead to durability bugs (i.e., unflushed updates in CPU caches that violate crash consistency). PM-specific testing and debugging tools can help developers find these bugs, however even with such tools, fixing durability bugs can be challenging. To determine the reason behind this difficulty, we first study durability bugs and find that although the solution to a durability bug seems simple, the actual reasoning behind the fix can be complicated and timeconsuming. Overall, the severity of these bugs coupled with the difficultly of developing fixes for them motivates us to consider automated approaches to fixing durability bugs.

We introduce Hippocrates, a system that automatically fixes durability bugs in PM systems. Hippocrates automatically performs the complex reasoning behind durability bug fixes, relieving developers of time-consuming bug fixes. Hippocrates's fixes are guaranteed to be safe, as they are guaranteed to not introduce new bugs (łdo no harmž). We use Hippocrates to automatically fix 23 durability bugs in real-world and research systems. We show that Hippocrates produces fixes that are functionally equivalent to developer fixes. We then show that solely using Hippocrates's fixes, we can create a PM port of Redis which has performance rivaling and exceeding the performance of a manually-developed PM-port of Redis.

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.

15 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 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
  • 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
  • Compiler-Directed Whole-System Persistence cites Capri: Compiler and Architecture Support for Whole-System Persistence
  • Compiler-Directed Whole-System Persistence cites Persistent Processor Architecture
  • Compiler-Directed Whole-System Persistence cites Cross-Failure Bug Detection in Persistent Memory Programs
  • 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 papers15

  1. NNSmith: Generating Diverse and Valid Test Cases for Deep Learning CompilersJiawei Liu, Jinkun Lin, Fabian Ruffy, Cheng Tan et al.ASPLOS 2023 · 90 citations
  2. Capri: Compiler and Architecture Support for Whole-System PersistenceJungi Jeong, Jianping Zeng, Changhee JungHPDC 2022 · 21 citations
  3. Compiler-Directed Whole-System PersistenceJianping Zeng, Tong Zhang, Changhee JungISCA 2024 · 13 citations
  4. Persistent Processor ArchitectureJianping Zeng, Jungi Jeong, Changhee JungMICRO 2023 · 12 citations
  5. Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 citations

Builds on3

  1. Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch et al.ASPLOS 2020 · 60 citations
  2. MOD: Minimally Ordered Durable Datastructures for Persistent MemorySwapnil Haria, Mark D. Hill, Michael M. SwiftASPLOS 2020 · 47 citations
  3. AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn et al.OSDI 2020 · 43 citations

Related papers

  1. Checking robustness to weak persistency modelsHamed Gorjiara, Weiyu Luo, Alex Lee, Guoqing Harry Xu et al.PLDI 2022 · 13 citations
  2. Constraint Based Program Repair for Persistent Memory BugsZunchen Huang, Chao WangICSE 2024 · 3 citations
  3. Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 citations
  4. 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
  5. Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 citations
Dusk over the sea between two cliffs drawn in fine vertical lines