Skip to main content
QUICK REVIEW

[Paper Review] MapSQ: A MapReduce-based Framework for SPARQL Queries on GPU

Jiaying Feng, Xiaowang Zhang|arXiv (Cornell University)|Feb 12, 2017
Semantic Web and OntologiesComputer Science4 references6 citations
TL;DR

MapSQ is a GPU-accelerated, MapReduce-based framework for efficient SPARQL query processing on large-scale RDF datasets. It leverages GPU parallelism for MapReduce-style joins and a CPU-GPU coprocessing model, achieving up to 50% speedup over CPU-based engines like gStore and gStoreD.

ABSTRACT

In this paper, we present a MapReduce-based framework for evaluating SPARQL queries on GPU (named MapSQ) to large-scale RDF datesets efficiently by applying both high performance. Firstly, we develop a MapReduce-based Join algorithm to handle SPARQL queries in a parallel way. Secondly, we present a coprocessing strategy to manage the process of evaluating queries where CPU is used to assigns subqueries and GPU is used to compute the join of subqueries. Finally, we implement our proposed framework and evaluate our proposal by comparing with two popular and latest SPARQL query engines gStore and gStoreD on the LUBM benchmark. The experiments demonstrate that our proposal MapSQ is highly efficient and effective (up to 50% speedup).

Motivation & Objective

  • Address the growing performance bottleneck in processing large-scale SPARQL queries on CPU-only architectures.
  • Leverage GPU parallelism to accelerate the computationally intensive join operations in SPARQL query evaluation.
  • Design a hybrid CPU-GPU architecture where CPU manages query decomposition and GPU accelerates result joining.
  • Improve efficiency and scalability of SPARQL query processing for large RDF workloads using modern heterogeneous computing.

Proposed method

  • Design a MapReduce-based join algorithm on GPU to process intermediate results from SPARQL triple patterns in parallel.
  • Use flag-based labeling (LEFT/RIGHT) during the Map phase to enable efficient duplicate reduction in the Reduce phase.
  • Implement a coprocessing strategy where the CPU dispatches subqueries and the GPU performs the join computation using GPU-optimized MapReduce.
  • Integrate the framework with gStore and gStoreD as backend engines for RDF storage and initial partial matching.
  • Apply GPU Single Instruction Multiple Data (SIMD) architecture to accelerate Cartesian product operations during join processing.
  • Structure the framework into two phases: (1) CPU-based partial matching of triple patterns, and (2) GPU-accelerated MapReduce join of results.

Experimental results

Research questions

  • RQ1Can a GPU-accelerated MapReduce framework significantly improve the performance of SPARQL query evaluation on large RDF datasets?
  • RQ2How does the performance of a GPU-based MapReduce join compare to traditional CPU-based join algorithms in SPARQL engines?
  • RQ3To what extent can a hybrid CPU-GPU architecture reduce end-to-end query response time for complex SPARQL queries?
  • RQ4Does the proposed framework scale effectively with increasing dataset size and query complexity?

Key findings

  • MapSQ achieved up to 50% speedup in query response time compared to gStore on the LUBM benchmark.
  • For query Q4, MapSQ reduced response time from 635 ms (gStore) to 339 ms, representing a 46.6% improvement.
  • The framework outperformed gStoreD across all five benchmark queries, with speedups ranging from 1.15× to 2.05×.
  • The performance gain was most significant on complex queries with large intermediate result sets, highlighting GPU scalability.
  • The MapReduce-based join algorithm on GPU reduced join time more effectively than the native CPU-based join in gStore and gStoreD.
  • The coprocessing model effectively offloaded compute-intensive join operations to the GPU, minimizing CPU overhead and maximizing throughput.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.