An adaptive data prefetching scheme for biosequence database search on reconfigurable platforms

Xiandong Meng, Vipin ChaudharySAC 2007

TL;DR

This paper tackles the bottleneck of data transfer between host systems and FPGAs for biosequence database searches. They introduce an adaptive data prefetching scheme that dynamically adjusts buffer sizes based on query length, significantly reducing communication latency and boosting overall performance.

What Problem Does This Paper Address?

The explosive growth of biological sequence data (DNA, protein) has made searching these databases a critical task in bioinformatics. While FPGAs offer substantial computational speedups for algorithms like Smith-Waterman (used for sequence alignment), their effectiveness is often hampered by the slow data transfer rates between the host computer and the FPGA via the PCI bus. This communication bottleneck can negate the computational gains, leaving the FPGA idle while waiting for data. The paper aims to overcome this by optimizing how data is prefetched to the FPGA.

Methods

The core of the paper's contribution is an adaptive data prefetching scheme. This approach moves beyond static prefetching by dynamically adjusting the size of the data buffer prefetched to the FPGA. The key idea is to profile the execution time of the Smith-Waterman algorithm and analyze the contributions of database loading, FPGA processing, and communication latencies.

Based on this analysis, they developed a query-length-dependent prefetching strategy:

  • Short queries benefit from smaller prefetch buffers to minimize loading delays.
  • Long queries require larger buffers to keep the FPGA busy.

This adaptive strategy aims to create a seamless overlap between data loading on the host and processing on the FPGA, effectively hiding the communication latency. They also leverage DMA transfers for efficient block data movement and employ a double-buffering technique to allow concurrent data transfer and processing.

Datasets

The paper evaluates their scheme using a 1 GB protein database (nr database) containing 936,896,903 characters across 2,739,534 sequences. They tested with various query sequence lengths, specifically mentioning 119, 714, and 1420 characters.

Key Insights and Ideas

  • Communication is the Achilles' Heel: The paper strongly emphasizes that even with powerful reconfigurable hardware like FPGAs, the communication overhead between the host and the FPGA can be the primary performance limiter.
  • Adaptability is Crucial: A one-size-fits-all prefetching strategy is insufficient. The optimal buffer size for data prefetching is highly dependent on the characteristics of the input data, particularly the query sequence length in this case.
  • Query Length Dictates Buffer Size: The relationship between query length and the required prefetch buffer size is not linear but has a "stair function" characteristic, suggesting distinct thresholds where buffer size needs to increase.
  • Overlapping is Key: The success of the adaptive prefetching scheme hinges on effectively overlapping computation (on the FPGA) with communication (data transfer from host).

Key Results

The adaptive data prefetching scheme demonstrated significant performance improvements:

  • Overall performance increase: Achieved a 42% performance increase for short query sequences (length 119) compared to FPGA processing without prefetching.
  • Improvements for longer queries: Showed a 21% and 16% improvement for query sizes of 714 and 1420 characters, respectively.
  • Speedup over PC: The FPGA with adaptive prefetching achieved speedups of 62x, 100x, and 110x compared to a standard PC for the tested query lengths.
  • Elimination of side effects: The adaptive scheme effectively eliminated performance drawbacks observed with static buffer sizes, particularly at the boundaries (very small or very large buffers).

Limitations and Future Work

  • Limitations: The paper notes that static or improper buffer sizes can lead to performance degradation and increased communication overhead. The "stair function" for buffer size is based on their experimental findings, implying it might be specific to their hardware and dataset.
  • Future Work: While not explicitly detailed, the success of this adaptive scheme suggests further exploration into more sophisticated profiling and dynamic adaptation techniques for other reconfigurable computing applications. The authors also mention the need for techniques to reduce communication latencies for high FPGA utilization, implying ongoing research in this area.

Summary updated

BibTeX
@inproceedings{meng2007adaptive,
  author = {Xiandong Meng and Vipin Chaudhary},
  title = {{An adaptive data prefetching scheme for biosequence database search on reconfigurable platforms}},
  booktitle = {SAC},
  year = {2007},
  doi = {10.1145/1244002.1244036},
}
Figure