DAXFS:一种基于CXL解耦内存的无锁共享文件系统
DAXFS: A Lock-Free Shared Filesystem for CXL Disaggregated Memory
AI总结:
DAXFS利用CXL的原子比较交换操作实现多主机无锁协调,通过CAS哈希叠加和多主机时钟淘汰算法提供去中心化的共享页面缓存,验证了其在多主机环境下的正确性与性能优势。
摘要:
CXL(Compute Express Link)使多个主机能够通过硬件缓存一致性共享字节可寻址内存,但现有文件系统未利用此特性实现无锁多主机协调。本文提出DaxFS,一种适用于CXL共享内存的Linux文件系统,其仅使用CXL跨主机边界使其一致的cmpxchg原子操作作为协调原语。基于CAS的哈希叠加使多个主机能够无锁并发写入,无需集中协调器。一种协作共享页面缓存结合新颖的多主机时钟淘汰算法(MH-clock)在共享DAX内存中提供需求分页缓存,通过cmpxchg实现完全去中心化的淘汰选择。通过QEMU模拟的CXL 3.0验证多主机正确性,其中两个虚拟主机共享内存区域并通过TCP转发原子操作。在跨主机竞争下,DaxFS保持>99%的CAS准确性,无丢失更新。在单主机DRAM-backed DAX上,DaxFS在所有写入工作负载中均优于tmpfs,达到4线程时随机写入吞吐量最高2.68倍,64 KB随机读取吞吐量最高1.18倍。初步GPU微基准测试表明,基于cmpxchg的设计可扩展至GPU线程执行页面缓存操作,达到PCIe 5.0带宽限制。
英文摘要:
CXL (Compute Express Link) enables multiple hosts to share byte-addressable memory with hardware cache coherence, but no existing filesystem exploits this for lock-free multi-host coordination. We present DaxFS, a Linux filesystem for CXL shared memory that uses cmpxchg atomic operations, which CXL makes coherent across host boundaries, as its sole coordination primitive. A CAS-based hash overlay enables lock-free concurrent writes from multiple hosts without any centralized coordinator. A cooperative shared page cache with a novel multi-host clock eviction algorithm (MH-clock) provides demand-paged caching in shared DAX memory, with fully decentralized victim selection via cmpxchg. We validate multi-host correctness using QEMU-emulated CXL 3.0, where two virtual hosts share a memory region with TCP-forwarded atomics. Under cross-host contention, DaxFS maintains >99% CAS accuracy with no lost updates. On single-host DRAM-backed DAX, DaxFS exceeds tmpfs throughput across all write workloads, achieving up to 2.68x higher random write throughput with 4 threads and 1.18x higher random read throughput at 64 KB. Preliminary GPU microbenchmarks show that the cmpxchg-based design extends to GPU threads performing page cache operations at PCIe 5.0 bandwidth limits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。