[Paper Review] High-Speed Query Processing over High-Speed Networks
This paper presents a hybrid parallel query execution engine that leverages RDMA and low-latency network scheduling to overcome TCP overheads, switch contention, and load imbalance in high-speed InfiniBand clusters. By decoupling local and distributed parallelism and using a novel communication multiplexer, it achieves a 3.5× speedup on TPC-H at scale factor 100 across six servers, enabling true high-speed query processing over modern high-bandwidth networks.
Modern database clusters entail two levels of networks: connecting CPUs and NUMA regions inside a single server in the small and multiple servers in the large. The huge performance gap between these two types of networks used to slow down distributed query processing to such an extent that a cluster of machines actually performed worse than a single many-core server. The increased main-memory capacity of the cluster remained the sole benefit of such a scale-out. The economic viability of high-speed interconnects such as InfiniBand has narrowed this performance gap considerably. However, InfiniBand's higher network bandwidth alone does not improve query performance as expected when the distributed query engine is left unchanged. The scalability of distributed query processing is impaired by TCP overheads, switch contention due to uncoordinated communication, and load imbalances resulting from the inflexibility of the classic exchange operator model. This paper presents the blueprint for a distributed query engine that addresses these problems by considering both levels of networks holistically. It consists of two parts: First, hybrid parallelism that distinguishes local and distributed parallelism for better scalability in both the number of cores as well as servers. Second, a novel communication multiplexer tailored for analytical database workloads using remote direct memory access (RDMA) and low-latency network scheduling for high-speed communication with almost no CPU overhead. An extensive evaluation within the HyPer database system using the TPC-H benchmark shows that our holistic approach indeed enables high-speed query processing over high-speed networks.
Motivation & Objective
- To address the performance degradation in distributed query processing caused by TCP overheads, switch contention, and load imbalance in high-speed clusters.
- To overcome the scalability limitations of classic exchange operators in NUMA and multi-server environments.
- To enable high-speed query processing over high-bandwidth InfiniBand networks by rearchitecting the distributed query engine.
- To demonstrate that hardware advancements alone are insufficient without corresponding software optimizations for scalable analytical workloads.
- To design a communication multiplexer that minimizes CPU overhead and enables efficient RDMA-based data transfer across multiple network levels.
Proposed method
- Introduces hybrid parallelism that distinguishes between local morsel-driven parallelism within a server and decoupled exchange operators for inter-server communication.
- Employs a novel communication multiplexer that uses RDMA for zero-copy data transfers and reduces CPU overhead to near zero.
- Applies low-latency network scheduling to dynamically balance data flow and avoid switch contention in high-speed InfiniBand networks.
- Uses a round-robin scheduling strategy inspired by NUMA-aware data shuffling to minimize synchronization costs.
- Implements a two-level network-aware design that treats intra-server (QPI) and inter-server (InfiniBand) networks as distinct but coordinated communication layers.
- Evaluates the system within the HyPer in-memory database using the TPC-H benchmark across varying cluster sizes and core counts.
Experimental results
Research questions
- RQ1Can a distributed query engine achieve linear scalability across multiple high-bandwidth servers when using RDMA and optimized scheduling?
- RQ2How does hybrid parallelism—separating local and distributed parallelism—improve scalability compared to monolithic exchange operators?
- RQ3To what extent do TCP/IP overheads and switch contention limit performance on high-speed networks like InfiniBand?
- RQ4Can low-latency network scheduling with sub-millisecond response times effectively mitigate switch contention in high-throughput analytical workloads?
- RQ5Does a holistic design that coordinates both intra-server and inter-server communication layers unlock the full potential of modern high-memory, high-bandwidth clusters?
Key findings
- The proposed hybrid parallelism achieves a 3.5× speedup over a single server when scaling to six servers on TPC-H at scale factor 100, significantly outperforming traditional exchange operators.
- Using RDMA reduces CPU overhead to nearly zero, eliminating the performance bottleneck caused by TCP processing and memory bus traffic.
- Switch contention severely limits performance on high-speed networks unless addressed with fast, application-level scheduling; the proposed scheduler reacts in microseconds to prevent congestion.
- The performance gap between single-server and cluster-based query processing is closed by combining RDMA with intelligent network scheduling and hybrid parallelism.
- The system achieves near-ideal scalability on InfiniBand 4× QDR, demonstrating that hardware bandwidth alone is insufficient without software-level optimization.
- The evaluation shows that even with 32× higher bandwidth than Gigabit Ethernet, performance degrades without RDMA and scheduling—highlighting the need for full-stack optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.