arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.12495cs.DCcs.PF
收藏

Arcadia:一种快速可靠的持久内存复制日志

Arcadia: A Fast and Reliable Persistent Memory Replicated Log

Shashank Gugnani, Scott Guthridge, Frank Schmuck, Owen Anderson, Deepavali Bhagwat, Xiaoyi Lu

摘要:

字节可寻址持久存储器(PMEM)的性能特性有可能在广泛的应用范围内显着提高系统性能。但是持久存储器给程序员带来了相当大的新挑战:只有8字节的写原子性,乱序刷新和节点故障限制的可用性。通过仔细地对存储操作的顺序进行排序,并在每个排序点插入显式的刷新和栅栏操作,可以直接使用PMEM的原子性和排序约束。但这是乏味的,而且容易出错:太多的刷新操作会使PMEM的性能优势失效,即使大量使用,也很难证明给定的程序是崩溃一致的。日志记录是处理这些问题的一个很好的抽象,但是之前关于PMEM日志记录的工作并没有成功地隐藏PMEM的特性。此外,日志接口和设计中的缺点已经阻止了完全PMEM性能的实现。我们相信,在提供完整性能的同时向程序员隐藏特性的日志设计是成功的关键。在本文中,我们提出了阿卡迪亚的设计和实现,一个通用的复制日志PMEM来解决这些问题。Arcadia处理日志记录的原子性、完整性和复制,以减轻程序员的负担。我们的设计有几个新颖的方面,包括具有有序提交的并发日志写入、本地和远程PMEM写入的原子性和完整性原语,以及基于频率的日志强制策略,用于提供低开销持久性,并保证未提交记录的有界丢失。我们的评估表明,Arcadia的性能比最先进的PMEM日志(如PMDK的libpmemlog、FLEX和Query Fresh)高出数倍,同时提供了更强的日志记录持久性保证。我们希望阿卡迪亚成为领先的现成的PMEM日志设计。

英文摘要:

The performance properties of byte-addressable persistent memory (PMEM) have the potential to significantly improve system performance over a wide spectrum of applications. But persistent memory brings considerable new challenges to the programmer: only 8-byte write atomicity, out of order flush and availability limited by node failure. It's possible to work with the atomicity and ordering constraints of PMEM directly by carefully sequencing the order of store operations and inserting explicit flush and fence operations at each ordering point. But this is tedious and error-prone: too many flush operations defeat the performance benefits of PMEM, and even with generous use, it is difficult to prove that a given program is crash-consistent. Logging is a great abstraction to deal with these issues but prior work on PMEM logging has not successfully hidden the idiosyncrasies of PMEM. Moreover, shortcomings in the log interface and design have prevented attainment of full PMEM performance. We believe that a log design that hides the idiosyncrasies from programmers while delivering full performance is key to success. In this paper, we present the design and implementation of Arcadia, a generic replicated log on PMEM to address these problems. Arcadia handles atomicity, integrity, and replication of log records to reduce programmer burden. Our design has several novel aspects including concurrent log writes with in-order commit, atomicity and integrity primitives for local and remote PMEM writes, and a frequency-based log force policy for providing low overhead persistence with guaranteed bounded loss of uncommitted records. Our evaluation shows that Arcadia outperforms state-of-the-art PMEM logs, such as PMDK's libpmemlog, FLEX, and Query Fresh by several times while providing stronger log record durability guarantees. We expect Arcadia to become the leading off-the-shelf PMEM log design.

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

↑