时空有界的多版本垃圾回收
Space and Time Bounded Multiversion Garbage Collection
摘要:
我们提出了一个通用的垃圾收集多版本并发控制,同时实现良好的时间和空间复杂度的旧版本的技术。我们的技术平均只需要$O(1)$时间来回收每个版本,并且只维护比所需版本多一个常数因子(加上一个附加项)。它是为使用版本列表的多版本方案而设计的,这是最常见的。我们的方法使用两个独立的组件。首先,我们定义了一个新的范围跟踪数据结构,它存储了一组旧版本,并有效地找到那些不再需要。我们提供了一个无等待的实现,其中所有操作都需要摊销常数时间。其次,我们表示版本列表使用一个新的无锁的双向链表算法,支持有效的(摊销常数时间)删除给定的指针在列表中的任何节点。这两个组件自然地结合在一起,以解决多版本垃圾回收问题--范围跟踪器确定要删除哪些版本,然后可以使用我们的列表算法将它们从版本列表中删除。我们应用我们的垃圾回收技术为Wei等人的多版本系统生成端到端的时间和空间边界。(PPoPP 2021)。
英文摘要:
We present a general technique for garbage collecting old versions for multiversion concurrency control that simultaneously achieves good time and space complexity. Our technique takes only $O(1)$ time on average to reclaim each version and maintains only a constant factor more versions than needed (plus an additive term). It is designed for multiversion schemes using version lists, which are the most common. Our approach uses two components that are of independent interest. First, we define a novel range-tracking data structure which stores a set of old versions and efficiently finds those that are no longer needed. We provide a wait-free implementation in which all operations take amortized constant time. Second, we represent version lists using a new lock-free doubly-linked list algorithm that supports efficient (amortized constant time) removals given a pointer to any node in the list. These two components naturally fit together to solve the multiversion garbage collection problem--the range-tracker identifies which versions to remove and our list algorithm can then be used to remove them from their version lists. We apply our garbage collection technique to generate end-to-end time and space bounds for the multiversioning system of Wei et al. (PPoPP 2021).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。