Runtime Parameterizable Regular Expression Operators for Databases
Authors:
- Zsolt IstvanZIZsolt Istvan
- David SidlerDSDavid Sidler
- Gustavo AlonsoGAGustavo Alonso
- 18 August 2016
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 204-211
Abstract
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.Keywords
This publication has 14 references indexed in Scilit:
- Hardware acceleration of database operations2014
- A Real-time Updatable FPGA-based Architecture for Fast Regular Expression MatchingProcedia Computer Science, 2014
- Fast Regular Expression Matching Using Small TCAMIEEE/ACM Transactions on Networking, 2013
- Skeleton automata for FPGAs2012
- Hardware-accelerated regular expression matching at multiple tens of Gb/s2012
- A Reconfigurable Computing System Based on a Cache-Coherent Fabric2011
- Dynamic reconfigurable bit-parallel architecture for large-scale regular expression matching2010
- Compact architecture for high-throughput regular expression matching on FPGA2008
- Scalable Pattern Matching for High Speed Networks2004
- Data page layouts for relational databases on deep memory hierarchiesThe VLDB Journal, 2002