arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.14038cs.DBcs.DC
收藏

GSmart:一个使用稀疏矩阵代数的高效SPARQL查询引擎--完整版

GSmart: An Efficient SPARQL Query Engine Using Sparse Matrix Algebra -- Full Version

Yuedan Chen, M. Tamer Özsu, Guoqing Xiao, Zhuo Tang, Kenli Li

摘要:

由于越来越多地使用RDF对数据进行编码,在大型RDF数据集上高效执行SPARQL查询是一个非常有趣的话题。大多数工作都遵循关系或基于图的方法。在本文中,我们提出了一种替代查询引擎,称为gSmart,基于矩阵代数。这种方法可以潜在地更好地利用我们所针对的高性能异构体系结构的计算能力。gSmart包括:(1)基于分组关联边的SPARQL查询评估,其中使用一系列矩阵运算一起评估顶点的所有未评估边,以充分利用查询约束并缩小解空间;(2)图查询规划器,确定查询图中顶点的评估顺序;(3)存储和计算高效的数据结构,包括用于RDF数据的轻量稀疏矩阵(LSpM)存储和用于评估结果的基于树的表示;(4)多级数据划分器,用于将基于事件边的查询评估映射到异构HPC体系结构中并开发多级并行性;以及(5)并行执行器,其使用细粒度处理方案、预修剪技术以及树修剪技术,以降低节点间通信并实现高吞吐量。gSmart在CPU+GPU HPC架构上的评估显示,与单节点机器上现有的SPARQL查询引擎相比,执行时间加速高达46920.00倍。此外,天河一号A超级计算机上的gSmart从2个CPU+GPU节点扩展到16个节点,最大加速比为6.90倍。

英文摘要:

Efficient execution of SPARQL queries over large RDF datasets is a topic of considerable interest due to increased use of RDF to encode data. Most of this work has followed either relational or graph-based approaches. In this paper, we propose an alternative query engine, called gSmart, based on matrix algebra. This approach can potentially better exploit the computing power of high-performance heterogeneous architectures that we target. gSmart incorporates: (1) grouped incident edge-based SPARQL query evaluation, in which all unevaluated edges of a vertex are evaluated together using a series of matrix operations to fully utilize query constraints and narrow down the solution space; (2) a graph query planner that determines the order in which vertices in query graphs should be evaluated; (3) memory- and computation-efficient data structures including the light-weight sparse matrix (LSpM) storage for RDF data and the tree-based representation for evaluation results; (4) a multi-stage data partitioner to map the incident edge-based query evaluation into heterogeneous HPC architectures and develop multi-level parallelism; and (5) a parallel executor that uses the fine-grained processing scheme, pre-pruning technique, and tree-pruning technique to lower inter-node communication and enable high throughput. Evaluations of gSmart on a CPU+GPU HPC architecture show execution time speedups of up to 46920.00x compared to the existing SPARQL query engines on a single node machine. Additionally, gSmart on the Tianhe-1A supercomputer achieves a maximum speedup of 6.90x scaling from 2 to 16 CPU+GPU nodes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑