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

为异构处理器上的高效查询执行生成自定义代码

Generating Custom Code for Efficient Query Execution on Heterogeneous Processors

Sebastian Breß, Bastian Köcher, Henning Funke, Tilmann Rabl, Volker Markl

摘要:

处理器制造商构建越来越专用的处理器,以减轻电源墙的影响,从而提高性能。目前,数据库引擎是为每个处理器手动优化的:这是一个成本高昂且容易出错的过程。在本文中,我们提出的概念,使数据库引擎自动执行每处理器优化。我们的核心思想是创建生成代码的变体,并为每个处理器学习快速变体。我们通过修改并行化策略、专门化数据结构和应用不同的代码转换来创建变体。我们的实验结果表明,变体的性能可能会偏离两个数量级。因此,我们需要为每个处理器生成自定义代码,以实现峰值性能。我们表明,我们的方法为多核CPU,GPU和MIC找到了一个快速的自定义变体。

英文摘要:

Processor manufacturers build increasingly specialized processors to mitigate the effects of the power wall to deliver improved performance. Currently, database engines are manually optimized for each processor: A costly and error prone process. In this paper, we propose concepts to enable the database engine to perform per-processor optimization automatically. Our core idea is to create variants of generated code and to learn a fast variant for each processor. We create variants by modifying parallelization strategies, specializing data structures, and applying different code transformations. Our experimental results show that the performance of variants may diverge up to two orders of magnitude. Therefore, we need to generate custom code for each processor to achieve peak performance. We show that our approach finds a fast custom variant for multi-core CPUs, GPUs, and MICs.

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

↑