arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.00996cs.DCcs.DScs.PF
收藏

非阻塞数据结构的事务组合

Transactional Composition of Nonblocking Data Structures

Wentao Cai, Haosen Wen, Michael L. Scott

摘要:

本文介绍了非阻塞事务组合(NBTC),一种新的方法,原子组合的非阻塞操作的并发数据结构。与以前的软件事务存储器(STM)方法不同,NBTC利用现有非阻塞结构的线性化能力,减少必须一起执行的存储器访问数量,原子地,在大多数情况下每个操作只有一个(这些通常是组成操作的线性化指令)。我们对NBTC的无障碍实现,我们称之为Medley,可以轻松地将大多数非阻塞数据结构转换为事务对应物,同时保持它们的活性和高并发性。在我们的实验中,Medley比最快的竞争方法--无锁transmittance变换(LFTT)的性能高40- 170%。相对于连续执行的单独操作,Medley的事务组合的边际开销大约为2.2 $\times$。对于持久数据结构,我们观察到,故障原子性的事务可以实现“几乎免费”与基于时代的定期持久性。为此,我们将Medley与nbMontage集成,nbMontage是一个周期性持久数据结构的通用系统。由此产生的txMontage提供了ACID事务,并实现了比OneFile持久STM系统高两个数量级的吞吐量。

英文摘要:

This paper introduces nonblocking transaction composition (NBTC), a new methodology for atomic composition of nonblocking operations on concurrent data structures. Unlike previous software transactional memory (STM) approaches, NBTC leverages the linearizability of existing nonblocking structures, reducing the number of memory accesses that must be executed together, atomically, to only one per operation in most cases (these are typically the linearizing instructions of the constituent operations). Our obstruction-free implementation of NBTC, which we call Medley, makes it easy to transform most nonblocking data structures into transactional counterparts while preserving their liveness and high concurrency. In our experiments, Medley outperforms Lock-Free Transactional Transform (LFTT), the fastest prior competing methodology, by 40--170%. The marginal overhead of Medley's transactional composition, relative to separate operations performed in succession, is roughly 2.2$\times$. For persistent data structures, we observe that failure atomicity for transactions can be achieved "almost for free" with epoch-based periodic persistence. Toward that end, we integrate Medley with nbMontage, a general system for periodically persistent data structures. The resulting txMontage provides ACID transactions and achieves throughput up to two orders of magnitude higher than that of the OneFile persistent STM system.

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

↑