The weakest failure detectors to boost obstruction-freedom

Rachid Guerraoui, Michal Kapalka, Petr Kouznetsov · DOI

Abstract

This paper identifies the absolute minimum "oracle" information—known as the weakest failure detectors—required to transform the weak progress property of obstruction-freedom into stronger guarantees like non-blockingness and wait-freedom. The authors introduce a new failure detector, $\Omega^*$, and demonstrate that while non-blocking progress can be achieved with minimal overhead in quiet systems, wait-free progress carries an inherent, unavoidable cost even in the absence of contention.

Introduction: The Progress Hierarchy

In concurrent programming, ensuring that multiple processes make progress without deadlock or livelock is a fundamental challenge. A common modular strategy involves starting with obstruction-freedom, a weak property where a process is guaranteed to finish only if it eventually runs in isolation. To handle high contention, researchers employ Contention Managers (CMs)—independent oracles that delay certain processes to allow others to complete.

Modular implementation of a shared object using an obstruction-free algorithm and a contention manager.

The central question addressed here is: what is the minimum information about process crashes (failures) that a CM needs to guarantee global or individual progress? This "minimum information" is formalized as the "weakest failure detector."

Methodology and Architecture

The authors utilize formal proofs and algorithmic reductions to map the hierarchy of failure detectors. A key contribution is the introduction of $\Omega^*$, a failure detector that eventually elects a leader for every possible subset of processes, rather than just one global leader.

To bridge the gap between theory and practice, the paper proposes Intermittent Failure Detectors (IFDs). Unlike traditional detectors that waste resources with constant "heartbeat" messages, IFDs are activated by the contention manager only when contention is detected.

Detailed architecture showing the interaction between processes, the obstruction-free algorithm, contention manager, and failure detector.

As shown in the architecture above, the system is decomposed into layers where the obstruction-free (OF) algorithm interacts with a Contention Manager Module, which in turn relies on a Failure Detector Module. Both components utilize base shared objects ($B(A)$ and $B(CM)$) to coordinate.

Key Insights

1. The Power of $\Omega^*$

The paper establishes that the standard leader election oracle ($\Omega$) used for Consensus is insufficient for boosting obstruction-freedom to non-blockingness. Instead, the more granular $\Omega^*$ is required because a CM must coordinate progress among arbitrary groups of contending processes.

2. The Overhead Gap

A significant theoretical finding is the "overhead gap" between progress types. A non-blocking manager can be "lazy," incurring no cost until contention is observed. Conversely, a wait-free manager must perform at least one coordination step (e.g., writing to a shared register) in every operation, even in contention-free executions.

Results and Theoretical Bounds

  • Non-Blockingness: $\Omega^*$ is the weakest failure detector required to ensure that at least one process always makes progress.
  • Wait-Freedom: The "Eventually Perfect" failure detector ($\diamond\mathcal{P}$) is the weakest required to ensure every correct process eventually finishes.
  • Inherent Cost: Theorem 14 formally proves that no wait-free contention manager can have zero overhead in contention-free executions; it must always "announce" its presence.

Conclusion and Future Directions

While these results provide a rigorous theoretical foundation, the authors note that minimal managers might be overly aggressive in practice. Future work suggests integrating these safety-net managers with heuristic-based approaches (like randomized back-off) to balance average-case performance with worst-case progress guarantees. Additionally, optimizing the $O(n^2)$ memory requirement for these detectors remains a practical challenge for large-scale systems.

Summary updated

Abstract

It is considered good practice in concurrent computing to devise shared object implementations that ensure a minimal obstruction-free progress property and delegate the task of boosting liveness to independent generic oracles called contention managers. This paper determines necessary and sufficient conditions to implement wait-free and non-blocking contention managers, i.e., contention managers that ensure wait-freedom (resp. non-blockingness) of any associated obstruction-free object implementation. The necessary conditions hold even when universal objects (like compare-and-swap) or random oracles are available in the implementation of the contention manager. On the other hand, the sufficient conditions assume only basic read/write objects, i.e., registers. We show that failure detector $$\lozenge{\fancyscript{P}}$$ is the weakest to convert any obstruction-free algorithm into a wait-free one, and Ω *, a new failure detector which we introduce in this paper, and which is strictly weaker than $$\lozenge\fancyscript{P}$$ but strictly stronger than Ω, is the weakest to convert any obstruction-free algorithm into a non-blocking one. We also address the issue of minimizing the overhead imposed by contention management in low contention scenarios. We propose two intermittent failure detectors $$I_{\Omega^*}$$ and $$I_{\lozenge\fancyscript{P}}$$ that are in a precise sense equivalent to, respectively, Ω * and $$\lozenge\fancyscript{P}$$ , but allow for reducing the cost of failure detection in eventually synchronous systems when there is little contention. We present two contention managers: a non-blocking one and a wait-free one, that use, respectively, $$I_{\Omega^*}$$ and $$I_{\lozenge\fancyscript{P}}$$ . When there is no contention, the first induces very little overhead whereas the second induces some non-trivial overhead. We show that wait-free contention managers, unlike their non-blocking counterparts, impose an inherent non-trivial overhead even in contention-free executions.
BibTeX
@inproceedings{guerraoui2006weakest,
  author = {Rachid Guerraoui and Michal Kapalka and Petr Kouznetsov},
  title = {{The weakest failure detectors to boost obstruction-freedom}},
  booktitle = {DISC},
  year = {2006},
  doi = {10.1007/11864219\_28},
}
Figure