{
  "status": "research",
  "advantages": [
    {
      "text": "Applications that need ordering but not immediate durability, such as atomic file replacement, can avoid waiting for every update to reach media.",
      "citationIds": [
        "optfs"
      ]
    },
    {
      "text": "In the authors' historical experiment, random writes were 3 times faster than ext4 ordered mode; this is not a modern-device performance guarantee.",
      "citationIds": [
        "optfs",
        "thesis"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Journal recovery can take longer than in ext4 because data blocks may have to be read from non-contiguous locations.",
      "citationIds": [
        "thesis"
      ]
    },
    {
      "text": "The implementation was not optimized for SSDs, where checksum computation became a significant cost.",
      "citationIds": [
        "thesis"
      ]
    },
    {
      "text": "A durability timeout is a safety assumption: underestimating device persistence delay can break consistency, not just lose the newest updates.",
      "citationIds": [
        "optfs"
      ]
    },
    {
      "text": "The published prototype maps fsync() to osync() by default, so unmodified applications lose their expected immediate-durability guarantee.",
      "citationIds": [
        "optfs-code-readme"
      ]
    },
    {
      "text": "The two synthetic workloads do not characterize other applications, firmware behavior or real-world crash scheduling.",
      "citationIds": [
        "optfs",
        "thesis"
      ]
    },
    {
      "text": "The reported sequential-overwrite bandwidth was about half that of ext4 ordered mode because selective journaling wrote each block twice.",
      "citationIds": [
        "optfs",
        "thesis"
      ]
    },
    {
      "text": "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.",
      "citationIds": [
        "optfs",
        "alice"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-24",
  "slug": "optimistic-crash-consistency",
  "term": "Optimistic crash consistency",
  "aliases": [],
  "definition": "Optimistic crash consistency permits storage write reordering while exposing application ordering and durability through distinct synchronization operations.",
  "note": "The ext4-based OptFS prototype separates osync() ordering with eventual durability from dsync() durability. Transactional checksums cover metadata and data. [optfs]\n\nWithout 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. [optfs] [thesis]\n\nRecovery 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. [optfs]\n\nTimeout 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. [optfs] [thesis]\n\nPinned code sets JBDBF_CHECKPOINT_INTERVAL to 30000 and converts milliseconds to kernel ticks; this is configuration, not measured latency. [optfs-code-interval] [optfs-code-commit]\n\nThe 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. [optfs] [thesis] [optfs-evidence]",
  "related": [
    "persistence-ordering",
    "crash-consistency",
    "external-synchrony",
    "backpointer-based-consistency"
  ],
  "citations": [
    {
      "id": "optfs",
      "title": "Chidambaram et al. Optimistic Crash Consistency. SOSP 2013, sections 4-6 and Table 1. DOI: 10.1145/2517349.2522726.",
      "url": "https://research.cs.wisc.edu/wind/Publications/optfs-sosp13.pdf",
      "accessed": "2026-11-24"
    },
    {
      "id": "thesis",
      "title": "Chidambaram. Orderless and Eventually Durable File Systems. PhD thesis, Wisconsin-Madison, 2015, sections 6.2-6.4, Table 6.3.",
      "url": "https://research.cs.wisc.edu/wind/Publications/vijayc-thesis15.pdf",
      "accessed": "2026-11-24"
    },
    {
      "id": "optfs-code-interval",
      "title": "OptFS source at commit 0c7464b8cd29ed174de56cb91e56ec1d49928507: jbdbf.h, JBDBF_CHECKPOINT_INTERVAL (line 1357).",
      "url": "https://github.com/utsaslab/optfs/blob/0c7464b8cd29ed174de56cb91e56ec1d49928507/fs/ext4bf/jbdbf.h#L1357",
      "accessed": "2026-11-24"
    },
    {
      "id": "optfs-code-commit",
      "title": "OptFS source at commit 0c7464b8cd29ed174de56cb91e56ec1d49928507: commit.c, checkpoint scheduling (lines 1007-1013).",
      "url": "https://github.com/utsaslab/optfs/blob/0c7464b8cd29ed174de56cb91e56ec1d49928507/fs/ext4bf/commit.c#L1007-L1013",
      "accessed": "2026-11-24"
    },
    {
      "id": "optfs-code-readme",
      "title": "OptFS README, Caveats: fsync() defaults to osync(). Commit 0c7464b8cd29ed174de56cb91e56ec1d49928507.",
      "url": "https://github.com/utsaslab/optfs/blob/0c7464b8cd29ed174de56cb91e56ec1d49928507/README.md#caveats",
      "accessed": "2026-11-24"
    },
    {
      "id": "optfs-evidence",
      "title": "Hesela extraction of OptFS Table 1: reported scenario counts and evidence limits.",
      "url": "https://hesela.dev/research/optfs-crash-evidence.json",
      "accessed": "2026-11-24"
    },
    {
      "id": "alice",
      "title": "Pillai et al. All File Systems Are Not Created Equal. OSDI 2014, sections 4.4.1 and 4.6, pp. 443-445.",
      "url": "https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-pillai.pdf",
      "accessed": "2026-11-24"
    }
  ],
  "provenance": [
    "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."
  ]
}
