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

事务内存中的并发代价

On the Cost of Concurrency in Transactional Memory

Petr Kuznetsov, Srivatsan Ravi

摘要:

软件事务存储器(STM)的关键是将一个易于使用的编程接口与现代机器提供的并发计算能力的有效利用相结合。但这种结合是否会带来内在成本?我们通过测量STM实现中必须采用的昂贵同步的数量来评估并发的成本,以确保正并发,即,在某些执行中允许并发事务处理。我们专注于两个流行的进展条件,提供积极的并发:渐进性和宽容。我们表明,在许可的STM,提供了一个非常高的并发度,一个事务执行一个线性数量的昂贵的同步模式相对于其读集大小。相比之下,渐进式STM提供了非常小程度的并发性,但正如我们所展示的,可以使用每个事务最多一个昂贵的同步模式来实现。然而,我们表明,即使在渐进式STM中,交易也必须“保护”(例如,通过使用锁或强同步原语)相对于其写集大小的线性数据量。我们的研究结果表明,在STM实现中寻找高并发度可能会带来相当大的同步成本。

英文摘要:

The crux of software transactional memory (STM) is to combine an easy-to-use programming interface with an efficient utilization of the concurrent-computing abilities provided by modern machines. But does this combination come with an inherent cost? We evaluate the cost of concurrency by measuring the amount of expensive synchronization that must be employed in an STM implementation that ensures positive concurrency, i.e., allows for concurrent transaction processing in some executions. We focus on two popular progress conditions that provide positive concurrency: progressiveness and permissiveness. We show that in permissive STMs, providing a very high degree of concurrency, a transaction performs a linear number of expensive synchronization patterns with respect to its read-set size. In contrast, progressive STMs provide a very small degree of concurrency but, as we demonstrate, can be implemented using at most one expensive synchronization pattern per transaction. However, we show that even in progressive STMs, a transaction has to "protect" (e.g., by using locks or strong synchronization primitives) a linear amount of data with respect to its write-set size. Our results suggest that looking for high degrees of concurrency in STM implementations may bring a considerable synchronization cost.

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

↑