并行工作集搜索结构
Parallel Working-Set Search Structures
摘要:
在本文中,我们提出了两个版本的并行工作集映射的p处理器,支持搜索,插入和删除。在这两个版本中,当映射的大小至少为p时,所有操作的总工作量都受工作集界限的限制,即,一个项目的成本取决于它最近被访问的时间(对于某种线性化):访问map中最近度为r的项目需要O(1+log r)的工作。在简单的版本中,每个map操作都有O((log p)^2+log n)span(其中n是map的最大大小)。在流水线版本中,对新近度为r的项的每个映射操作的跨度为O((log p)^2+log r)。(并行操作可能有重叠的跨度;跨度仅对顺序操作是可加的。这两种数据结构都被设计成供动态多线程并行程序使用,该程序在每一步执行单位时间指令或进行数据结构调用。为了达到规定的界限,流水线数据结构需要弱优先级调度器,其支持有限形式的2级优先级。最后,我们解释了如何将结果转化为实际的实现,使用工作窃取的机器人。据我们所知,这是第一个并行实现的自调整搜索结构的操作成本适应访问序列。工作集界限的一个推论是它实现了工作静态最优性:总工作量由最优静态搜索树中的访问成本限制。
英文摘要:
In this paper we present two versions of a parallel working-set map on p processors that supports searches, insertions and deletions. In both versions, the total work of all operations when the map has size at least p is bounded by the working-set bound, i.e., the cost of an item depends on how recently it was accessed (for some linearization): accessing an item in the map with recency r takes O(1+log r) work. In the simpler version each map operation has O((log p)^2+log n) span (where n is the maximum size of the map). In the pipelined version each map operation on an item with recency r has O((log p)^2+log r) span. (Operations in parallel may have overlapping span; span is additive only for operations in sequence.) Both data structures are designed to be used by a dynamic multithreading parallel program that at each step executes a unit-time instruction or makes a data structure call. To achieve the stated bounds, the pipelined data structure requires a weak-priority scheduler, which supports a limited form of 2-level prioritization. At the end we explain how the results translate to practical implementations using work-stealing schedulers. To the best of our knowledge, this is the first parallel implementation of a self-adjusting search structure where the cost of an operation adapts to the access sequence. A corollary of the working-set bound is that it achieves work static optimality: the total work is bounded by the access costs in an optimal static search tree.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。