Adaptive FPGA-based Database Accelerators – Achievements, Possibilities, and Challenges
Daniel Ziener and Jürgen Teich
Adaptive FPGA-based Database Accelerators Achievements, - - PowerPoint PPT Presentation
Adaptive FPGA-based Database Accelerators Achievements, Possibilities, and Challenges Daniel Ziener and Jrgen Teich Database Acceleration Overview Idea: Translate each SQL query into an FPGA-based accelerator circuit through run-time
Daniel Ziener and Jürgen Teich
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 2
SELECT Price, Volume FROM Trades WHERE Symbol=“UBSN“ INTO UBSTrades a: Symbol = USBN WHERE a SELECT Price, Vol.
Trades UBSTrades
W
=
S
a Trades UBSTrades FPGA DynSoC Hardware Module Library SQL query
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 3
Library > < A N D SELECT * FROM table WHERE age > 20 > SELECT * FROM table WHERE salary > 10000 AND year < 1990 PCIe
A N D
> < Data > > < A N D
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 4
Module Operator Coverage Number of Slots Throughput Restriction Arithmetic (+,-, ) Comparators (<,>,=,≠) Bitwise functions (AND, OR, NOT, XOR, ...) 2 1 Sample/Cycle Aggregation SUM(), MIN(), MAX(), COUNT() 2 1 Sample/Cycle Reorder Reorder Attributes of a tuple 4 1 Sample/Cycle Join Hash and Merge Join
Sort line for sorting 2 KB (64 KB) data 16 1 Sample/Cycle Sort tree merges sorted block
area (125 MHz x 16 Bytes)
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 5
Hash Join Merge Join Row- based Column- based
New Architecture: 12.8 GByte/s and 64 Bytes per Clock Cycle New Architecture: DDR3 Memory: 12.8 GByte/s
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 6
B L O O M
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 7
Accl@ Zynq ARM – MySQL Intel i7 – MySQL Execution time 44.2 ms 6900 ms 420 ms Overall energy 190 mJ 1.47 J 5.33 J Improvment texe 156 9.5 Improvment Energ. 7.72 27.97
Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges 8
Accl@ Zynq ARM – MySQL Intel i7 – MySQL Execution time 44.2 ms 6900 ms 420 ms Overall energy 190 mJ 1.47 J 5.33 J Improvment texe 156 9.5 Improvment Energ. 7.72 27.97 More Information: [1] D. Ziener, F. Bauer, A. Becher, C. Dennl, K. Meyer-Wegener, U. Schürfeld,
Reconfigurable SQL Query Processing. ACM Transactions on Reconfigurable Technology and Systems (TRETS), vol. 9, no. 4, Article 25, July 2016. [2] A. Becher, D. Ziener, K. Meyer-Wegener and J. Teich. A Co-Design Approach for Accelerated SQL Query Processing via FPGA-based Data Filtering. In Proceedings of 2015 International Conference on Field-Programmable Technology (FPT '15), Queenstown, New Zealand, December 7--9, 2015.
different data at the same time
9 Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges
OS support (task switching, mapping onto processing places) Easy to extend with new operators or analytic functions
10 Daniel Ziener | 07.03.2017 | Dagstuhl | FPGA-based Database Accelerators – Achievments, Possibilities, and Challenges
Library > < & Host FPGA
PCIe/ CAPI SATA
SSDs