FliT: a library for simple and efficient persistent algorithms
Yuanhao Wei, Naama Ben-David, Michal Friedman, Guy E. Blelloch, Erez Petrank
摘要
Non-volatile random access memory (NVRAM) offers byte-addressable persistence at speeds comparable to DRAM. However, with caches remaining volatile, automatic cache evictions can reorder updates to memory, potentially leaving persistent memory in an inconsistent state upon a system crash. Flush and fence instructions can be used to force ordering among updates, but are expensive. This has motivated significant work studying how to write correct and efficient persistent programs for NVRAM.
In this paper, we present FliT, a C++ library that facilitates writing efficient persistent code. Using the library's default mode makes any linearizable data structure durable with minimal changes to the code. FliT avoids many redundant flush instructions by using a novel algorithm to track dirty cache lines. The FliT library also allows for extra optimizations, but achieves good performance even in its default setting.
To describe the FliT library's capabilities and guarantees, we define a persistent programming interface, called the P-V Interface, which FliT implements. The P-V Interface captures the expected behavior of code in which some instructions' effects are persisted and some are not. We show that the interface captures the desired semantics of many practical algorithms in the literature.
We apply the FliT library to four different persistent data structures, and show that across several workloads, persistence implementations, and data structure sizes, the FliT library always improves operation throughput, by at least 2.1× over a naive implementation in all but one workload.
1 While Intel announced the new eADR technology [21] that promises to persist cache contents as well, this would require powerful and expensive batteries to implement. Thus, it is unlikely that volatile caches will cease being a reality in the near future [31].
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Memento: A Framework for Detectable Recoverability in Persistent Memory 引用了 NVTraverse: in NVRAM data structures, the destination is more important than the journey
- Memento: A Framework for Detectable Recoverability in Persistent Memory 引用了 Persistency semantics of the Intel-x86 architecture
- The Path to Durable Linearizability 引用了 NVTraverse: in NVRAM data structures, the destination is more important than the journey
- The Path to Durable Linearizability 引用了 Persistency semantics of the Intel-x86 architecture
- NVTraverse: in NVRAM data structures, the destination is more important than the journey 引用了 Persistency semantics of the Intel-x86 architecture
- Mangosteen: Fast Transparent Durability for Linearizable Applications using NVM 引用了 NVTraverse: in NVRAM data structures, the destination is more important than the journey
- Mangosteen: Fast Transparent Durability for Linearizable Applications using NVM 引用了 Persistency semantics of the Intel-x86 architecture
- A Programming Model for Disaggregated Memory over CXL 引用了 The Path to Durable Linearizability
- A Programming Model for Disaggregated Memory over CXL 引用了 NVTraverse: in NVRAM data structures, the destination is more important than the journey
- A Programming Model for Disaggregated Memory over CXL 引用了 Persistency semantics of the Intel-x86 architecture
引用它的顶会 Paper8
- Prism: Optimizing Key-Value Store for Modern Heterogeneous Storage DevicesYongju Song, Wook-Hee Kim, Sumit Kumar Monga, Changwoo Min 等ASPLOS 2023 · 28 次引用
- The Path to Durable LinearizabilityEmanuele D'Osualdo, Azalea Raad, Viktor VafeiadisPOPL 2023 · 6 次引用
- Mangosteen: Fast Transparent Durability for Linearizable Applications using NVMSergey Egorov, Gregory V. Chockler, Brijesh Dongol, Dan O'Keeffe 等USENIX ATC 2024 · 5 次引用
- Memento: A Framework for Detectable Recoverability in Persistent MemoryKyeongmin Cho, Seungmin Jeon, Azalea Raad, Jeehoon KangPLDI 2023 · 4 次引用
- A Programming Model for Disaggregated Memory over CXLGal Assa, Moritz Lumme, Lucas Bürgi, Michal Friedman 等ASPLOS 2026 · 4 次引用
它引用的 Paper2
相关 Paper
- Pronto: Easy and Fast Persistence for Volatile Data StructuresAmir Saman Memaripour, Joseph Izraelevitz, Steven SwansonASPLOS 2020 · 55 次引用
- BBB: Simplifying Persistent Programming using Battery-Backed BuffersMohammad A. Alshboul, Prakash Ramrakhyani, William Wang, James Tuck 等HPCA 2021 · 34 次引用
- Supporting Legacy Libraries on Non-Volatile Memory: A User-Transparent ApproachChencheng Ye, Yuanchao Xu, Xipeng Shen, Xiaofei Liao 等ISCA 2021 · 9 次引用
- Falcon: Fast OLTP Engine for Persistent Cache and Non-Volatile MemoryZhicheng Ji, Kang Chen, Leping Wang, Mingxing Zhang 等SOSP 2023 · 10 次引用
- Automated Insertion of Flushes and Fences for PersistencyYutong Guo, Weiyu Luo, Brian DemskyASE 2025 · 1 次引用
