P2CACHE: Exploring Tiered Memory for In-Kernel File Systems Caching
Zhen Lin, Lingfeng Xiang, Jia Rao, Hui Lu
Abstract
Fast, byte-addressable persistent memory (PM) is becoming a reality in products. However, porting legacy kernel file systems to fully support PM requires substantial effort and encounters the challenge of bridging the gap between blockbased access granularity and byte-addressability. Moreover, new PM-specific file systems remain far from productionready, preventing them from being widely used. In this paper, we propose P 2 CACHE, a novel in-kernel caching mechanism to explore how legacy kernel file systems can effectively evolve in the face of fast, byte-addressable PM. P 2 CACHE exploits a read/write-distinguishable memory hierarchy upon a tiered memory system involving both PM and DRAM. P 2 CACHE leverages PM to serve all write requests for instant data durability and strong crash consistency while using DRAM to serve most read I/Os for high I/O performance. Further, P 2 CACHE employs a simple yet effective synchronization model between PM and DRAM by leveraging devicelevel parallelism. Our evaluation shows that P 2 CACHE can significantly increase the performance of legacy kernel file systems -e.g., by 200x for RocksDB on Ext4 -meanwhile equipping them with instant data durability and strong crash consistency, similar to PM-specialized file systems.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers6
- Nomad: Non-Exclusive Memory Tiering via Transactional Page MigrationLingfeng Xiang, Zhen Lin, Weishu Deng, Hui Lu et al.OSDI 2024 · 59 citations
- PolyStore: Exploiting Combined Capabilities of Heterogeneous StorageYujie Ren, David Domingo, Jian Zhang, Paul John et al.FAST 2025 · 6 citations
- Boosting File Systems Elegantly: A Transparent NVM Write-ahead Log for Disk File SystemsGuoyu Wang, Xilong Che, Haoyang Wei, Shuo Chen et al.FAST 2025 · 5 citations
- Rethinking the Request-to-IO Transformation Process of File Systems for Full Utilization of High-Bandwidth SSDsYekang Zhan, Haichuan Hu, Xiangrui Yang, Qiang Cao et al.FAST 2025 · 4 citations
- Keigo: Co-designing Log-Structured Merge Key-Value Stores with a Non-Volatile, Concurrency-aware Storage HierarchyRúben Adão, Zhongjie Wu, Changjun Zhou, Oana Balmau et al.VLDB 2025
Builds on5
- An Empirical Guide to the Behavior and Use of Scalable Persistent MemoryJian Yang, Juno Kim, Morteza Hoseinzadeh, Joseph Izraelevitz et al.FAST 2020 · 470 citations
- XRP: In-Kernel Storage Functions with eBPFYuhong Zhong, Haoyu Li, Yu Jian Wu, Ioannis Zarkadas et al.OSDI 2022 · 100 citations
- The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with OrthusKan Wu, Zhihan Guo, Guanzhou Hu, Kaiwei Tu et al.FAST 2021 · 73 citations
- Scale and Performance in a Filesystem Semi-MicrokernelJing Liu, Anthony Rebello, Yifan Dai, Chenhao Ye et al.SOSP 2021 · 14 citations
- First Responder: Persistent Memory Simultaneously as High Performance Buffer Cache and StorageHyunsub Song, Shean Kim, J. Hyun Kim, Ethan J. H. Park et al.USENIX ATC 2021 · 14 citations
Related papers
- ctFS: Replacing File Indexing with Hardware Memory Translation through Contiguous File Allocation for Persistent MemoryRuibin Li, Xiang Ren, Xu Zhao, Siwei He et al.FAST 2022 · 43 citations
- TL4x: Buffered Durable Transactions on Disk as Fast as in MemoryGal Assa, Andreia Correia, Pedro Ramalhete, Valerio Schiavoni et al.PPoPP 2023 · 8 citations
- DaxVM: Stressing the Limits of Memory as a File InterfaceChloe Alverti, Vasileios Karakostas, Nikhita Kunati, Georgios I. Goumas et al.MICRO 2022 · 9 citations
- Exploiting Persistent CPU Cache for Scalable Persistent Hash IndexBowen Zhang, Shengan Zheng, Liangxu Nie, Zhenlin Qi et al.ICDE 2024 · 3 citations
- HUNTER: Releasing Persistent Memory Write Performance with A Novel PM-DRAM Collaboration ArchitectureYanqi Pan, Yifeng Zhang, Wen Xia, Xiangyu Zou et al.DAC 2023 · 1 citation
