再论耦合CPU-GPU体系结构上的Hash连接协同处理
Revisiting Co-Processing for Hash Joins on the Coupled CPU-GPU Architecture
摘要:
在图形处理器(GPU)上进行查询协同处理已成为提高内存数据库性能的有效手段。然而,PCI-e总线的相对低的带宽和高延迟通常是协处理的瓶颈问题。最近,耦合的CPU-GPU架构受到了很多关注,例如,AMD APU将CPU和GPU集成到单个芯片中。这为优化查询协同处理提供了新的机会。在本文中,我们实验重温哈希连接,最重要的连接算法之一的主存数据库,在一个耦合的CPU-GPU架构。特别是,我们研究了细粒度的协同处理机制的散列连接和不分区。协同处理勾勒出一个有趣的设计空间。我们扩展了现有的成本模型,以自动指导设计空间的决策。我们在最新的AMD APU上的实验结果表明:(1)耦合架构能够实现细粒度的协处理和缓存重用,这在分立的CPU-GPU架构上是低效的;(2)成本模型可以自动指导设计和设计空间中的调整旋钮;(3)细粒度协处理比仅CPU、仅GPU和传统CPU-GPU协处理分别实现高达53%、35%和28%的性能提升。我们相信,从这项研究的见解和影响是初步的,但重要的是进一步研究耦合CPU-GPU架构上的查询协同处理。
英文摘要:
Query co-processing on graphics processors (GPUs) has become an effective means to improve the performance of main memory databases. However, the relatively low bandwidth and high latency of the PCI-e bus are usually bottleneck issues for co-processing. Recently, coupled CPU-GPU architectures have received a lot of attention, e.g. AMD APUs with the CPU and the GPU integrated into a single chip. That opens up new opportunities for optimizing query co-processing. In this paper, we experimentally revisit hash joins, one of the most important join algorithms for main memory databases, on a coupled CPU-GPU architecture. Particularly, we study the fine-grained co-processing mechanisms on hash joins with and without partitioning. The co-processing outlines an interesting design space. We extend existing cost models to automatically guide decisions on the design space. Our experimental results on a recent AMD APU show that (1) the coupled architecture enables fine-grained co-processing and cache reuses, which are inefficient on discrete CPU-GPU architectures; (2) the cost model can automatically guide the design and tuning knobs in the design space; (3) fine-grained co-processing achieves up to 53%, 35% and 28% performance improvement over CPU-only, GPU-only and conventional CPU-GPU co-processing, respectively. We believe that the insights and implications from this study are initial yet important for further research on query co-processing on coupled CPU-GPU architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。