面向众核CPU的实用持久化多字比较并交换算法
Practical Persistent Multi-Word Compare-and-Swap Algorithms for Many-Core CPUs
AI总结:
针对现有持久化多字比较并交换算法在众核CPU上性能不足的问题,本文通过移除冗余指令、用描述符作预写日志去掉脏标志位优化算法,实现最高十倍的性能提升。
摘要:
过去十年间,随着首款实用产品Intel Optane的问世,学术界和工业界研究者纷纷聚焦持久内存领域。持久内存编程的核心挑战之一是保证跨不同内存地址的一致性持久化,Wang等人提出了持久化多字比较并交换(PMwCAS)算法来解决这一问题,但该算法存在冗余的比较并交换(CAS)和缓存刷新指令,在众核CPU上无法达到足够的性能。本文提出一种新算法,通过移除PMwCAS操作中无用的CAS/刷新指令来提升众核CPU上的性能;我们还将PMwCAS描述符用作预写日志,从而去掉了原算法中用于保障一致性持久化的脏标志位。实验结果表明,所提方法比原算法最快快十倍,同时揭示了PMwCAS操作的若干高效应用场景。
英文摘要:
In the last decade, academic and industrial researchers have focused on persistent memory because of the development of the first practical product, Intel Optane. One of the main challenges of persistent memory programming is to guarantee consistent durability over separate memory addresses, and Wang et al. proposed a persistent multi-word compare-and-swap (PMwCAS) algorithm to solve this problem. However, their algorithm contains redundant compare-and-swap (CAS) and cache flush instructions and does not achieve sufficient performance on many-core CPUs. This paper proposes a new algorithm to improve performance on many-core CPUs by removing useless CAS/flush instructions from PMwCAS operations. We also exclude dirty flags, which help ensure consistent durability in the original algorithm, from our algorithm using PMwCAS descriptors as write-ahead logs. Experimental results show that the proposed method is up to ten times faster than the original algorithm and suggests several productive uses of PMwCAS operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。