arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1803.08617cs.DCcs.DS
收藏

具有有限延迟和精确垃圾回收的多版本并发

Multiversion Concurrency with Bounded Delay and Precise Garbage Collection

Naama Ben-David, Guy E. Blelloch, Yihan Sun, Yuanhao Wei

摘要:

在本文中,我们感兴趣的是处理事务所需的指令数。主要结果是一个多版本事务系统,支持所有只读事务的恒定延迟(额外的指令超出隔离运行),延迟等于与其他作家不并发的写事务的进程数,并发作家的锁自由。系统支持精确的垃圾回收,因为一旦最后一个事务释放了版本,就标识出要收集的版本。据我们所知,这些是第一个结果,约束多个读者,甚至一个作家的延迟。这种方法在读事务支配写事务的情况下特别有用,或者写事务作为流或批处理进来,并且可以由单个写入器处理(可能是并行的)。该方法基于功能数据结构来支持多版本,有效地解决了版本获取、更新和发布的版本维护问题。我们对VM问题的解决方案是精确的,安全的和无等待的(PALK)。我们实验验证我们的方法,将其应用到平衡树数据结构,以维护有序的地图。我们测试的事务系统使用多种算法的VM问题,包括我们的PINDUM VM算法,并实现较弱的保证的基础上的历元,危险指针,和读取复制更新。为了评估并发和多版本的功能数据结构,我们实现了批量更新的功能树结构和比较性能与最先进的并发数据结构的平衡树。实验表明,我们的方法在实践中工作得很好,在广泛的标准。

英文摘要:

In this paper we are interested in bounding the number of instructions taken to process transactions. The main result is a multiversion transactional system that supports constant delay (extra instructions beyond running in isolation) for all read-only transactions, delay equal to the number of processes for writing transactions that are not concurrent with other writers, and lock-freedom for concurrent writers. The system supports precise garbage collection in that versions are identified for collection as soon as the last transaction releases them. As far as we know these are first results that bound delays for multiple readers and even a single writer. The approach is particularly useful in situations where read-transactions dominate write transactions, or where write transactions come in as streams or batches and can be processed by a single writer (possibly in parallel). The approach is based on using functional data structures to support multiple versions, and an efficient solution to the Version Maintenance (VM) problem for acquiring, updating and releasing versions. Our solution to the VM problem is precise, safe and wait-free (PSWF). We experimentally validate our approach by applying it to balanced tree data structures for maintaining ordered maps. We test the transactional system using multiple algorithms for the VM problem, including our PSWF VM algorithm, and implementations with weaker guarantees based on epochs, hazard pointers, and read-copy-update. To evaluate the functional data structure for concurrency and multi-versioning, we implement batched updates for functional tree structures and compare the performance with state-of-the-art concurrent data structures for balanced trees. The experiments indicate our approach works well in practice over a broad set of criteria.

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

↑