Lune

USENIX ATC2023Top-tier venue

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 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.

6 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

  • Scale and Performance in a Filesystem Semi-Microkernel cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • Keigo: Co-designing Log-Structured Merge Key-Value Stores with a Non-Volatile, Concurrency-aware Storage Hierarchy cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • Keigo: Co-designing Log-Structured Merge Key-Value Stores with a Non-Volatile, Concurrency-aware Storage Hierarchy cites The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus
  • Keigo: Co-designing Log-Structured Merge Key-Value Stores with a Non-Volatile, Concurrency-aware Storage Hierarchy cites First Responder: Persistent Memory Simultaneously as High Performance Buffer Cache and Storage
  • Rethinking the Request-to-IO Transformation Process of File Systems for Full Utilization of High-Bandwidth SSDs cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • Rethinking the Request-to-IO Transformation Process of File Systems for Full Utilization of High-Bandwidth SSDs cites Boosting File Systems Elegantly: A Transparent NVM Write-ahead Log for Disk File Systems
  • Rethinking the Request-to-IO Transformation Process of File Systems for Full Utilization of High-Bandwidth SSDs cites The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus
  • PolyStore: Exploiting Combined Capabilities of Heterogeneous Storage cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • PolyStore: Exploiting Combined Capabilities of Heterogeneous Storage cites The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus
  • Nomad: Non-Exclusive Memory Tiering via Transactional Page Migration cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • Nomad: Non-Exclusive Memory Tiering via Transactional Page Migration cites The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus
  • The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
  • First Responder: Persistent Memory Simultaneously as High Performance Buffer Cache and Storage cites An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Nomad: Non-Exclusive Memory Tiering via Transactional Page MigrationLingfeng Xiang, Zhen Lin, Weishu Deng, Hui Lu et al.OSDI 2024 · 59 citations
  2. PolyStore: Exploiting Combined Capabilities of Heterogeneous StorageYujie Ren, David Domingo, Jian Zhang, Paul John et al.FAST 2025 · 6 citations
  3. 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
  4. 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
  5. 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

  1. 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
  2. XRP: In-Kernel Storage Functions with eBPFYuhong Zhong, Haoyu Li, Yu Jian Wu, Ioannis Zarkadas et al.OSDI 2022 · 100 citations
  3. 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
  4. Scale and Performance in a Filesystem Semi-MicrokernelJing Liu, Anthony Rebello, Yifan Dai, Chenhao Ye et al.SOSP 2021 · 14 citations
  5. 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

  1. 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
  2. TL4x: Buffered Durable Transactions on Disk as Fast as in MemoryGal Assa, Andreia Correia, Pedro Ramalhete, Valerio Schiavoni et al.PPoPP 2023 · 8 citations
  3. DaxVM: Stressing the Limits of Memory as a File InterfaceChloe Alverti, Vasileios Karakostas, Nikhita Kunati, Georgios I. Goumas et al.MICRO 2022 · 9 citations
  4. Exploiting Persistent CPU Cache for Scalable Persistent Hash IndexBowen Zhang, Shengan Zheng, Liangxu Nie, Zhenlin Qi et al.ICDE 2024 · 3 citations
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines