Fine-Grained Tuple Transfer for Pipelined Query Execution on CPU-GPU Coprocessor

Zhenhua Yang, Qingfeng Pan, Chen Xu

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations

Abstract

To leverage the massively parallel capability of GPU for query execution, GPU databases have been studied for over a decade. Recently, researchers proposed to execute queries with both CPU and GPU in a pipelined approach. In the pipelined query execution, the cross-processor tuple transfer plays a crucial role for the overall query execution performance. The state-of-the-art solution achieves cross-processor tuple transfer using a queue-like data structure. However, it is coarse-grained due to the use of a single spin lock to achieve thread-safety. This design causes performance issues as it prevents the threads from accessing the queue simultaneously. In this paper, we propose a fine-grained tuple transfer mechanism. It employs decoupled enqueue/dequeue to enable two threads on different processors to access the queue at the same time. Moreover, this mechanism explores subqueue-based locking to enable the threads on the same processor to access the queue at the same time. In particular, we implement a prototype system, namely π QC, which adopts fine-grained tuple transfer. Our experiments show that π QC achieves an order of magnitude better performance than existing GPU databases such as HeavyDB.

Original languageEnglish
Title of host publicationDatabase Systems for Advanced Applications - 28th International Conference, DASFAA 2023, Proceedings
EditorsXin Wang, Maria Luisa Sapino, Wook-Shin Han, Amr El Abbadi, Gill Dobbie, Zhiyong Feng, Yingxiao Shao, Hongzhi Yin
PublisherSpringer Science and Business Media Deutschland GmbH
Pages19-34
Number of pages16
ISBN (Print)9783031306365
DOIs
StatePublished - 2023
Event28th International Conference on Database Systems for Advanced Applications, DASFAA 2023 - Tianjin, China
Duration: 17 Apr 202320 Apr 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13943 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference28th International Conference on Database Systems for Advanced Applications, DASFAA 2023
Country/TerritoryChina
CityTianjin
Period17/04/2320/04/23

Keywords

  • GPU Database
  • Pipelined Execution
  • Tuple Transfer

Fingerprint

Dive into the research topics of 'Fine-Grained Tuple Transfer for Pipelined Query Execution on CPU-GPU Coprocessor'. Together they form a unique fingerprint.

Cite this