NVAlloc: rethinking heap metadata management in persistent memory allocators
Zheng Dang, Shuibing He, Peiyi Hong, Zhenxin Li, Xuechen Zhang, Xian-He Sun, Gang Chen
摘要
Persistent memory allocation is a fundamental building block for developing high-performance and in-memory applications. Existing persistent memory allocators suffer from suboptimal heap organizations that introduce repeated cache line flushes and small random accesses in persistent memory. Worse, many allocators use static slab segregation resulting in a dramatic increase in memory consumption when allocation request size is changed. In this paper, we design a novel allocator, named NVAlloc, to solve the above issues simultaneously. First, NVAlloc eliminates cache line reflushes by mapping contiguous data blocks in slabs to interleaved metadata entries stored in different cache lines. Second, it writes small metadata units to a persistent bookkeeping log in a sequential pattern to remove random heap metadata accesses in persistent memory. Third, instead of using static slab segregation, it supports slab morphing, which allows slabs to be transformed between size classes to significantly improve slab usage. NVAlloc is complementary to the existing consistency models. Results on 6 benchmarks demonstrate that NVAlloc improves the performance of state-of-the-art persistent memory allocators by up to 6.4x and 57x for small and large allocations, respectively. Using NVAlloc reduces memory usage by up to 57.8%. Besides, we integrate NVAlloc in a persistent FPTree. Compared to the state-of-the-art allocators, NVAlloc improves the performance of this application by up to 3.1x.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- iCache: An Importance-Sampling-Informed Cache for Accelerating I/O-Bound DNN Model Training 引用了 XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving Graphs
- Lock-free Concurrent Level Hashing for Persistent Memory 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving Graphs 引用了 LB+-Trees: Optimizing Persistent Index Performance on 3DXPoint Memory
- XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving Graphs 引用了 FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
- XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving Graphs 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving Graphs 引用了 ROART: Range-query Optimized Persistent ART
- Revisiting Secondary Indexing in LSM-based Storage Systems with Persistent Memory 引用了 LB+-Trees: Optimizing Persistent Index Performance on 3DXPoint Memory
- Revisiting Secondary Indexing in LSM-based Storage Systems with Persistent Memory 引用了 FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
- Revisiting Secondary Indexing in LSM-based Storage Systems with Persistent Memory 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- Revisiting Secondary Indexing in LSM-based Storage Systems with Persistent Memory 引用了 ROART: Range-query Optimized Persistent ART
- Silo: Speculative Hardware Logging for Atomic Durability in Persistent Memory 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- ROART: Range-query Optimized Persistent ART 引用了 LB+-Trees: Optimizing Persistent Index Performance on 3DXPoint Memory
- ROART: Range-query Optimized Persistent ART 引用了 FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent Memory
- ROART: Range-query Optimized Persistent ART 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- ROART: Range-query Optimized Persistent ART 引用了 Lock-free Concurrent Level Hashing for Persistent Memory
引用它的顶会 Paper9
- XPGraph: XPline-Friendly Persistent Memory Graph Stores for Large-Scale Evolving GraphsRui Wang, Shuibing He, Weixu Zong, Yongkun Li 等MICRO 2022 · 21 次引用
- iCache: An Importance-Sampling-Informed Cache for Accelerating I/O-Bound DNN Model TrainingWeijian Chen, Shuibing He, Yaowen Xu, Xuechen Zhang 等HPCA 2023 · 20 次引用
- Revisiting Secondary Indexing in LSM-based Storage Systems with Persistent MemoryJing Wang, Youyou Lu, Qing Wang, Yuhao Zhang 等USENIX ATC 2023 · 13 次引用
- Silo: Speculative Hardware Logging for Atomic Durability in Persistent MemoryMing Zhang, Yu HuaHPCA 2023 · 8 次引用
- Root Crash Consistency of SGX-style Integrity Trees in Secure Non-Volatile Memory SystemsJianming Huang, Yu HuaHPCA 2023 · 6 次引用
它引用的 Paper8
- An Empirical Guide to the Behavior and Use of Scalable Persistent MemoryJian Yang, Juno Kim, Morteza Hoseinzadeh, Joseph Izraelevitz 等FAST 2020 · 470 次引用
- FlatStore: An Efficient Log-Structured Key-Value Storage Engine for Persistent MemoryYoumin Chen, Youyou Lu, Fan Yang, Qing Wang 等ASPLOS 2020 · 166 次引用
- Lock-free Concurrent Level Hashing for Persistent MemoryZhangyu Chen, Yu Hua, Bo Ding, Pengfei ZuoUSENIX ATC 2020 · 98 次引用
- ROART: Range-query Optimized Persistent ARTShaonan Ma, Kang Chen, Shimin Chen, Mengxing Liu 等FAST 2021 · 73 次引用
- LB+-Trees: Optimizing Persistent Index Performance on 3DXPoint MemoryJihang Liu, Shimin Chen, Lujun WangVLDB 2020 · 69 次引用
相关 Paper
- Improving the Relationship Between B+-Tree and Memory Allocator for Persistent MemoryWei Yan, Xingjun ZhangICDE 2024 · 2 次引用
- Revisiting the Design of LSM-tree Based OLTP Storage Engine with Persistent MemoryBaoyue Yan, Xuntao Cheng, Bo Jiang, Shibin Chen 等VLDB 2021 · 30 次引用
- ASAP: A Speculative Approach to PersistenceSujay Yadalam, Nisarg Shah, Xiangyao Yu, Michael M. SwiftHPCA 2022 · 17 次引用
- FFCCD: fence-free crash-consistent concurrent defragmentation for persistent memoryYuanchao Xu, Chencheng Ye, Yan Solihin, Xipeng ShenISCA 2022 · 9 次引用
- DINOMO: An Elastic, Scalable, High-Performance Key-Value Store for Disaggregated Persistent MemorySe Kwon Lee, Soujanya Ponnapalli, Sharad Singhal, Marcos K. Aguilera 等VLDB 2022 · 49 次引用
