arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.06226cs.DC
收藏

持久性内存的架构感知、高性能事务

Architecture-Aware, High Performance Transaction for Persistent Memory

Kai Wu, Jie Ren, Dong Li

摘要:

字节可寻址的非易失性主存储器(NVM)需要事务机制来原子地访问和操纵NVM上的数据。这些事务机制通常采用日志记录机制(撤消日志记录或重做日志记录)。然而,日志机制会带来很大的运行时开销(在我们的评估中为8%-49%),而41%-78%的开销归因于频繁的缓存行刷新。如此大的开销显著地降低了NVM所提供的性能优势。在本文中,我们介绍了一种新的方法来减少基于日志的事务的缓存行刷新的开销。不同于传统的方法,工作在程序级,利用程序语义来减少日志开销,我们引入架构意识。特别地,我们不刷新某些高速缓存块,只要它们被估计为由于硬件高速缓存机制(例如,缓存替换算法)。此外,我们合并那些低脏的缓存块,以提高缓存行刷新的效率。我们实现了一个架构感知的,高性能的事务运行时系统的持久内存,Archapt。我们的研究结果表明,与撤销日志(PMDK)和重做日志(Mnemosyne)相比,Archapt减少了66%的缓存线刷新,提高系统吞吐量平均19%(最多42%)。我们的崩溃测试与四个硬件缓存政策表明,Archapt提供了一个强有力的保证崩溃的一致性。

英文摘要:

Byte-addressable non-volatile main memory (NVM) demands transactional mechanisms to access and manipulate data on NVM atomically. Those transaction mechanisms often employ a logging mechanism (undo logging or redo logging). However, the logging mechanisms can bring large runtime overhead (8%-49% in our evaluation), and 41%-78% of the overhead attributes to the frequent cache-line flushing. Such large overhead significantly diminishes the performance benefits offered by NVM. In this paper, we introduce a new method to reduce the overhead of cache-line flushing for logging-based transactions. Different from the traditional method that works at the program level and leverages program semantics to reduce the logging overhead, we introduce architecture awareness. In particular, we do not flush certain cache blocks, as long as they are estimated to be eliminated out of the cache because of the hardware caching mechanism (e.g., the cache replacement algorithm). Furthermore, we coalesce those cache blocks with low dirtiness to improve the efficiency of cache-line flushing. We implement an architecture-aware, high performance transaction runtime system for persistent memory, Archapt. Our results show that comparing with an undo logging (PMDK) and a redo logging (Mnemosyne), Archapt reduces cache-line flushing by 66% and improves system throughput by 19% on average (42% at most). Our crash tests with four hardware caching policies show that Archapt provides a strong guarantee on crash consistency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑