Balanced Allocations over Efficient Queues: A Fast Relaxed FIFO Queue
Paper in proceeding, 2025

Relaxed semantics have been introduced to increase the achievable parallelism of concurrent data structures in exchange for weakening their ordering semantics. In this paper, we revisit the balanced allocations d-choice load balancing scheme in the context of relaxed FIFO queues. Our novel load balancing approach distributes operations evenly across n sub-queues based on operation counts, achieving low relaxation errors independent on the queues size, as opposed to similar earlier designs. We prove its relaxation errors to be of O (nlogloglogdn ) with high probability for a collection of possible executions. Furthermore, our scheme, contrary to previous ones, manages to interface and integrate the most performant linearizable queue designs from the literature as components. Our resulting relaxed FIFO queue is experimentally shown to outperform the previously best design using balanced allocations by more than four times in throughput, while simultaneously incurring less than a thousandth of its relaxation errors. In a concurrent breadth-first-search benchmark, our queue consistently outperforms both relaxed and strict state-of-the-art FIFO queues.

balls-into-bins

relaxed semantics

concurrent data structures

load balancing

lock-free

Author

Kåre von Geijer

Network and Systems

Philippas Tsigas

Network and Systems

Elias Johansson

Student at Chalmers

Sebastian Hermansson

Student at Chalmers

ACMSIGPLAN Symposium on Principles and Practice of Parallel Programming

1542-0205 (ISSN)

382-395
9798400714436 (ISBN)

30th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming, PPoPP 2025
Las Vegas, USA,

Relaxed Concurrent Data Structure Semantics for Scalable Data Processing

Swedish Research Council (VR) (2021-05443), 2022-01-01 -- 2025-12-31.

Subject Categories (SSIF 2025)

Computer Sciences

DOI

10.1145/3710848.3710892

More information

Latest update

4/3/2025 8