Abstract
Bitmap indexes are essential for high-performance big data analytics but suffer from significant creation overhead. This paper presents BIC64K8 and BIC32K16, FPGA-based hardware accelerators designed to expedite bitmap index creation. By employing a bit-sliced memory loading technique and massive parallelism, these accelerators achieve a throughput of approximately 1.45 GB/s. Crucially, they reduce energy consumption to less than 7% of traditional CPU or GPU-based alternatives, offering a sustainable solution for large-scale data processing.
Introduction
In Online Analytical Processing (OLAP), Bitmap Indexes (BI) are a cornerstone for executing complex multi-dimensional queries efficiently. By representing data as a bit-level matrix, operations like "find all customers of a certain age in a specific region" can be reduced to simple, high-speed bitwise logic (AND, OR, NOT).
Despite their query-time efficiency, the initial creation of these indexes is a major bottleneck as data volumes scale into the zettabyte range. While general-purpose processors like CPUs and GPUs are often used, they struggle to fully exploit bit-level parallelism and are frequently limited by high power consumption.
Proposed Architecture: The BI Creator (BIC)
To address these challenges, this research introduces a dedicated "BI Creator" (BIC) implemented on Field-Programmable Gate Arrays (FPGAs). The architecture is designed to maximize throughput while minimizing energy overhead.
Key Components
The BIC architecture consists of four primary modules:
- Direct Memory Access (DMA): Facilitates high-speed data retrieval from DDR3 memory, reaching speeds up to 25.6 Gbps.
- RAM-based Content-Addressable Memory (R-CAM): Unlike standard memory, the R-CAM identifies the storage location of specific data inputs. The authors implemented an enhanced R-CAM using a "bit-sliced" technique, allowing 32 values to be loaded simultaneously to match the 256-bit system bus.
- Instruction Memory (IM): Stores query-specific operations, such as range-based filters.
- Query Logic Array (QLA): A massive parallel array of logic gates that processes R-CAM outputs to generate the final bitmap.
Two specific implementations were evaluated: BIC64K8 (optimized for 8-bit data with a 65,536-word capacity) and BIC32K16 (optimized for 16-bit data with a 32,768-word capacity).
Experimental Evaluation
The accelerators were tested using synthetic datasets based on the TPC-H database benchmark. Specifically, the CUSTOMER and LINEITEM tables were used to simulate real-world data distributions. Attributes with varying cardinalities, such as c_nationkey (256) and l_suppkey (65,536), were used to stress-test the BIC64K8 and BIC32K16 variants respectively.
Results and Discussion
The FPGA-based approach demonstrated significant advantages in both performance and efficiency:
- Throughput: Operating at a clock speed of 100 MHz on an Intel Arria V FPGA, the BIC64K8 achieved 1.43 GB/s, while the BIC32K16 reached 1.46 GB/s.
- Energy Efficiency: The BIC32K16 consumed only 6.76% of the energy required by a CPU-based solution and just 3.28% of the energy used by a GPU-based solution for the same task.
- Deterministic Performance: Unlike software-based solutions, the FPGA's throughput remained stable regardless of data distribution or dataset size.
The "bit-sliced" loading approach proved to be a critical innovation, enabling the hardware to ingest data at the full width of the system bus and making the update process 32 times faster than traditional serial methods.
Conclusion
The proposed FPGA-based BIC provides a highly efficient alternative for bitmap index creation in big data environments. While current designs are limited by FPGA on-chip memory (M10K blocks) and routing congestion at high scales, future iterations utilizing High Bandwidth Memory (HBM) could potentially push throughput toward 1 TB/s. This work underscores the potential of domain-specific hardware to provide sustainable, high-performance solutions for modern data analytics.
Summary updated