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

物超所值:GPU 上快速且空间高效的硬件加速粗粒度索引

More Bang For Your Buck(et): Fast and Space-efficient Hardware-accelerated Coarse-granular Indexing on GPUs

Justus Henneberg, Felix Schuhknecht, Rosina Kharal, Trevor Brown

AI总结:

本文提出粗粒度 GPU 索引 cgRX,通过索引键桶并后过滤,解决 RTIndeX 内存开销大、范围查找慢和更新差的问题,实现吞吐量相对内存占用提升 1.5-3 倍、范围查找提升最多 2 倍、更新快最多 5.6 倍。

摘要:

在近期工作中,我们已经证明可以利用 NVIDIA RTX 显卡上的光线追踪核心来实现 GPU 驻留数据库索引的硬件加速查找。从高层来看,该概念将所有的键物化为 3D 场景中的三角形并对其进行索引。查找通过向场景中发射光线并利用索引结构以硬件加速的方式检测命中来完成。虽然这种称为 RTIndeX(简称 RX)的方法确实很有前景,但目前它存在三个局限:(1)每个键的内存开销显著,(2)范围查找缓慢,以及(3)可更新性差。在这项工作中,我们表明所有这三个问题都可以通过一个单一的设计变更来解决:将 RX 泛化为粗粒度索引 cgRX。cgRX 不再索引单个键,而是索引键的桶,并在检索后对桶内内容进行后过滤。这大幅降低了内存开销,生成了更小且更高效的索引结构,并实现了快速范围查找以及更新。我们将看到,要在 3D 空间中表示这些桶,使得键的查找既正确又高效,需要精心编排以特定顺序发射光线。我们的实验评估表明,cgRX 提供了最高的性价比,其相对于内存占用的吞吐量比支持范围查找的可比基线高 1.5-3 倍。同时,cgRX 将范围查找性能相较于 RX 提升了最多 2 倍,并提供了实用的可更新性,其更新速度比从零开始重建快最多 5.6 倍。

英文摘要:

In recent work, we have shown that NVIDIA's raytracing cores on RTX video cards can be exploited to realize hardware-accelerated lookups for GPU-resident database indexes. On a high level, the concept materializes all keys as triangles in a 3D scene and indexes them. Lookups are performed by firing rays into the scene and utilizing the index structure to detect hits in a hardware-accelerated fashion. While this approach called RTIndeX (or short RX) is indeed promising, it currently suffers from three limitations: (1) significant memory overhead per key, (2) slow range-lookups, and (3) poor updateability. In this work, we show that all three problems can be tackled by a single design change: Generalizing RX to become a coarse-granular index cgRX. Instead of indexing individual keys, cgRX indexes buckets of keys which are post-filtered after retrieval. This drastically reduces the memory overhead, leads to the generation of a smaller and more efficient index structure, and enables fast range-lookups as well as updates. We will see that representing the buckets in the 3D space such that the lookup of a key is performed both correctly and efficiently requires the careful orchestration of firing rays in a specific sequence. Our experimental evaluation shows that cgRX offers the most bang for the buck(et) by providing a throughput in relation to the memory footprint that is 1.5-3x higher than for the comparable range-lookup supporting baselines. At the same time, cgRX improves the range-lookup performance over RX by up to 2x and offers practical updateability that is up to 5.6x faster than rebuilding from scratch.

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

↑