Discovering Likely Program Invariants for Persistent Memory
Zunchen Huang, Srivatsan Ravi, Chao Wang
摘要
We propose a method for automatically discovering likely program invariants for persistent memory (PM), which is a type of fast and byte-addressable storage device that can retain data after power loss. The invariants, also called PM properties or PM requirements, specify which objects of the program should be made persistent and in what order. Our method relies on a combination of static and dynamic analysis techniques. Specifically, it relies on static analysis to compute dependence relations between LOAD/STORE instructions and instruments the information into the executable program. Then, it relies on dynamic analysis of the execution traces and counterfactual reasoning to infer PM properties. With precisely computed dependence relations, the inferred properties are necessary conditions for the program to behave correctly through power loss and recovery; with imprecise dependence relations, these are likely program invariants. We have evaluated our method on benchmark programs including eight persistent data structures and two distributed storage applications, Redis and Memcached. The results show that our method can infer PM properties quickly and these properties are of higher quality than those inferred by a state-of-the-art technique. We also demonstrate the usefulness of the inferred properties by leveraging them for PM bug detection, which significantly improves the performance of a state-of-the-art PM bug detection technique.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Automated Insertion of Flushes and Fences for Persistency 引用了 Hippocrates: healing persistent memory bugs without doing any harm
- Automated Insertion of Flushes and Fences for Persistency 引用了 Jaaru: efficiently model checking persistent memory programs
- Automated Insertion of Flushes and Fences for Persistency 引用了 Persistency semantics of the Intel-x86 architecture
- Automated Insertion of Flushes and Fences for Persistency 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Hippocrates: healing persistent memory bugs without doing any harm 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Jaaru: efficiently model checking persistent memory programs 引用了 Persistency semantics of the Intel-x86 architecture
- Jaaru: efficiently model checking persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- PMFuzz: test case generation for persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
引用它的顶会 Paper1
它引用的 Paper13
- Persistency semantics of the Intel-x86 architectureAzalea Raad, John Wickerson, Gil Neiger, Viktor VafeiadisPOPL 2020 · 61 次引用
- AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn 等OSDI 2020 · 43 次引用
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 次引用
- Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 次引用
- Hippocrates: healing persistent memory bugs without doing any harmIan Neal, Andrew Quinn, Baris KasikciASPLOS 2021 · 24 次引用
相关 Paper
- Constraint Based Program Repair for Persistent Memory BugsZunchen Huang, Chao WangICSE 2024 · 3 次引用
- Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 次引用
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch 等ASPLOS 2020 · 60 次引用
- Corundum: statically-enforced persistent memory safetyMorteza Hoseinzadeh, Steven SwansonASPLOS 2021 · 18 次引用
- Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 次引用
