MadFS: Per-File Virtualization for Userspace Persistent Memory Filesystems
Shawn Zhong, Chenhao Ye, Guanzhou Hu, Suyan Qu, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau, Michael M. Swift
摘要
Persistent memory (PM) can be accessed directly from userspace without kernel involvement, but most PM filesystems still perform metadata operations in the kernel for security and rely on the kernel for cross-process synchronization.
We present per-file virtualization, where a virtualization layer implements a complete set of file functionalities, including metadata management, crash consistency, and concurrency control, in userspace. We observe that not all file metadata need to be maintained by the kernel and propose embedding insensitive metadata into the file for userspace management. For crash consistency, copy-on-write (CoW) benefits from the embedding of the block mapping since the mapping can be efficiently updated without kernel involvement. For cross-process synchronization, we introduce lockfree optimistic concurrency control (OCC) at user level, which tolerates process crashes and provides better scalability.
Based on per-file virtualization, we implement MadFS, a library PM filesystem that maintains the embedded metadata as a compact log. Experimental results show that on concurrent workloads, MadFS achieves up to 3.6× the throughput of ext4-DAX. For real-world applications, MadFS provides up to 48% speedup for YCSB on LevelDB and 85% for TPC-C on SQLite compared to NOVA.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- WineFS: a hugepage-aware file system for persistent memory that ages gracefully 引用了 Don't shoot down TLB shootdowns!
- WineFS: a hugepage-aware file system for persistent memory that ages gracefully 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- Don't Maintain Twice, It's Alright: Merged Metadata Management in Deduplication File System with GogetaFS 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- Enabling High-Performance and Secure Userspace NVM File Systems with the Trio Architecture 引用了 WineFS: a hugepage-aware file system for persistent memory that ages gracefully
- Enabling High-Performance and Secure Userspace NVM File Systems with the Trio Architecture 引用了 An Empirical Guide to the Behavior and Use of Scalable Persistent Memory
- DJFS : Directory-Granularity Filesystem Journaling for CMM-H SSDs 引用了 Enabling High-Performance and Secure Userspace NVM File Systems with the Trio Architecture
- Sync+Sync: A Covert Channel Built on fsync with Storage 引用了 Can Applications Recover from fsync Failures?
引用它的顶会 Paper11
- GeminiFS: A Companion File System for GPUsShi Qiu, Weinan Liu, Yifan Hu, Jianqin Yan 等FAST 2025 · 17 次引用
- Sync+Sync: A Covert Channel Built on fsync with StorageQisheng Jiang, Chundong WangUSENIX Security 2024 · 12 次引用
- Enabling High-Performance and Secure Userspace NVM File Systems with the Trio ArchitectureDiyu Zhou, Vojtech Aschenbrenner, Tao Lyu, Jian Zhang 等SOSP 2023 · 9 次引用
- DJFS : Directory-Granularity Filesystem Journaling for CMM-H SSDsSeung Won Yoo, Joontaek Oh, Myeongin Cheon, Bonmoo Koo 等FAST 2025 · 8 次引用
- Don't Maintain Twice, It's Alright: Merged Metadata Management in Deduplication File System with GogetaFSYanqi Pan, Wen Xia, Erci Xu, Hao Huang 等FAST 2025 · 6 次引用
它引用的 Paper6
- An Empirical Guide to the Behavior and Use of Scalable Persistent MemoryJian Yang, Juno Kim, Morteza Hoseinzadeh, Joseph Izraelevitz 等FAST 2020 · 470 次引用
- Epoch-based Commit and Replication in Distributed OLTP DatabasesYi Lu, Xiangyao Yu, Lei Cao, Samuel MaddenVLDB 2021 · 52 次引用
- WineFS: a hugepage-aware file system for persistent memory that ages gracefullyRohan Kadekodi, Saurabh Kadekodi, Soujanya Ponnapalli, Harshad Shirwadkar 等SOSP 2021 · 35 次引用
- Don't shoot down TLB shootdowns!Nadav Amit, Amy Tai, Michael WeiEuroSys 2020 · 32 次引用
- Can Applications Recover from fsync Failures?Anthony Rebello, Yuvraj Patel, Ramnatthan Alagappan, Andrea C. Arpaci-Dusseau 等USENIX ATC 2020 · 19 次引用
相关 Paper
- DaxVM: Stressing the Limits of Memory as a File InterfaceChloe Alverti, Vasileios Karakostas, Nikhita Kunati, Georgios I. Goumas 等MICRO 2022 · 9 次引用
- ctFS: Replacing File Indexing with Hardware Memory Translation through Contiguous File Allocation for Persistent MemoryRuibin Li, Xiang Ren, Xu Zhao, Siwei He 等FAST 2022 · 43 次引用
- CrossFS: A Cross-layered Direct-Access File SystemYujie Ren, Changwoo Min, Sudarsun KannanOSDI 2020 · 35 次引用
- Rethinking File Mapping for Persistent MemoryIan Neal, Gefei Zuo, Eric Shiple, Tanvir Ahmed Khan 等FAST 2021 · 28 次引用
- P2CACHE: Exploring Tiered Memory for In-Kernel File Systems CachingZhen Lin, Lingfeng Xiang, Jia Rao, Hui LuUSENIX ATC 2023 · 25 次引用
