• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2020, Vol. 42 ›› Issue (12): 2169-2178.

• 高性能计算 • 上一篇    下一篇

面向数据库查询加速的异构体系结构设计与实现

李仁刚1,2,任智新1,黄广奎1,孙颉1,王峰1,张闯1,2


  

  1. (1.浪潮电子信息产业股份有限公司,山东 济南 250013;2.高效能服务器和存储技术国家重点实验室,山东 济南 250013)

  • 收稿日期:2020-04-11 修回日期:2020-06-17 接受日期:2020-12-25 出版日期:2020-12-25 发布日期:2021-01-05

Design and implementation of heterogeneous architecture for database query acceleration#br#
#br#

LI Ren-gang1,2,REN Zhi-xin1,HUANG Guang-kui1,SUN Jie1,WANG Feng1,ZHANG Chuang1,2 #br#   

  1. (1.Inspur Electronic Information Industry Co.,Ltd.,Jinan 250013;

    2.State Key Laboratory of High-end Server & Storage Technology,Jinan 250013,China )
  • Received:2020-04-11 Revised:2020-06-17 Accepted:2020-12-25 Online:2020-12-25 Published:2021-01-05

摘要: 数据库是数据分析、人工智能、云计算和大数据等领域的关键工作负载,是提高系统整体性能的关键。传统数据库系统查询执行效率偏低,并且CPU通常需要优先处理事务性负载,使数据查询逐渐成为制约整个数据库系统性能和效率提升的瓶颈。为了提高数据库在大规模并发访问时的数据处理能力,提出了一种CPU+FPGA加速数据库查询的异构体系结构,通过使用异构缓存一致性加速接口将加速器集成到CPU中,在FPGA内定制可配置的多引擎查询方式,对数据库查询进行加速。聚焦常用的SQL查询语句SELECT,详细分析了系统在延迟和简化的软件堆栈方面的优势,最后使用浪潮F37X加速卡和浪潮服务器对加速模型功能和性能进行了验证。实验结果表明,与使用POWER 9 CPU进行同样的查询操作相比,数据库系统整体处理速度提高了3~9倍,这种先进的异构计算加速结构可应用在未来数据库硬件专业化的设计中。


关键词: 数据库查询, 异构计算, 异构体系结构, 异构缓存一致性, PostgreSQL

Abstract: Database is a key workload in data analysis, artificial intelligence, cloud computing, big data, and other fields, and it is the key to improving the overall performance of the system. The query execution efficiency of traditional database systems is low, and the CPU usually needs to process tran- saction loads first, so that data query becomes a bottleneck that restricts the performance and efficiency of the entire system. In order to improve the systems ability of supporting large-scale data and high- intensity instantaneous concurrent access, a CPU+FPGA heterogeneous architecture is proposed to accelerate database queries. The accelerator is integrated into the CPU by using coherent acceleration processor interfaces. The way of customizing multi-engine configurable query logic in FPGA accelerates database query. The commonly used SQL query statement SELECT is focused on, and the advantages of the system in terms of latency and simplified software stack are analyzed in detail. Finally, the Inspur F37X acceleration card and Inspur server were used to verify the function and performance of the acceleration model. The test results show that, compared with the latest CPU-based query method, the proposal increase the overall processing speed by 3 to 9 times. The accelerated structure of structural computing can be applied in the design of database hardware specialization in the future.




Key words: database query, heterogeneous acceleration, heterogeneous architecture, coherent accele- ration processor interface, Postgre SQL