arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.09735cs.DB
收藏

多元宇宙:带动态多版本的事务内存

Multiverse: Transactional Memory with Dynamic Multiversioning

University of Waterloo(滑铁卢大学);University of Southern California(南加州大学)

Gaetano Coccimiglio, Trevor Brown, Srivatsan Ravi

AI总结:

Multiverse结合无版本事务内存和多版本技术,实现高性能并发事务处理,尤其在长持续读取场景下表现优异。

摘要:

软件事务内存(STM)允许程序员轻松实现并发数据结构。STMs简化了原子性。最近的STMs在某些工作负载上可以实现良好的性能,但它们有一些限制。特别是,STMs通常无法支持长持续读取,这种读取访问大量频繁更新的地址。多版本化是支持这种工作负载的常见方法。然而,多版本化往往很昂贵,可能会降低不需要版本化的事务的性能。在本工作中,我们提出了Multiverse,一种结合无版本TM和多版本化优点的新STM。Multiverse具有带版本和无版本的事务,可以并发执行。Multiverse的主要目标是确保无版本事务的性能与最先进的无版本STM相当,同时仍支持快速版本化事务以启用长持续读取。我们实现了Multiverse,并将其与几种STMs进行比较。我们的实验表明,对于没有长持续读取的常见工作负载,Multiverse在性能上与现有STMs相当或更好。对于有长持续读取和频繁更新的工作负载,Multiverse显著优于现有STMs。在这些工作负载的几个情况下,Multiverse的吞吐量比其他STMs快几个数量级。

英文摘要:

Software transactional memory (STM) allows programmers to easily implement concurrent data structures. STMs simplify atomicity. Recent STMs can achieve good performance for some workloads but they have some limitations. In particular, STMs typically cannot support long-running reads which access a large number of addresses that are frequently updated. Multiversioning is a common approach used to support this type of workload. However, multiversioning is often expensive and can reduce the performance of transactions where versioning is not necessary. In this work we present Multiverse, a new STM that combines the best of both unversioned TM and multiversioning. Multiverse features versioned and unversioned transactions which can execute concurrently. A main goal of Multiverse is to ensure that unversioned transactions achieve performance comparable to the state of the art unversioned STM while still supporting fast versioned transactions needed to enable long running reads. We implement Multiverse and compare it against several STMs. Our experiments demonstrate that Multiverse achieves comparable or better performance for common case workloads where there are no long running reads. For workloads with long running reads and frequent updates Multiverse significantly outperforms existing STMS. In several cases for these workloads the throughput of Multiverse is several orders of magnitude faster than other STMs.

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

↑