Data Processing with FPGAs on Modern Architectures

Wenqi Jiang, Wenqi Jiang 0001, Dario Korolija, Gustavo Alonso

Abstract

As general-purpose CPUs struggle to keep pace with the data demands of the cloud era, Field-Programmable Gate Arrays (FPGAs) are emerging as a vital "middle ground" between fixed-function ASICs and flexible CPUs. This paper, presented at SIGMOD '23, outlines how FPGAs enable "line-rate" data processing and architectural flexibility, offering order-of-magnitude speedups for tasks like vector search and recommendation systems.

Introduction

For decades, the database community relied on the steady performance gains of general-purpose CPUs. However, we have entered an era where CPUs can no longer meet the strict Service Level Agreements (SLAs) required by massive-scale applications. The authors identify three major shifts driving the adoption of specialized hardware: the end of CPU dominance due to data movement inefficiencies, the rise of cloud-native specialization where providers manage hardware complexity, and the critical need to process data "close to the source" to avoid traditional architecture bottlenecks.

Architectural Approaches and Methodology

The paper bridges the gap between software-defined data management and hardware-defined acceleration through several key concepts:

  • Spatial Computing: Unlike the temporal execution of CPUs, FPGAs allow developers to program the hardware layout itself, matching the data flow for massive parallelism.
  • High-Level Synthesis (HLS): Modern tools allow programming FPGAs using C/C++ and pragmas, lowering the barrier to entry compared to low-level hardware description languages.
  • Bump-on-the-wire Design: FPGAs can be placed directly in the data path (e.g., between network and memory), enabling "line-rate" processing with minimal latency.
The software ecosystem and libraries supporting heterogeneous acceleration at the ETHZ-HACC.

The authors highlight the ETHZ-HACC (AMD Heterogeneous Acceleration Computing Clusters), a resource designed to help researchers experiment with distributed FPGA systems using a robust software stack including libraries like ACCL and the Coyote shell.

Key Insights: Memory-Bound Acceleration

A central insight is that FPGAs excel in memory-bound tasks where GPUs often struggle. Because FPGAs feature High Bandwidth Memory (HBM) and can access on-chip SRAM in a single clock cycle, they are ideal for "random access" heavy tasks like table lookups in recommendation systems.

FPGA-based architecture for recommendation inference (MicroRec), optimizing memory access across on-chip buffers and off-chip HBM/DRAM.

By "breaking" traditional system layers, FPGAs allow for offloading operators directly into the memory controller or network stack. This enables filtering data before it ever reaches the host CPU, maintaining high throughput (e.g., 100 Gbps) without the overhead of CPU interrupts.

Case Studies and Performance Results

The paper evaluates FPGA performance across several domains:

  • Recommendation Systems (MicroRec/FleetRec): Utilizing massive memory parallelism, these systems achieved a one-order-of-magnitude speedup over traditional CPUs for inference tasks using Alibaba recommendation models.
  • Vector Search (FANNS): Evaluated on the SIFT100M dataset, FPGAs demonstrated the ability to handle billion-scale Approximate Nearest Neighbor Search (ANNS) with high recall and low latency.
  • Collective Communications (ACCL): The introduction of an MPI-like library for FPGAs proved that FPGA clusters can perform collective operations (like all-reduce) as efficiently as high-end CPU clusters.

Limitations and Future Outlook

Despite these gains, challenges remain. Programming FPGAs still requires a deep understanding of hardware constraints, even with HLS. Integrating these accelerators into existing database engines like PostgreSQL or Spark without total rewrites is a major hurdle. Furthermore, multi-tenancy and virtualization of FPGAs in cloud environments are ongoing areas of research focused on security and performance isolation.

Summary updated

BibTeX
@inproceedings{jiang2023data,
  author = {Wenqi Jiang and Wenqi Jiang and Dario Korolija and Gustavo Alonso},
  title = {{Data Processing with FPGAs on Modern Architectures}},
  booktitle = {Sigmod Conference Companion},
  year = {2023},
  doi = {10.1145/3555041.3589410},
}
Figure