[Paper Review] Between Linearizability and Quiescent Consistency: Quantitative Quiescent Consistency
This paper introduces Quantitative Quiescent Consistency (QQC), a correctness criterion that refines quiescent consistency and relaxes linearizability by allowing relaxation proportional to contention. It proves that high-performance data structures like counters and stacks satisfying quiescent consistency also satisfy QQC, providing a robust, compositional foundation for reasoning about concurrent systems with performance-aware correctness guarantees.
Linearizability is the de facto correctness criterion for concurrent data structures. Unfortunately, linearizability imposes a performance penalty which scales linearly in the number of contending threads. Quiescent consistency is an alternative criterion which guarantees that a concurrent data structure behaves correctly when accessed sequentially. Yet quiescent consistency says very little about executions that have any contention. We define quantitative quiescent consistency (QQC), a relaxation of linearizability where the degree of relaxation is proportional to the degree of contention. When quiescent, no relaxation is allowed, and therefore QQC refines quiescent consistency, unlike other proposed relaxations of linearizability. We show that high performance counters and stacks designed to satisfy quiescent consistency continue to satisfy QQC. The precise assumptions under which QQC holds provides fresh insight on these structures. To demonstrate the robustness of QQC, we provide three natural characterizations and prove compositionality.
Motivation & Objective
- To address the performance penalty of linearizability in highly concurrent systems.
- To refine quiescent consistency by introducing a quantitative measure of relaxation based on contention.
- To provide a formal, compositional correctness criterion that bridges linearizability and quiescent consistency.
- To demonstrate that existing high-performance concurrent data structures (e.g., counters, stacks) satisfy QQC.
- To establish a foundation for verifying concurrent data structures under relaxed consistency with performance guarantees.
Proposed method
- QQC is defined as a relaxation of linearizability where the degree of relaxation is proportional to the number of concurrent calls in a trace.
- The criterion is formalized using partial orders over method calls and returns, with a focus on sequential specifications.
- Three equivalent characterizations of QQC are provided: one in the style of linearizability, one based on counting pre-returns, and one using speculative flat combining.
- Compositionality of QQC is proven using a style analogous to that of linearizability, enabling modular verification.
- The correctness of elimination-tree stacks and other known data structures is established under QQC, assuming no pop overtakes a push on the same stack.
- Inductive reasoning over stack depth is used to prove QQC for recursive data structure constructions.
Experimental results
Research questions
- RQ1Can a correctness criterion be defined that refines quiescent consistency while relaxing linearizability in a quantifiable way?
- RQ2How can the degree of relaxation in a concurrent data structure be formally tied to the level of contention?
- RQ3Do existing high-performance concurrent data structures, such as counters and stacks, satisfy this new criterion under realistic assumptions?
- RQ4Is QQC compositional, allowing modular verification of complex concurrent systems?
- RQ5Can QQC serve as a practical foundation for verification methodologies analogous to those used for linearizability?
Key findings
- QQC refines quiescent consistency and is strictly stronger than quiescent consistency, as it enforces correctness when the system is quiescent.
- High-performance counters and stacks designed for quiescent consistency continue to satisfy QQC, demonstrating that performance optimizations do not compromise QQC.
- The elimination-tree stack of depth d satisfies QQC only under the no-overtaking condition, where no pop operation may overtake a push on the same stack.
- QQC is compositional, meaning that if components satisfy QQC, their composition also satisfies QQC under appropriate conditions.
- Three equivalent characterizations of QQC are established: one based on linearizability-style partial orders, one based on counting calls before returns, and one using speculative flat combining.
- The paper identifies that quiescent consistency alone is insufficient to guarantee correctness in the presence of contention, and QQC provides a necessary refinement.
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.