2016 IEEE 24th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM) (2016)
Washington, DC, USA
May 1, 2016 to May 3, 2016
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/FCCM.2016.61
Relational databases execute user queries through operator trees, where each operator has a well defined interface and a specific task (e.g., arithmetic function, pattern matching, aggregation, etc.). Hardware acceleration of compute intensive operators is a promising prospect but it comes with challenges. Databases execute tens of thousands of different queries per second. Thus, if only one specific instantiation of an operator is supported by the accelerator, it will have little effect on the overall workload. In this paper we explore the tradeoff between resource efficiency and expression complexity for an FPGA accelerator targeting string-matching operators (LIKE and REGEXP_LIKE in SQL). This tradeoff is complex. For instance, the FPGA not always wins: simple queries that can be answered from indexes run faster on the CPU. On complex regular expressions, the FPGA is faster but needs to be parametrized at runtime to be able to support different queries. For very long patterns, the entire expression might not fit into the FPGA circuit and a combined mode CPU-FPGA must be chosen. We evaluate our design on a heterogeneous multi-core machine in which the FPGA has cache coherent access to the CPU memory. In addition to the string matching circuit, we also show how to implement database page parsing logic so as to be able to work directly on the same memory data structures as the database engine.
Field programmable gate arrays, Databases, Software, Runtime, Hardware, Computer architecture, Sockets,Runtime parametrization, Regular expressions, Database operators
Zsolt Istvan, David Sidler, Gustavo Alonso, "Runtime Parameterizable Regular Expression Operators for Databases", 2016 IEEE 24th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), vol. 00, no. , pp. 204-211, 2016, doi:10.1109/FCCM.2016.61