HoneyComb:一种面向多核系统的并行最坏情况最优连接
HoneyComb: A Parallel Worst-Case Optimal Join on Multicores
AI总结:
本文提出 HoneyComb,一种面向多核共享内存系统的并行最坏情况最优连接算法,通过对所有查询变量域进行分区、引入急切构建的 CoCo 索引以及重写 WCOJ 计划消除冗余计算,解决了现有并行 WCOJ 的工作倾斜、线程争用和冗余计算问题。
摘要:
为了在大规模数据集上实现真正的可扩展性,现代查询引擎需要能够利用大型共享内存多核系统。二元连接在概念上很容易在多核系统上并行化;然而,若干应用需要一种不同的查询求值方法,即使用最坏情况最优连接(WCOJ)算法。已知 WCOJ 在循环查询上优于传统查询计划。然而,WCOJ 并没有明显适用于并行架构的改编方式。现有少数并行化 WCOJ 的系统仅通过对 WCOJ 算法的顶层变量进行分区来实现这一点。这会导致工作倾斜(因为某些关系最终会被每个线程完整读取)、线程之间可能发生争用(当分层 trie 索引被惰性构建时,而这是大多数近期 WCOJ 系统的情况),并加剧 WCOJ 中已经存在的冗余计算。我们引入 HoneyComb,一种 WCOJ 的并行版本,针对大型多核共享内存系统进行了优化。HoneyComb 对所有查询变量的域进行分区,而不仅仅是顶层循环的域。我们借鉴了 HyperCube 算法中的分区思想,该算法由理论界为在大规模并行无共享架构上计算多连接查询而开发,并引入了针对共享内存架构优化的新份额计算方法。为了避免 trie 索引惰性构建所产生的争用,我们引入了 CoCo,一种新的且非常简单的索引结构,我们通过对整个关系进行排序来急切地构建它。最后,为了消除 WCOJ 中的一些冗余计算,我们引入了一种 WCOJ 计划的重写技术,该技术分解出其中一些冗余计算。我们的实验评估将 HoneyComb 与若干近期 WCOJ 实现进行了比较。
英文摘要:
To achieve true scalability on massive datasets, a modern query engine needs to be able to take advantage of large, shared-memory, multicore systems. Binary joins are conceptually easy to parallelize on a multicore system; however, several applications require a different approach to query evaluation, using a Worst-Case Optimal Join (WCOJ) algorithm. WCOJ is known to outperform traditional query plans for cyclic queries. However, there is no obvious adaptation of WCOJ to parallel architectures. The few existing systems that parallelize WCOJ do this by partitioning only the top variable of the WCOJ algorithm. This leads to work skew (since some relations end up being read entirely by every thread), possible contention between threads (when the hierarchical trie index is built lazily, which is the case on most recent WCOJ systems), and exacerbates the redundant computations already existing in WCOJ. We introduce HoneyComb, a parallel version of WCOJ, optimized for large multicore, shared-memory systems. HoneyComb partitions the domains of all query variables, not just that of the top loop. We adapt the partitioning idea from the HyperCube algorithm, developed by the theory community for computing multi-join queries on a massively parallel shared-nothing architecture, and introduce new methods for computing the shares, optimized for a shared-memory architecture. To avoid the contention created by the lazy construction of the trie-index, we introduce CoCo, a new and very simple index structure, which we build eagerly, by sorting the entire relation. Finally, in order to remove some of the redundant computations of WCOJ, we introduce a rewriting technique of the WCOJ plan that factors out some of these redundant computations. Our experimental evaluation compares HoneyComb with several recent implementations of WCOJ.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。