SQL2FPGA: Automatic Acceleration of SQL Query Processing on Modern CPU-FPGA Platforms

被引:1
|
作者
Lu, Alec [1 ]
Fang, Zhenman [1 ]
机构
[1] Simon Fraser Univ, Sch Engn Sci, Burnaby, BC, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
D O I
10.1109/FCCM57271.2023.00028
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Today's big data query engines are constantly under pressure to keep up with the rapidly increasing demand for faster processing of more complex workloads. In the past few years, FPGA-based database acceleration efforts have demonstrated promising performance improvement with good energy efficiency. However, few studies target the programming and design automation support to leverage the FPGA accelerator benefits in query processing. Most of them rely on the SQL query plan generated by CPU query engines and manually map the query plan onto the FPGA accelerators, which is tedious and error-prone. Moreover, such CPU-oriented query plans do not consider the utilization of FPGA accelerators and could lose more optimization opportunities. In this paper, we present SQL2FPGA, an FPGA accelerator-aware compiler to automatically map SQL queries onto the heterogeneous CPU-FPGA platforms. Our SQL2FPGA front-end takes an optimized logical plan of a SQL query from a database query engine and transforms it into a unified operator-level intermediate representation. To generate an optimized FPG-Aaware physical plan, SQL2FPGA implements a set of compiler optimization passes to 1) improve operator acceleration coverage by the FPGA, 2) eliminate redundant computation during physical execution, and 3) minimize data transfer overhead between operators on the CPU and FPGA. Finally, SQL2FPGA generates the associated query acceleration code for heterogeneous CPU-FPGA system deployment. Compared to the widely used Apache Spark SQL framework running on the CPU, SQL2FPGA-using two AMD/Xilinx HBM-based Alveo U280 FPGA boards-achieves an average performance speedup of 10.1x and 13.9x across all 22 TPC-H benchmark queries in a scale factor of 1GB (SF1) and 30GB (SF30), respectively.
引用
收藏
页码:184 / 194
页数:11
相关论文
共 45 条
  • [1] SQL2FPGA: Automated Acceleration of SQL Query Processing on Modern CPU-FPGA Platforms
    Lu, Alec
    Narendra, Jahanvi
    Fang, Zhenman
    ACM TRANSACTIONS ON RECONFIGURABLE TECHNOLOGY AND SYSTEMS, 2024, 17 (03)
  • [2] A Quantitative Analysis on Microarchitectures of Modern CPU-FPGA Platforms
    Choi, Young-Kyu
    Cong, Jason
    Fang, Zhenman
    Hao, Yuchen
    Reinman, Glenn
    Wei, Peng
    2016 ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2016,
  • [3] HYBRID FPGA-ACCELERATED SQL QUERY PROCESSING
    Woods, Louis
    Istvan, Zsolt
    Alonso, Gustavo
    2013 23RD INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE LOGIC AND APPLICATIONS (FPL 2013) PROCEEDINGS, 2013,
  • [4] Sailfish: Exploring Heterogeneous Query Acceleration on Discrete CPU-FPGA Architecture
    Wei, Xing
    Tu, Yaofeng
    Han, Yinjun
    Chen, Zhenghua
    Qi, Xuecheng
    Hua, Daojun
    2023 IEEE 39TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING WORKSHOPS, ICDEW, 2023, : 198 - 204
  • [5] FPGA-Based Dynamically Reconfigurable SQL Query Processing
    Ziener, Daniel
    Bauer, Florian
    Becher, Andreas
    Dennl, Christopher
    Meyer-Wegener, Klaus
    Schuerfeld, Ute
    Teich, Juergen
    Vogt, Joerg-Stephan
    Weber, Helmut
    ACM TRANSACTIONS ON RECONFIGURABLE TECHNOLOGY AND SYSTEMS, 2016, 9 (04)
  • [6] In-Depth Analysis on Microarchitectures of Modern Heterogeneous CPU-FPGA Platforms
    Choi, Young-Kyu
    Cong, Jason
    Fang, Zhenman
    Hao, Yuchen
    Reinman, Glenn
    Wei, Peng
    ACM TRANSACTIONS ON RECONFIGURABLE TECHNOLOGY AND SYSTEMS, 2019, 12 (01)
  • [7] AKGF: Automatic Kernel Generation for DNN on CPU-FPGA
    Dong, Dong
    Jiang, Hongxu
    Diao, Boyu
    COMPUTER JOURNAL, 2023, 67 (05): : 1619 - 1627
  • [8] Accelerating Real-Valued FFT on CPU-FPGA Platforms
    Qian, Zhuo
    Gan, Guoyou
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2024, 43 (08) : 2532 - 2536
  • [9] Accelerating Proximal Policy Optimization on CPU-FPGA Heterogeneous Platforms
    Meng, Yuan
    Kuppannagari, Sanmukh
    Prasanna, Viktor
    28TH IEEE INTERNATIONAL SYMPOSIUM ON FIELD-PROGRAMMABLE CUSTOM COMPUTING MACHINES (FCCM), 2020, : 19 - 27
  • [10] A Hybrid Approach to Cache Management in Heterogeneous CPU-FPGA Platforms
    Feng, Liang
    Sinha, Sharad
    Zhang, Wei
    Liang, Yun
    2017 IEEE/ACM INTERNATIONAL CONFERENCE ON COMPUTER-AIDED DESIGN (ICCAD), 2017, : 937 - 944