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

基于伸展的并发树

Concurrent Splay-Based Tree

ITMO University(ITMO大学)

Vitaly Aksenov, Rene van Bevern, Artem Shilkin

AI总结:

提出一种并发二叉搜索树的类伸展旋转设计,通过基于访问次数的深度阈值控制旋转,在倾斜负载下减少根节点竞争,提升吞吐量。

摘要:

大多数关于高效并发有序索引(如并发二叉搜索树、B树、跳跃表等)的工作都集中在提供良好最坏情况保证的数据结构上。在实际工作负载中,对象通常以不同的速率被访问,因为访问分布可能不均匀。在顺序情况下存在许多高效的分布自适应数据结构;然而,在并发情况下,它们往往难以高效实现。最著名的分布自适应数据结构是伸展树。其最重要的优点是它不存储任何平衡信息,并在极端倾斜的工作负载(如Zipfian工作负载)上提供合理的性能提升。本文提出了一种用于并发二叉搜索树的类伸展旋转设计。旋转不是将访问节点移动到根,而是使用两个深度阈值,这两个阈值基于从节点访问次数计算出的静态最优复杂度:仅当节点明显深于上阈值时才进行旋转,并且节点的旋转在下阈值之前停止。该设计旨在保留伸展在倾斜工作负载上的主要实际优势,同时减少根附近的竞争。我们提出了旋转设计的两种变体:一种使用每个节点的精确64位访问计数器,另一种使用6位近似计数器。我们证明了相应顺序只读树的静态最优性,并通过在Bronson等人的并发AVL树之上实现这两种旋转设计来评估它们。我们的实验表明,该方法可以在几种倾斜工作负载上提高吞吐量。

英文摘要:

Most work on efficient concurrent ordered indices, such as concurrent binary search trees, B-trees, skip lists, etc., has focused on data structures that provide good \emph{worst-case} guarantees. In real workloads, objects are often accessed at different rates, since access distributions may be non-uniform. Many efficient distribution-adaptive data structures exist in the sequential case; however, they are often complicated to make efficient in the concurrent case. The most prominent distribution-adaptive data structure is Splay Tree. Its most important advantage is that it does not store any balancing information and provides a reasonable performance improvement on extremely skewed workloads, such as Zipfian workloads. This paper proposes a splay-like rotation design for concurrent binary search trees. Instead of moving an accessed node to the root, rotations use two depth thresholds that are based on the static-optimality complexity computed from the number of accesses to the node: a node is rotated only when it is substantially deeper than the upper threshold, and rotations of the node stop before reaching the lower threshold. This design aims to preserve the main practical benefit of splaying on skewed workloads while reducing contention near the root. We present two variants of the rotation design: one using an exact 64-bit access counter per node and one using a 6-bit approximate counter. We prove static optimality for the corresponding sequential read-only tree and evaluate both rotation designs by implementing them on top of the concurrent AVL tree of Bronson et al. Our experiments show that the approach can improve throughput on several skewed workloads.

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

↑