持久集的栅栏复杂度
The Fence Complexity of Persistent Sets
AI总结:
本文研究非易失性内存中并发集的 psync 复杂度,证明了持久线性化无锁集的冗余 psync 下界,提出 SLE 线性化属性,并通过实验评估了所提出的匹配上界并发集算法的实际性能与恢复成本。
摘要:
我们在非易失性共享内存模型中研究并发集的 psync 复杂度。在非易失性内存中,flush 指令用于强制将共享状态写回非易失性内存,并且通常必须伴随使用昂贵的 fence 指令来强制这些 flush 之间的顺序。我们将 flush 和 fence 统称为 psync。严格线性化(strict linearizability)的安全性属性强制崩溃的操作在崩溃前生效或完全不生效;较弱的持久线性化(durable linearizability)属性仅对在崩溃事件之前已完成的操作强制执行此要求。我们考虑基于链表的集合的无锁实现,并证明了两个下界。我们证明,对于任何持久线性化的无锁集,必然存在一种执行,其中某个进程必须作为更新操作的一部分执行至少一个冗余的 psync。我们引入了针对持久集的严格线性化扩展,称为严格有限效应(strict limited effect, SLE)线性化。SLE 线性化明确确保操作在崩溃后不生效,这更好地反映了严格线性化的原始意图。我们证明,不可能实现只读(或搜索)操作不执行 flush 或 fence 的 SLE 线性化无锁集。我们对持久集进行了实证研究,考察了各种算法设计技术及 flush 指令在实践中的影响。我们提出了提供匹配上界的并发集算法,并将其与现有持久集进行严格评估,以揭示算法设计和安全性属性对实践中 psync 复杂度的影响,以及系统崩溃后恢复数据结构的成本。
英文摘要:
We study the psync complexity of concurrent sets in the non-volatile shared memory model. Flush instructions are used in non-volatile memory to force shared state to be written back to non-volatile memory and must typically be accompanied by the use of expensive fence instructions to enforce ordering among such flushes. Collectively we refer to a flush and a fence as a psync. The safety property of strict linearizability forces crashed operations to take effect before the crash or not take effect at all; the weaker property of durable linearizability enforces this requirement only for operations that have completed prior to the crash event. We consider lock-free implementations of list-based sets and prove two lower bounds. We prove that for any durable linearizable lock-free set there must exist an execution where some process must perform at least one redundant psync as part of an update operation. We introduce an extension to strict linearizability specialized for persistent sets that we call strict limited effect (SLE) linearizability. SLE linearizability explicitly ensures that operations do not take effect after a crash which better reflects the original intentions of strict linearizability. We show that it is impossible to implement SLE linearizable lock-free sets in which read-only (or search) operations do not flush or fence. We undertake an empirical study of persistent sets that examines various algorithmic design techniques and the impact of flush instructions in practice. We present concurrent set algorithms that provide matching upper bounds and rigorously evaluate them against existing persistent sets to expose the impact of algorithmic design and safety properties on psync complexity in practice as well as the cost of recovering the data structure following a system crash.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。