arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.06697cs.DBcs.DS
收藏

数据库和现代CPU的索引搜索算法

Index Search Algorithms for Databases and Modern CPUs

Florian Gross

摘要:

多年来,已经提出了许多不同的索引技术和搜索算法,包括CSS树,CSB+树,k-ary二叉搜索和快速架构敏感树搜索。还有一些论文讨论了如何最好地设置这些索引结构的许多不同参数,例如CSB+树的节点大小。提出这些指数是因为CPU速度的增长速度比内存速度快得多,从而导致了冯·诺依曼CPU-内存瓶颈。为了隐藏由内存访问引起的长延迟,充分利用现代CPU的特性变得非常重要。为了降低执行CPU指令所需的平均CPU时钟周期数,从而提高吞吐量,实现CPU资源的良好利用变得非常重要。其中一些是数据和指令缓存,以及翻译后备缓冲区。但是,避免分支误预测惩罚以及利用CPU以SIMD指令形式提供的向量化也变得重要。虽然索引结构的布局已经针对现代CPU的数据缓存进行了大量优化,但到目前为止,指令缓存一直被忽视。在本文中,我们提出了氮,一个框架,利用代码生成,加快索引遍历内存数据库系统。通过将数据和代码放在一起,我们使索引结构使用指令缓存的休眠资源。我们展示了如何将索引编译与以前的方法相结合,如二叉树搜索,缓存敏感的树搜索,以及Kim等人提出的架构敏感的树搜索。

英文摘要:

Over the years, many different indexing techniques and search algorithms have been proposed, including CSS-trees, CSB+ trees, k-ary binary search, and fast architecture sensitive tree search. There have also been papers on how best to set the many different parameters of these index structures, such as the node size of CSB+ trees. These indices have been proposed because CPU speeds have been increasing at a dramatically higher rate than memory speeds, giving rise to the Von Neumann CPU--Memory bottleneck. To hide the long latencies caused by memory access, it has become very important to well-utilize the features of modern CPUs. In order to drive down the average number of CPU clock cycles required to execute CPU instructions, and thus increase throughput, it has become important to achieve a good utilization of CPU resources. Some of these are the data and instruction caches, and the translation lookaside buffers. But it also has become important to avoid branch misprediction penalties, and utilize vectorization provided by CPUs in the form of SIMD instructions. While the layout of index structures has been heavily optimized for the data cache of modern CPUs, the instruction cache has been neglected so far. In this paper, we present NitroGen, a framework for utilizing code generation for speeding up index traversal in main memory database systems. By bringing together data and code, we make index structures use the dormant resource of the instruction cache. We show how to combine index compilation with previous approaches, such as binary tree search, cache-sensitive tree search, and the architecture-sensitive tree search presented by Kim et al.

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

↑