[Paper Review] Brief Announcement: Recoverable and Detectable Self-Implementations of Swap
This paper presents the first recoverable and detectable self-implementations of the SWAP operation for both system-wide and independent failures models, using only reads, writes, and the non-recoverable SWAP primitive. The key contribution is proving that lock-free recovery is impossible for distinguishable operations like SWAP in the independent failures model, necessitating blocking recovery code in the proposed algorithms.
Recoverable algorithms tolerate failures and recoveries of processes by using non-volatile memory. Of particular interest are self-implementations of key operations, in which a recoverable operation is implemented from its non-recoverable counterpart (in addition to reads and writes). This paper presents two self-implementations of the SWAP operation. One works in the system-wide failures model, where all processes fail and recover together, and the other in the independent failures model, where each process crashes and recovers independently of the other processes. Both algorithms are wait-free in crash-free executions, but their recovery code is blocking. We prove that this is inherent for the independent failures model. The impossibility result is proved for implementations of distinguishable operations using interfering functions, and in particular, it applies to a recoverable self-implementation of swap.
Motivation & Objective
- To design self-implementations of the SWAP operation that are recoverable and detectable in concurrent systems with process failures and recoveries.
- To address the challenge of implementing SWAP using only its non-recoverable counterpart, along with reads and writes, in both system-wide and independent failures models.
- To prove that lock-free recovery is impossible for distinguishable operations such as SWAP when using interfering functions in the independent failures model.
- To enable higher-level recoverable data structures by providing a foundational NRL-compliant SWAP primitive.
Proposed method
- Proposes a self-implementation of SWAP in the system-wide failures model using a single recovery coordinator, ensuring wait-freedom in crash-free executions and detectability.
- Designs a self-implementation for the independent failures model using a recoverable mutual exclusion (RME) lock based on reads and writes, with blocking recovery code.
- Employs a novel impossibility proof for lock-free implementations of distinguishable operations using interfering functions in the independent failures model.
- Uses configurations and valency arguments to show that infinite non-terminating executions arise under lock-freedom assumptions, contradicting the requirement for progress.
- Applies the impossibility result specifically to self-implementations of SWAP, generalizing prior results on test&set and fetch&add.
- Relies on detectability and linearizability specifications (NRL) to ensure correctness and nesting safety in recoverable concurrent systems.
Experimental results
Research questions
- RQ1Can a self-implementation of the SWAP operation be both recoverable and detectable in the system-wide failures model using only reads, writes, and the non-recoverable SWAP primitive?
- RQ2Is it possible to design a self-implementation of SWAP in the independent failures model that is wait-free during normal execution and detectable upon recovery?
- RQ3Why is blocking recovery necessary for self-implementations of SWAP in the independent failures model, and is this inherent?
- RQ4Can a lock-free implementation of distinguishable operations using interfering functions exist in the independent failures model?
- RQ5How do the proposed self-implementations compare in space complexity and correctness to existing universal constructions or hand-crafted persistent data structures?
Key findings
- The paper presents the first self-implementation of the SWAP operation that is both recoverable and detectable in the system-wide failures model, using only reads, writes, and the non-recoverable SWAP primitive.
- A self-implementation of SWAP is also proposed for the independent failures model, which is wait-free during normal execution but requires blocking recovery code.
- The paper proves that a lock-free implementation of distinguishable operations using interfering functions is impossible in the independent failures model, which implies that blocking recovery is inherent for self-implementations of SWAP in this model.
- The impossibility result generalizes and unifies prior results on test&set and fetch&add, showing that such limitations apply broadly to operations with interfering functions.
- The proposed algorithms use O(m × n) space, where m is the number of SWAP invocations, and the paper leaves open whether this can be reduced to o(m) or if Ω(m) is inherently required.
- The work enables future construction of higher-level recoverable data structures by providing a foundational NRL-compliant SWAP primitive.
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.