External synchrony
External synchrony delays causally dependent external output until the underlying file modifications are durable, while allowing internal execution to continue.
Equivalence matches output values and causal order; a disk commit becomes observable after a crash and reboot. Hesela interprets this as semantics, not identical wall-clock timing. Xsyncfs returns from filesystem calls before commit and records a process dependency. Pipes, UNIX sockets, shared memory and the file cache propagate dependencies; dependent screen, network and device output waits for commit. [1] [2]
Output triggers a commit when it depends on pending changes; without output, commits occur every 5 seconds, as in asynchronous ext3. In PostMark, xsyncfs completion time was within 7% of asynchronous ext3; synchronously mounted ext3 with write barriers took over two orders of magnitude longer. This is a workload-specific result, not a bound for all workloads. [1] [2]
Shared-memory tracking is conservative: a process with write permission transfers its commit dependency to processes with read permission, without observing an actual read. Memory-mapped files use the same approach, and a dependency acquired by one thread reaches all threads in that process. This may delay output that did not actually consume the changed data. A tracked dependency is therefore not a measured data-flow edge. These are historical prototype choices, not current Linux guarantees. [2]
In the 2008 two-machine MySQL test, xsyncfs achieved lower throughput than asynchronous ext3 with write barriers. The diagnostic xsyncfs-noshm variant disabled shared-memory dependency propagation and nearly matched that comparator. Hesela interprets this as evidence that conservative dependency propagation can reduce throughput, not evidence of preserved guarantees for arbitrary shared-memory applications. [2]
Relations
Advantages
- Applications keep the synchronous I/O interface and do not need to be modified. [2]
Limitations
- For dependencies spanning different file systems, the authors propose blocking before the second write until prior work commits; this is not a demonstrated cross-filesystem transaction protocol. [2]
- Work that produced no external output can still be lost in a crash before the next periodic commit. [1]
- Catastrophic media errors may be detected after the application has continued; the authors rejected checkpoint-and-rollback recovery rather than implementing it. [2]
- When it cannot track causality through an operation such as ioctl, the prototype blocks the caller until dependencies commit; execution is not always nonblocking. [2]
- External synchrony does not itself promise atomic writes or prevent disk corruption; xsyncfs used full-data journaling, adding journal-transaction atomicity beyond that contract. [2]
Citations
- Nightingale, Veeraraghavan, Chen and Flinn. Rethink the Sync. OSDI 2006, pp. 1-14.
- Nightingale et al. Rethink the Sync. TOCS 26(3):6 (2008), sections 2.2-2.5, 3.1, 3.2-3.3, 3.4-3.6, 4.3, 4.5. DOI:10.1145/1394441.1394442.
Sources & caveats
- external-synchrony is the OSDI 2006 paper, read for the definition, output-triggered commits and the benchmark comparison with ext3.
- The 2008 journal version, section 2.5 (p. 6:8), presents cross-filesystem blocking as a proposal; section 3.6 (p. 6:13) describes conservative shared-memory tracking.
- Performance figures are research measurements from the papers and were not reproduced.
- The 2026-11-01 review used the journal copy at https://courses.cs.duke.edu/compsci510/spring17/resources/papers/rethink.sync.tocs.pdf. No prototype or performance experiment was rerun.
- Evaluation scope checked against TOCS section 4.3 (PostMark) and section 4.5, Figure 6B (remote-client MySQL). The Microsoft-hosted journal text was accessible in this follow-up; the no-shared-memory qualification is Hesela's interpretation.
- TOCS 2008 section 2.5, pp. 6:7-6:8, and section 3.1, p. 6:9: late media failures and deliberately omitted rollback; reviewed 2026-11-01. Historical design, not a modern Linux error-handling guarantee.
- TOCS sections 2.3 and 3.4 describe blocking for untracked operations. Section 4.5 used UNIX sockets in the local MySQL benchmark to propagate dependencies; reviewed 2026-11-01.
- TOCS sections 2.2 (pp. 6:5-6:6), 3.2 (p. 6:9) and 3.3 (pp. 6:10-6:11) distinguish output equivalence from the journal implementation. Timing qualification is Hesela's interpretation of the formal criterion; independently source-reviewed 2026-11-01.