Balanced Allocations over Efficient Queues: A Fast Relaxed FIFO Queue
Paper i 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

Författare

Kåre von Geijer

Nätverk och System

Philippas Tsigas

Nätverk och System

Elias Johansson

Student vid Chalmers

Sebastian Hermansson

Student vid 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,

Anpassad datastruktursemantik för skalbar processering av data

Vetenskapsrådet (VR) (2021-05443), 2022-01-01 -- 2025-12-31.

Ämneskategorier (SSIF 2025)

Datavetenskap (datalogi)

DOI

10.1145/3710848.3710892

Mer information

Senast uppdaterat

2025-04-03