Linearizability
Linearizability requires concurrent operations on an object to behave as a legal sequential execution that preserves the real-time order of non-overlapping operations.
Each completed operation can be placed at a point between invocation and response. Retained pending calls also preserve real-time order in the completed extension. [5] An overlapping write may finish before a read responds without having to precede that read in the legal order. [1] Separate linearizable reads and writes do not make a client's read-modify-write sequence atomic. Persistence across failures needs an explicit recovery contract.
The property is local: a history is linearizable if and only if its restriction to each object is linearizable, so objects can be implemented and verified independently. Its specification is nonblocking: a pending total operation has a legal response without completing another pending operation. An implementation may nevertheless block or deadlock; linearizability alone does not guarantee wait-free progress. Sequential consistency drops the real-time order and is not local, and serializability is neither local nor nonblocking. [1]
Testing a recorded run means searching for a legal order of its operations. Splitting a set history by key applies the locality idea inside one object. On histories of 560,000 call and return entries from 4 threads, a key-partitioned checker averaged under 7 s and 401 MiB on two benchmarks where cache-pruned search averaged 81 s and 94 s at 678 MiB. [4]
Relations
- related
- Durable linearizability, Serializability, Read-your-writes, Monotonic reads, Compare-and-swap, Quorum intersection, Read-atomic isolation, Fractured read, Snapshot isolation, Session guarantees, Sequential consistency, Strict serializability, Safe register, Regular register, Raft, Tango, Scalog, Gryff, Pineapple, Hermes replication, Safety property, Strict linearizability, Atomic register
Advantages
- Clients can treat each operation as one instantaneous step and reuse the sequential specification of the object when reasoning about concurrent use. [1]
Limitations
- Checking whether a single run is linearizable is NP-complete in general, with a worst-case search space of O(N!) in the run length, so test tools depend on pruning. [4]
Citations
- Herlihy and Wing. Linearizability: A Correctness Condition for Concurrent Objects. ACM TOPLAS 12(3), 1990, sections 2.2 and 3.1 to 3.3.
- Horn and Kroening. Faster Linearizability Checking via P-Compositionality. FORTE 2015, arXiv 1504.00204, sections 1 and 5.
- Sela, Herlihy and Petrank. Linearizability: A Typo. arXiv:2105.06737v2 (2021), sections 3.1 and 4.
Further reading
- etcd v3.6 API guarantees: durability, strict serializability and operation completion.
- Storage consistency: ordering is not a transaction or a durability promise
Sources & caveats
- herlihy-wing read 2026-10-23, sections 2.2 and 3.1 to 3.3, for the definition, locality, the nonblocking theorem and the comparison with other conditions.
- p-compositionality read 2026-10-23, sections 1 and 5.2, for complexity, history sizes, run times and memory figures.
- A companion analysis on ordering and durability is listed but not used in prose.
- Herlihy and Wing section 3.2 re-read 2026-11-16: Theorem 2 concerns a legal history extension, not implementation progress.