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

使用ASAP实现异步持久化

Asynchronous Persistence with ASAP

Ahmed Abulila, Izzat El Hajj, Myoungsoo Jung, Nam Sung Kim

摘要:

支持持久内存更新的原子持久性通常是通过预写日志记录(WAL)实现的。WAL在使实际数据持久化之前将日志条目刷新到持久内存,以确保在发生崩溃时可以恢复一致的状态。在硬件中执行WAL是有吸引力的,因为它使日志管理的大多数方面对软件透明,并且它在后台完成日志持久化操作(LP)和数据持久化操作(DP),将它们与其他指令的执行重叠。先前的硬件日志记录解决方案同步提交原子区域。一旦到达区域的末尾,则必须在指令执行可以继续之前完成区域提交所需的所有未完成的持久操作。对于撤消日志记录,LP和DP都同步执行,以确保区域同步提交。对于重做日志记录,DP可以异步执行,但LP是同步执行的,以确保区域同步提交。在这两种情况下,在原子区域结束时等待同步持久操作(LP或DP)会导致原子区域产生高延迟。为了解决这个限制,我们提出了ASAP,一个硬件日志解决方案,允许原子区域异步提交。也就是说,一旦到达原子区域的末尾,指令执行就可以继续,而无需等待未完成的持久操作完成。因此,LP和DP都可以异步执行。允许原子区域异步提交的挑战在于,它可能导致原子区域的提交顺序中的控制和数据依赖性违规,从而在崩溃的情况下使数据处于不可恢复的状态。为了解决这个问题,ASAP跟踪并实施硬件中原子区域之间的控制和数据依赖关系,以确保区域以正确的顺序提交。

英文摘要:

Supporting atomic durability of updates for persistent memories is typically achieved with Write-Ahead Logging (WAL). WAL flushes log entries to persistent memory before making the actual data persistent to ensure that a consistent state can be recovered if a crash occurs. Performing WAL in hardware is attractive because it makes most aspects of log management transparent to software, and it completes log persist operations (LPs) and data persist operations (DPs) in the background, overlapping them with the execution of other instructions. Prior hardware logging solutions commit atomic regions synchronously. Once the end of a region is reached, all outstanding persist operations required for the region to commit must be completed before instruction execution may proceed. For undo logging, LPs and DPs are both performed synchronously to ensure that the region commits synchronously. For redo logging, DPs can be performed asynchronously, but LPs are performed synchronously to ensure that the region commits synchronously. In both cases, waiting for synchronous persist operations (LP or DP) at the end of an atomic region causes atomic regions to incur high latency. To tackle this limitation, we propose ASAP, a hardware logging solution that allows atomic regions to commit asynchronously. That is, once the end of an atomic region is reached, instruction execution may proceed without waiting for outstanding persist operations to complete. As such, both LPs and DPs can be performed asynchronously. The challenge with allowing atomic regions to commit asynchronously is that it can lead to control and data dependence violations in the commit order of the atomic regions, leaving data in an unrecoverable state in case of a crash. To address this issue, ASAP tracks and enforces control and data dependencies between atomic regions in hardware to ensure that the regions commit in the proper order.

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

↑