Skip to main content
QUICK REVIEW

[Paper Review] What Cannot Be Implemented on Weak Memory?

Armando Castañeda, Gregory Chockler|arXiv (Cornell University)|Jan 1, 2024
Neural Networks and ApplicationsComputer Science1 citations
TL;DR

This paper introduces a novel methodology for proving impossibility results in concurrent object implementation on weak memory models by analyzing trace mergeability. It establishes that if object histories cannot be merged under certain conditions, then they cannot be implemented on memory models with corresponding mergeability constraints—yielding tight bounds and new separation results for models like TSO, RA, and SCM.

ABSTRACT

We present a general methodology for establishing the impossibility of implementing certain concurrent objects on different (weak) memory models. The key idea behind our approach lies in characterizing memory models by their mergeability properties, identifying restrictions under which independent memory traces can be merged into a single valid memory trace. In turn, we show that the mergeability properties of the underlying memory model entail similar mergeability requirements on the specifications of objects that can be implemented on that memory model. We demonstrate the applicability of our approach to establish the impossibility of implementing standard distributed objects with different restrictions on memory traces on three memory models: strictly consistent memory, total store order, and release-acquire. These impossibility results allow us to identify tight and almost tight bounds for some objects, as well as new separation results between weak memory models, and between well-studied objects based on their implementability on weak memory models.

Motivation & Objective

  • To develop a general framework for proving impossibility results in concurrent object implementation on weak memory models.
  • To characterize memory models by their mergeability properties, identifying when independent memory traces can be merged into a valid trace.
  • To establish a connection between the mergeability of memory traces and the mergeability of object histories, enabling impossibility proofs.
  • To derive tight and almost-tight bounds on the implementability of standard distributed objects across different weak memory models.
  • To identify when fences and atomic operations are necessary for correct and efficient implementation on weak memory architectures.

Proposed method

  • The paper introduces the Merge Theorem, which links memory model mergeability to object history mergeability: if memory traces are not strongly/weakly mergeable, then only non-mergeable object histories can be implemented.
  • It defines strong and weak mergeability for both memory traces and object histories, based on whether all or some interleavings of traces/histories form valid sequences.
  • The approach uses trace-based reasoning: if two operation sequences (e.g., remove operations) cannot be merged into a linearizable history, then their corresponding memory traces cannot be merged under the memory model.
  • The authors analyze three memory models—strictly consistent memory (SCM), total store order (TSO), and release-acquire (RA)—and derive their specific mergeability properties.
  • They apply the Merge Theorem to prove impossibility results for objects like linearizable obstruction-free sets and counters under these models.
  • The method relies on contradiction: if a correct implementation existed, the memory traces would have to be mergeable, but the object history is not, leading to a contradiction.

Experimental results

Research questions

  • RQ1Under which conditions is it impossible to implement a given concurrent object on a weak memory model?
  • RQ2What are the minimal synchronization primitives (e.g., fences, RMWs) required for implementing linearizable objects on TSO and RA?
  • RQ3How do mergeability properties of memory models constrain the implementability of distributed objects?
  • RQ4What are the separation results between weak memory models in terms of their synchronization power?
  • RQ5Can we derive tight bounds on the consensus number of objects with non-commutative operations under different memory models?

Key findings

  • The paper proves that linearizable obstruction-free sets cannot be implemented on TSO or RA without using fences or atomic operations, due to non-mergeable remove operation histories.
  • For counter objects, the paper shows that wait-free linearizable implementations exist on both SCM and TSO, with optimal synchronization: SCM uses only writes and reads, while TSO uses writes and a single fence at the end.
  • The authors establish that the consensus number of any deterministic object with a pair of two-sided non-commutative operations is at least 2, providing a new theoretical bound.
  • The mergeability properties of SCM, TSO, and RA are formally characterized, enabling precise impossibility proofs for various objects.
  • The approach yields new separation results between memory models, showing that RA is strictly weaker than TSO in terms of implementable objects.
  • The paper demonstrates that the standard impossibility result for obstruction-free sets on SCM extends to TSO and RA, using trace mergeability as the unifying principle.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.