Optimistic crash consistency
Optimistic crash consistency permits storage write reordering while exposing application ordering and durability through distinct synchronization operations.
The ext4-based OptFS prototype separates osync() ordering with eventual durability from dsync() durability. Transactional checksums cover metadata and data. [1]
Without either call, W2 may survive without W1. In the paper's sequential example, osync() after each write permits recovery to a prefix, including an empty prefix. dsync() additionally makes preceding writes durable on return. This is not a prefix of arbitrary unsynchronized calls. [1] [2]
Recovery uses two passes: collect data-checksum mismatches, clear those explained by a later valid transaction, then replay up to the earliest unresolved transaction. Safe reuse waits for durable release; overwrites use selective data journaling. [1]
Timeout expiry is not a device observation. The prototype's 30-second bound runs from acknowledgement, not filesystem issue. Overestimation delays progress and increases memory pressure; underestimation risks unsafe checkpointing or block reuse. It is not a universal persistence guarantee. Pressure can trigger a flush. [1] [2]
Pinned code sets JBDBF_CHECKPOINT_INTERVAL to 30000 and converts milliseconds to kernel ticks; this is configuration, not measured latency. [3] [4]
The authors reported 400/400 selected simulated crash scenarios recovering consistently with frequent osync(). Reordered, truncated traces yielded crash images, not physical power cuts or a field failure probability. The protocol respects flush semantics but does not validate a device's timeout bound. [1] [2] [6]
Relations
Advantages
- Applications that need ordering but not immediate durability, such as atomic file replacement, can avoid waiting for every update to reach media. [1]
- In the authors' historical experiment, random writes were 3 times faster than ext4 ordered mode; this is not a modern-device performance guarantee. [1, 2]
Limitations
- Journal recovery can take longer than in ext4 because data blocks may have to be read from non-contiguous locations. [2]
- The implementation was not optimized for SSDs, where checksum computation became a significant cost. [2]
- A durability timeout is a safety assumption: underestimating device persistence delay can break consistency, not just lose the newest updates. [1]
- The published prototype maps fsync() to osync() by default, so unmodified applications lose their expected immediate-durability guarantee. [5]
- The two synthetic workloads do not characterize other applications, firmware behavior or real-world crash scheduling. [1, 2]
- The reported sequential-overwrite bandwidth was about half that of ext4 ordered mode because selective journaling wrote each block twice. [1, 2]
- An ordered prefix can contain only the first of two file updates. It is not all-or-nothing application atomicity across calls; a later durability request cannot remove earlier interruption points. [1, 7]
Citations
- Chidambaram et al. Optimistic Crash Consistency. SOSP 2013, sections 4-6 and Table 1. DOI: 10.1145/2517349.2522726.
- Chidambaram. Orderless and Eventually Durable File Systems. PhD thesis, Wisconsin-Madison, 2015, sections 6.2-6.4, Table 6.3.
- OptFS source at commit 0c7464b8cd29ed174de56cb91e56ec1d49928507: jbdbf.h, JBDBF_CHECKPOINT_INTERVAL (line 1357).
- OptFS source at commit 0c7464b8cd29ed174de56cb91e56ec1d49928507: commit.c, checkpoint scheduling (lines 1007-1013).
- OptFS README, Caveats: fsync() defaults to osync(). Commit 0c7464b8cd29ed174de56cb91e56ec1d49928507.
- Hesela extraction of OptFS Table 1: reported scenario counts and evidence limits.
- Pillai et al. All File Systems Are Not Created Equal. OSDI 2014, sections 4.4.1 and 4.6, pp. 443-445.
Sources & caveats
- optfs is the SOSP 2013 paper, read in sections 4 to 6 for primitives, techniques, the durability timeout and benchmark ratios.
- thesis is the 2015 dissertation, read in chapters 6 and 7 for recovery cost, flushing under memory pressure and SSD limitations.
- Performance ratios are research measurements on the authors' hardware and are not general device guarantees.
- 2026-11-24: checked paper section 5.1, thesis section 6.3.1 and pinned public source for the timeout assumption. No kernel was built or executed; no device bound or power-loss behavior was measured.
- 2026-11-24 follow-up: paper section 4.4 and dissertation section 6.2.4 make the prefix guarantee conditional on application synchronization. The sequential example is an API contract, not a measured crash-frequency distribution or a model of concurrent callers.
- Pinned README Caveats documents the prototype's default fsync-to-osync behavior and directs durability-sensitive applications to dsync(). This is historical implementation documentation, not a claim about standard Linux fsync() or a kernel execution.
- Table 1 counts were transcribed and cross-checked against dissertation Table 6.3. These are reported aggregate results, not a new experiment or an independent replication. Hesela has not rerun the experiments.
- The two-file partial-prefix example is Hesela's deduction from OptFS section 4.4, not a measured failure. ALICE separates cross-call atomicity from ordering and evaluates hypothetical ext3-fast, not OptFS; it is comparative evidence, not an OptFS replication.