persistence-ordering · shipping · also persist ordering

Persistence ordering

Persistence ordering is a constraint on the order in which updates become durable, rather than merely the order in which an application issues them.

Ordering differs from atomicity: individually indivisible updates can still reach storage in an unsafe order. A study of 11 widely used applications found 60 crash vulnerabilities, roughly half of which appeared on file systems current at the time. When writes, even to different files, did not persist in issue order, 7 of the 11 failed to recover properly. [1] Review the application's recovery dependencies, not only the syscall trace. Historical filesystem configurations are evidence of variation, not guarantees about every current implementation.

With write buffering, a device may complete writes out of order, and the classic remedy, a cache flush, enforces ordering only by also forcing every earlier write to be durable. Separate primitives for ordering with eventual durability and for immediate durability improved some workloads by up to an order of magnitude in a research prototype. [4]

In persistent memory, strict persistency makes persist order identical to volatile memory order, while relaxed persistency lets the two diverge. An epoch barrier divides program order into regions whose writes are mutually unordered, but all writes of one region persist before any of the next. This ordering model is distinct from the set of components protected by a persistence domain. [3]

Relations

related
Crash consistency, fsync, Directory fsync, Write-back cache, Metadata update dependency, Soft updates, Memory persistency, Optimistic crash consistency, External synchrony, io_uring drain, ZFS separate log, Hot journal, Storage cache barrier, SquirrelFS

Advantages

  • Stating only the required order, not full durability at every step, lets storage batch and schedule writes between ordering points. [4]

Limitations

  • Ordering alone does not make an update durable, so work acknowledged after an ordering point can still be lost in a crash. [4]
  • Measured ordering behavior covers the file systems and modes tested, so a passing recovery test on one configuration does not transfer to another. [1]

Citations

  1. Pillai et al. All File Systems Are Not Created Equal: On the Complexity of Crafting Crash-Consistent Applications. OSDI 2014, sections 1, 2 and 4.4. (accessed 2026-10-23)
  2. Steven Pelley, Peter M. Chen and Thomas F. Wenisch. RETROSPECTIVE: Memory Persistency. ISCA retrospective, 2023; sections I-II. (accessed 2026-10-23)
  3. Chidambaram, Pillai, Arpaci-Dusseau and Arpaci-Dusseau. Optimistic Crash Consistency. SOSP 2013, sections 1 to 3. (accessed 2026-10-23)

Further reading

  1. Hesela: Atomic rename is not a durable commit (accessed 2026-10-11)
Sources & caveats
  • pillai re-read 2026-10-23, sections 1, 2 and 4.4, for the 11 applications, the 60 vulnerabilities and the 7 applications that relied on in-order persistence.
  • optfs2013 read 2026-10-23, sections 1 to 3, for out-of-order completion, flushes that conflate ordering with durability and the order-of-magnitude result.
  • retrospective re-read 2026-10-23, sections I and II, for strict, relaxed and epoch persistency.
  • The hot-journal entry links here because rollback-journal recovery depends on the journal becoming durable before overwritten database pages do.
  • A companion analysis on atomic rename is listed but not used in prose.

JSON: /data/terms/persistence-ordering.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Persistence ordering. Hesela. 2026-11-16. https://hesela.dev/terms/persistence-ordering/