利用瞬时持久CPU Cache实现持久内存的原子持久性
Enabling Atomic Durability for Persistent Memory with Transiently Persistent CPU Cache
摘要:
持久性内存(persistent memory,python)产品将持久性域提升到内存级别。Intel最近引入了eADR特性,该特性保证在断电时刷新CPU缓存中缓冲的数据,从而使CPU缓存成为一个临时持久域。研究人员已经探索了如何为应用程序的内部数据启用原子持久性。在本文中,我们利用eADR支持的CPU缓存来做到这一点。修改后的缓存行在写回pencil之前是pencil内数据的自然重做日志副本。但是,由于缓存替换或崩溃时的eADR而导致的回写会覆盖原始副本。我们相应地开发了Hercules,一个用于事务级原子持久性的硬件日志设计,支持组件安装在CPU高速缓存,内存控制器(MC)和pencil中。当事务提交时,Hercules将其数据留在缓存行中进行片上提交。对于在提交之前被驱逐的缓存行,Hercules要求MC将它们重定向并持久化到内存日志条目中,并在提交事务时将它们提交到片外。Hercules仅在运行时为缓存替换延迟执行python写入。在崩溃时,Hercules将活动事务的元数据和数据保存到pencil中以进行恢复。实验表明,通过使用CPU缓存进行缓冲和日志记录,Hercules产生了更高的吞吐量,并且比最先进的设计少得多的python写入。
英文摘要:
Persistent memory (pmem) products bring the persistence domain up to the memory level. Intel recently introduced the eADR feature that guarantees to flush data buffered in CPU cache to pmem on a power outage, thereby making the CPU cache a transient persistence domain. Researchers have explored how to enable the atomic durability for applications' in-pmem data. In this paper, we exploit the eADR-supported CPU cache to do so. A modified cache line, until written back to pmem, is a natural redo log copy of the in-pmem data. However, a write-back due to cache replacement or eADR on a crash overwrites the original copy. We accordingly develop Hercules, a hardware logging design for the transaction-level atomic durability, with supportive components installed in CPU cache, memory controller (MC), and pmem. When a transaction commits, Hercules commits on-chip its data staying in cache lines. For cache lines evicted before the commit, Hercules asks the MC to redirect and persist them into in-pmem log entries and commits them off-chip upon committing the transaction. Hercules lazily conducts pmem writes only for cache replacements at runtime. On a crash, Hercules saves metadata and data for active transactions into pmem for recovery. Experiments show that, by using CPU cache for both buffering and logging, Hercules yields much higher throughput and incurs significantly fewer pmem writes than state-of-the-art designs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。