多版本B树的多版本并发控制
Multiversion Concurrency Control for Multiversion B-Trees
AI总结:
提出cMVBT,通过乐观锁存和无锁范围扫描实现高效并发控制,同时保持原MVBT的最优性保证,性能优于基于版本链的方法。
摘要:
多版本并发控制(MVCC)使扫描能够从已提交的快照(版本)读取数据,与传统并发方法相比减少了与写操作的冲突。目前,版本记录通常使用版本链在B$^+$-树中管理。然而,版本链在扫描过程中引入开销,并且仍可能导致扫描与写入器之间的冲突。多版本B树(MVBT)旨在任意版本上实现最优范围扫描性能,但由于其结构复杂性以及直到最近缺乏有效的并发控制,被认为不实用。在本文中,我们提出了并发MVBT(cMVBT),这是MVBT的重新设计,具有一种新颖的并发控制协议,该协议对写操作使用乐观锁存,对范围扫描不需要锁存,同时保留了原始MVBT的所有最优性保证。此外,cMVBT支持无活动尖峰的连续垃圾回收,无缝集成了空闲空间管理。使用标准基准测试衍生的混合工作负载进行的实验表明,cMVBT实现了低开销、高写入吞吐量和出色的范围扫描性能,优于基于版本链的最新方法。
英文摘要:
Multiversion concurrency control (MVCC) enables scans to read data from a committed snapshot (version), reducing conflicts with write operations compared to traditional concurrency approaches. Currently, versioned records are often managed in a B$^+$-tree using version chains. However, version chains introduce overhead during scans and can still lead to conflicts between scans and writers. The multiversion B-tree (MVBT) was designed for optimal range scan performance on arbitrary versions, but has been considered impractical due to its structural complexity and, until recently, the lack of effective concurrency control. In this paper, we present the concurrent MVBT (cMVBT), a redesign of the MVBT featuring a novel concurrency control protocol that uses optimistic latches for write operations and requires no latches for range scans, while preserving all the optimality guarantees of the original MVBT. Additionally, cMVBT supports continuous garbage collection without activity spikes, seamlessly integrating free-space management. Experiments with mixed workloads derived from a standard benchmark show that the cMVBT achieves low overhead, high write throughput, and excellent range scan performance, outperforming state-of-the-art methods based on version chains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。