SRSPG: A Plugin-based Spark Framework for Large-scale RDF Streams Processing on GPU

Zhiyong Feng, Tenglong Ren, Guozheng Rao, Xiaowang Zhang, Zhiyong Feng 0002

Abstract

The explosion of real-time linked data requires highly scalable Resource Description Framework (RDF) Stream Processing (RSP) engines. Traditional centralized systems often fail to manage massive data volumes. This paper introduces SRSPG, a plugin-based framework that leverages Apache Spark for distributed processing and GPUs for massive parallelism. By implementing query splitting and custom resource management, SRSPG achieves significant performance gains over existing centralized engines, particularly as data scale increases.

Introduction

RDF streams are critical for real-time applications such as smart city monitoring and traffic management. However, established RSP engines like C-SPARQL and CQELS are typically centralized and struggle with the volume of modern data streams. While Apache Spark provides a distributed solution and GPUs offer high-throughput parallel computation, integrating them effectively is challenging due to the mismatch between Spark's multi-threaded scheduling and GPU execution models. SRSPG addresses these challenges by providing a unified, scalable framework.

The SRSPG Framework

SRSPG (Spark Framework for Large-scale RDF Streams Processing on GPU) utilizes a plugin-based architecture, allowing for the integration of various SPARQL engines like gStore or RDF-3X.

The SRSPG system architecture, highlighting the interaction between Spark and the GPU-based Computation Module.

The framework consists of three primary technical innovations:

  1. Query Splitting: SPARQL queries are decomposed into sub-queries. Predicates are assigned weights based on their frequency in the RDF graph, enabling the system to optimize execution plans by prioritizing high-impact predicates.
  2. Spark-based Parallel Join: This custom algorithm offloads data table joins to the GPU, utilizing its parallel processing capabilities for heavy computational tasks.
  3. Compute Resource Management: This component acts as the system's orchestrator, balancing tasks between CPU/Memory and GPU resources to prevent contention and ensure efficient hardware utilization.

Experimental Evaluation

The performance of SRSPG was evaluated using the Lehigh University Benchmark (LUBM), a standard for semantic web repositories. Testing focused on query response times for standard queries (Q1 and Q2) across varying data sizes on a server with an NVIDIA GTX590 GPU.

Query response times for Q1 and Q2 across different data sizes, comparing SRSPG (gStore-GPU) with other engines.

Key Results

The evaluation revealed that the GPU-accelerated version of the gStore engine (gStore-GPU) significantly outperformed traditional engines. For large-scale streams, gStore-GPU achieved a speedup of more than two times compared to the RDF-3X engine.

A critical finding was the relationship between data scale and acceleration. For smaller datasets, the overhead of transferring data between system memory and GPU memory can negate the performance benefits. However, as the RDF stream grows, the GPU's parallel processing power increasingly outweighs this communication cost, making SRSPG highly effective for large-scale real-time processing.

Discussion and Future Work

While SRSPG demonstrates clear advantages for large-scale data, the CPU-GPU communication bottleneck remains a primary limitation. Future research will explore the use of specialized hardware, such as Field-Programmable Gate Arrays (FPGAs), to further mitigate latency and enhance the efficiency of large-scale RDF stream processing.

Conclusion

SRSPG successfully bridges the gap between distributed big data frameworks and high-performance GPU computing for RDF streams. By intelligently managing resources and optimizing query execution, it provides a scalable path forward for real-time linked data applications.

Summary updated

BibTeX
@inproceedings{feng2019srspg,
  author = {Zhiyong Feng and Tenglong Ren and Guozheng Rao and Xiaowang Zhang and Zhiyong Feng},
  title = {{SRSPG: A Plugin-based Spark Framework for Large-scale RDF Streams Processing on GPU}},
  booktitle = {Iswc (satellites)},
  year = {2019},
}
Figure