Snapshot:使用 msync 为 CXL 和 PM 提供快速的用户空间崩溃一致性
Snapshot: Fast, Userspace Crash Consistency for CXL and PM Using msync
AI总结:
提出 Snapshot,一种基于编译器注解的 FAMS 用户空间实现,通过在 DRAM 中保留数据副本并在调用 msync() 时同步更新,有效解决了传统 FAMS 的开销和写放大问题,在 CXL 和 PM 环境下显著提升了崩溃一致性性能。
摘要:
使用持久内存编程库实现崩溃一致性要求程序员使用复杂的事务和手动注解。相比之下,故障原子 msync() (FAMS) 接口要简单得多,因为它透明地跟踪更新,并保证在调用 msync() 的故障原子变体时,修改的数据是原子持久的。然而,FAMS 存在一些缺点,例如 msync() 的开销以及页级脏数据跟踪带来的写放大。为了解决这些缺陷同时保留 FAMS 的优势,我们提出了 Snapshot,这是一种高效的 FAMS 用户空间实现。Snapshot 使用基于编译器的注解在用户空间透明地跟踪更新,并在调用 msync() 时将更新与后备的字节寻址存储副本同步。通过在 DRAM 中保留应用程序数据的副本,Snapshot 改善了访问延迟。此外,通过自动跟踪和仅在调用 msync() 时同步更改,Snapshot 提供了崩溃一致性保证,这与 POSIX msync() 系统调用不同。对于由运行 YCSB 基准测试的 Intel Optane 支持的 KV-Store,Snapshot 比 PMDK 实现了至少 1.2 倍的加速,同时显著优于传统的(非崩溃一致性的)msync()。在模拟的 CXL 内存语义 SSD 上,Snapshot 在除一种 YCSB 工作负载外的所有工作负载中比 PMDK 高出 10.9 倍,其中 PMDK 比 Snapshot 快 1.2 倍。此外,使用 Snapshot 的 Kyoto Cabinet 提交比其内置的、基于 msync() 的崩溃一致性机制快 8.0 倍。
英文摘要:
Crash consistency using persistent memory programming libraries requires programmers to use complex transactions and manual annotations. In contrast, the failure-atomic msync() (FAMS) interface is much simpler as it transparently tracks updates and guarantees that modified data is atomically durable on a call to the failure-atomic variant of msync(). However, FAMS suffers from several drawbacks, like the overhead of msync() and the write amplification from page-level dirty data tracking. To address these drawbacks while preserving the advantages of FAMS, we propose Snapshot, an efficient userspace implementation of FAMS. Snapshot uses compiler-based annotation to transparently track updates in userspace and syncs them with the backing byte-addressable storage copy on a call to msync(). By keeping a copy of application data in DRAM, Snapshot improves access latency. Moreover, with automatic tracking and syncing changes only on a call to msync(), Snapshot provides crash-consistency guarantees, unlike the POSIX msync() system call. For a KV-Store backed by Intel Optane running the YCSB benchmark, Snapshot achieves at least 1.2$\times$ speedup over PMDK while significantly outperforming conventional (non-crash-consistent) msync(). On an emulated CXL memory semantic SSD, Snapshot outperforms PMDK by up to 10.9$\times$ on all but one YCSB workload, where PMDK is 1.2$\times$ faster than Snapshot. Further, Kyoto Cabinet commits perform up to 8.0$\times$ faster with Snapshot than its built-in, msync()-based crash-consistency mechanism.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。