Skip to content

Research notes / Persistence

NFS stable writes: what COMMIT, flush and FUA actually promise

/ Updated / Primary-source review

A write acknowledgement needs a scope. NFSv3 can acknowledge buffered data before it is stable; COMMIT needs a verifier check; a block-cache flush and FUA make different promises. None is a multi-file transaction protocol.

On this page24 sections

Read the achieved stability, not just the request

NFSv3 WRITE includes a requested stability level and returns the achieved level in committed. The server may provide a stronger level than requested. These are protocol guarantees, not observations of a particular appliance. [1, section 3.3.7]

Successful NFSv3 WRITE replies, for the bytes actually accepted. Check the returned byte count as well as the status and stability.
Reply levelPersistence required before replyWhat remains unresolved
UNSTABLEData may remain bufferedRetain a recoverable client copy until stable completion
DATA_SYNCData and metadata needed to retrieve itOther file metadata may still need COMMIT
FILE_SYNCData and file-system metadataNo multi-file atomicity or protection from media failure

Stable storage need not mean the final disk surface. RFC 1813 permits protected intermediate storage if the required recovery guarantee holds; failure of the storage medium itself is outside that guarantee. Treat persistence as a failure-model claim, not a synonym for a specific cache technology. [1, section 4.8]

Stable against which failures?

Stable storage is a recovery contract, not a material. RFC 8881 section 1.7 includes repeated power interruptions, operating-system failures and component failures outside the storage medium; failure of that medium is excluded. Its examples include protected server-side or UPS-backed cache with recovery software. [37]

SNIA also calls out single non-media hardware failures, repeated software crashes and a powerless-retention interval, without assigning a universal duration in its dictionary definition. Keep the named contract and its exclusions visible. [38]

Why two copies need a recovery protocol

The 1979 Lampson-Sturgis working paper constructs a stable page from two ordered copies that cannot be damaged by the same modeled decay event. Writes finish and verify the first copy before starting the second. Recovery reconciles the pair, and periodic cleanup repairs damage before another allowed decay. Undetected errors and overly frequent decay fall outside that construction's assumptions. [39, sections 4.1 and 5.1]

Engineering consequence: duplicating bytes is only part of the guarantee. State which faults can reach both copies and how interrupted recovery preserves a usable copy. This historical construction is not a requirement that an NFS server use two physical disks.

Practical implication: the presence of a UPS, or one successful power-cut test, is not enough to establish every part of that contract. Identify the protected bytes, recovery procedure and retention interval. This is a source-based checklist, not a certification or a new fault-injection result.

A stable short write is still a short write

Suppose a request carries 8,192 bytes but a successful FILE_SYNC reply reports only 4,096 bytes accepted. The accepted prefix is stable; the remaining 4,096 bytes still need a WRITE. COMMIT cannot supply bytes the server never accepted. This is a constructed example, not a measured transfer. RFC 1813 explicitly allows short writes and directs the client to send the remainder. [1, section 3.3.7]

A successful COMMIT can still require a rewrite

COMMIT makes buffered writes and metadata stable for a file range. A zero count extends from offset to end of file. Its returned write verifier must agree with the verifier associated with the outstanding writes. An unexpected verifier requires retransmission of uncommitted buffers. It is not a content checksum. [1, section 3.3.21]

  1. WRITE: the server accepts the full range, replies UNSTABLE and returns verifier A.
  2. Failure: the server loses that volatile state and restarts with verifier B.
  3. COMMIT: it can return NFS3_OK and B even though the earlier buffered bytes were lost.
  4. Recovery: the client detects A versus B, retransmits the uncommitted data and establishes stable completion again.

This is an illustrative protocol trace, not an observed incident or a client implementation. It assumes one writer and no permanent media failure. The single-file range interface does not establish a transaction across several files; that conclusion follows from the operation's scope, not from a performance test.

pNFS: locate the data commit

Parallel NFS separates metadata coordination from direct data access. Its layouts have type-specific storage and control protocols; file-layout rules do not automatically apply to block or object layouts. [35]

For the NFSv4.1 file layout, NFL4_UFLG_COMMIT_THRU_MDS selects the COMMIT destination: clear means the data server that received the writes; set means the metadata server. With the flag clear, a metadata-server COMMIT need not persist data-server writes. [34, section 13.7]

LAYOUTCOMMIT reconciles layout and file-attribute state, rather than replacing the required data commit. Data should already be stable through the appropriate storage protocol. This does not require a separate COMMIT after every sufficiently stable WRITE, nor establish a global snapshot of concurrent clients. [34, section 12.5.4]

Historical implementation: the FAST '10 Panache paper describes a GPFS-backed pNFS design where one COMMIT to the state server flushes writes across the data servers. Its underlying cluster protocol coordinates the servers; the result is not a rule that every metadata-server COMMIT flushes every pNFS layout. The paper's IOR comparison also changes the serving topology, and write scaling eventually reaches a storage-controller limit. It is evidence about that implementation and workload, not a universal pNFS speedup. [36, section 3]

When checking a trace, record the layout type, commit-routing flag, achieved write stability and verifier results separately. This is protocol interpretation, not a device test or throughput result.

PREFLUSH and FUA cover different boundaries

In the Linux block layer, REQ_PREFLUSH makes earlier completed writes persistent before the accompanying I/O starts. It can also be used without a data payload. REQ_FUA makes the flagged write persistent before that request completes. Both may be combined; neither flag should be silently substituted for the other. Linux can implement FUA with a later flush when native support is absent. [2]

For example, suppose payload write D has completed and commit-record write C follows. FUA on C alone supplies C's persistence boundary, not a guarantee that D became persistent before C started. PREFLUSH supplies that ordering boundary; FUA supplies C's completion boundary. This conceptual example is not a complete filesystem or database commit algorithm: atomicity, checksums and recovery still need their own design.

A block request cannot flush bytes that an application has not submitted. Do not map each NFS COMMIT to exactly one hardware flush: the server's filesystem, controller and cache stack implement the higher-level promise. This is a scope distinction, not a measurement of command counts.

An NVMe FUA read can change the durability being checked

NVMe Read FUA commits the addressed data and any metadata before returning them from nonvolatile medium. Write FUA instead requires persistence before write completion; neither orders other commands. [42, sections 3.3.4 and 3.3.6] [43]

Reasoning example: assume one LBA, no concurrent writes, and a conforming controller whose enabled volatile cache holds the only current copy after an ordinary write completes. A later FUA read makes that copy persistent and returns it. Matching the expected bytes therefore cannot distinguish persistence before the read from persistence caused by the read. This is a protocol consequence, not a measured power-cut result.

NVMe Compare with FUA also commits the addressed contents before reading them for comparison. Verify with FUA flushes the specified data and metadata from volatile cache before verification. A successful check is therefore not a passive observation of pre-command durability. [42, sections 3.3.1 and 3.3.5]

For a durability test, record whether readback itself adds a persistence operation. Keep the write's completion, the failure point and the recovery observation separate. The Linux write-FUA rules above do not imply that an ordinary application read issues NVMe Read FUA. Definition: Force Unit Access.

Cache barriers order epochs, not acknowledgements

BarrierFS (FAST 2018) coordinates the filesystem, block layer and device to preserve ordering without waiting at every boundary. Its fbarrier() returns before persistence; its fsync() still waits for durability. This is not equivalent to disabling flushes on an unchanged stack. [40, sections 3-4]

Consider our constructed epochs [A,B] then [C,D]. Each letter is one distinct, indivisible recovered record. Later-epoch records require every earlier-epoch record; members of the same epoch have no order constraint. All four writes have been submitted. There are no overwrites, concurrent writers, torn writes or media faults.

Distinct allowed presence sets, not probabilities or measured crashes.
Contract at the observation pointAllowed sets
No cross-record order16
Epochs [A,B] then [C,D]7
Same epochs; D acknowledged durable2
All four acknowledged durable1

With only ordering, the empty set remains allowed. After D is acknowledged durable under these assumptions, the possibilities are [A,B,D]and [A,B,C,D]. C may still be absent: it shares D's epoch. A commit record that depends on C therefore needs a later ordering boundary or a separate durability guarantee covering C.

The executable model enumerates all 16 Boolean states. Its tests independently enumerate legal persistence orders and their prefixes. This is a simplified logical illustration, not a BarrierFS implementation or a test of an SSD. It assumes recovery honors the stated order.

For an actual Linux request, keep the documented PREFLUSH/FUA completion boundaries distinct from this research contract. [2] Definition: storage cache barrier.

HORAE: a joint flush needs dependency tracking

HORAE (OSDI 2020) persists ordering metadata before dispatching data independently. Recovery rejects a suffix that violates dependencies; overwrites use a preparatory area to preserve earlier versions. [41, sections 4-5]

Joint flush follows the selected stream's dependency prefix across devices. The prototype used capacitor-backed controller memory; a CMB label alone does not establish that protection. [41, sections 5.3-5.7]

Read its comparisons by contract: ordering-only and durable completion are separate modes. The BarrierFS comparator used a modeled hardware-barrier overhead, not barrier-capable hardware. No performance replication is claimed here. [41, section 6.1]

Questions to resolve before replacing a persistence boundary.
Observed actionStill needs evidence
Application issued a writeWhether the relevant bytes reached the block layer.
PREFLUSH completedWhich device and previously completed writes it covered.
FUA write completedWhether prerequisites on other devices were made durable.

This checklist is an engineering interpretation of the Linux documented request boundaries [2], not a measured command trace. A remapping driver must propagate persistence requirements to its underlying devices; that does not make an ordinary flush a general cross-device transaction operation. Removing a flush requires an alternative recovery argument, not just a faster benchmark.

DPO requests low retention priority

SCSI Disable Page Out (DPO) concerns cache retention: DPO=1 requests the lowest priority for the accessed blocks. It is not a flush or a promise to bypass every cache. [30, section 3.18]

Even advertised support needs interpretation. Linux v6.16 target code explicitly treats DPO as a no-op hint while advertising it with FUA. Its parser validates DPO support separately; only the FUA bit sets SCF_FUA. An accepted DPO request is therefore not evidence that cache contents changed. This is implementation review, not a device test. [31] [32]

READ FUA also needs a revision-specific interpretation. The Rev. L manual permits non-volatile cache, the medium or the specified pattern for an LBA; newer volatile data must first become non-volatile. A successful FUA read therefore does not prove a physical-media read. Keep this read contract distinct from Linux REQ_FUA write completion. [30, section 3.18] [2]

Why separate these questions? Chen, Zhou and Li's ATC 2003 study distinguishes cache admission from replacement and examines how upper caches filter the requests seen below. It evaluates eviction-based placement with traces and a SQL Server storage prototype, not DPO compliance. Its cache-hit improvements cannot be transferred to a DPO setting. For an operational check, identify the exact command, target implementation and cache layer before interpreting a successful status or a latency change. [33]

What does an immediate SCSI flush acknowledge?

A successful SYNCHRONIZE CACHE with IMMED=1 can acknowledge command validation without waiting for synchronization to finish. Seagate's Rev. L manual also defines SYNC_PROG=00, a mode with no pollable progress sense. Silence from that progress channel cannot establish completion. This is a documented mode, not a measured drive default. [21, section 3.55 and Table 215]

Other reporting modes change what a poll can observe. In Table 215, SYNC_PROG=01 supplies NO SENSE progress information; mode 10 supplies NOT READY progress information and rejects commands needing resources occupied by synchronization, while permitting specified discovery commands. These are in-progress reports, not success certificates. A device that does not support IMMED=1 must reject that request with ILLEGAL REQUEST / INVALID FIELD IN CDB, rather than silently turn an early acknowledgement into a completion guarantee. [21, section 3.55 and Table 215]

Completion also needs a destination definition. Rev. L allows the latest values to reside in non-volatile cache and/or on the medium; it does not require cache eviction. Its CDB marks the former SYNC_NV bit obsolete. Successful synchronization therefore does not by itself establish physical placement on the recording medium. [21, section 3.55]

The requested range is a separate question. In this command, a zero NUMBER OF BLOCKS means from the supplied LBA through the end of the medium, not an empty operation; only a starting LBA of zero makes that range the whole device. The pinned IBLOCK implementation flushes the whole cache rather than selecting an LBA range. A narrower CDB therefore does not establish proportionally less backend work. This is a manual/source comparison, not a measured latency result. [21, section 3.55] [23]

We compiled three unchanged Linux v6.12 FILEIO/IBLOCK functions with explicit substitutes for their kernel dependencies. The eight cases below cross two backends, the IMMED bit, and an injected successful or failing backend result. In both immediate/error cases, the GOOD callback occurred before the simulated error; these functions did not replace it with a second status. [22] [23] [25]

Eight deterministic source-function controls, not disk measurements. Backend completion is injected; the displayed sequence omits allocation, logging and cleanup events retained in the downloadable trace.
BackendIMMEDInjected resultObserved sequence
FILEIO0Successfsync succeeds; then GOOD
FILEIO0Errorfsync fails; then CHECK CONDITION
FILEIO1SuccessGOOD; then fsync succeeds
FILEIO1ErrorGOOD; then fsync fails
IBLOCK0Successsubmit flush; then flush succeeds; then GOOD
IBLOCK0Errorsubmit flush; then flush fails; then CHECK CONDITION
IBLOCK1SuccessGOOD; then submit flush; then flush succeeds
IBLOCK1ErrorGOOD; then submit flush; then flush fails

All eight C helper calls returned zero, including the two cases whose status callback reported CHECK CONDITION. A helper's return code and the command's status are different observations. FILEIO used a whole-device input with LBA and length zero; IBLOCK's asynchronous completion was delivered manually by the test. No device, running kernel target, power cut or later deferred-error report was exercised. [25]

This does not mean ordinary Linux flushes select early acknowledgement. The separate sd_sync_cache initiator helper leaves IMMED clear. A later deferred error also requires its own reporting path; its delivery cannot be inferred from this isolated call trace. [24]

Rebello and colleagues' ATC 2020 study asks a different question: what survives an actual error-reporting path through a filesystem and application? Its filesystem tests inject block-write errors; CuttleFS emulates selected filesystem reactions for application tests. Our function replay does not reproduce either experiment. Read the fsync failure analysis for those recovery consequences. [26, sections 3.2 and 4.1]

Practical check: record the command flags, affected range, completion event and error channel before timing a flush. Timing only an early acknowledgement does not measure completed persistence.

Exact observations (JSON), source hashes and licenses, and offline reproduction package. After extraction, python3 -B replay.py compiles and checks the original observations using a C11 compiler. No network or storage-device access is needed.

Write-through is relative to a layer

Linux dm-cache documents write-through completion after the write reaches both cache and origin devices. In write-back mode, a cached block can instead be updated only in the cache and marked dirty. Those destinations can themselves have volatile caches. The policy name therefore does not certify the entire persistence path. [3] Device-level cache handling is a separate contract. [2]

The dm-cache documentation separately describes metadata commits triggered by FLUSH or FUA requests and warns about recent-write loss on power failure. Cache coherence, persistence and application consistency are distinct properties. [3]

When can cached data be discarded?

A clean copy is disposable only while a valid backing copy remains. In a hybrid flash array, a dirty write-back block can hold the only current version. Keeping that block on persistent flash does not make the origin current. Linux dm-cache requires a clean cache before passthrough and refuses a shrink that removes dirty blocks. [14, cache operating modes]

LVM documents possible data loss if a write-back cache device fails, and supports RAID1 protection for both cache data and separate metadata volumes. Its default is configurable: the manual describes writethrough, while the kernel target documents writeback. Inspect the active mode and supported removal procedure, not just the label "cache". [15, cache modes and RAID1 cache device] This comparison establishes a recovery dependency, not a hardware-failure experiment or a complete appliance redundancy prescription.

Which flush, and which destination?

LVM's writecache type uses dm-writecache, distinct from dm-cache hot-spot caching. Origin read misses do not fill it, but reads can use data already held from writes. "Write cache" describes admission, not a prohibition on read hits. [LVM2 2.03.28] [Linux 6.12, writecache_map_read]

Linux v6.12 dm-writecache: different completion boundaries
InterfaceEffect
Normal block FLUSHCommits cache state; does not require all cached data on the origin.
Administrative flush messageAlso requests all-block writeback and waits.
cleanerDrains gradually; updates to existing cached blocks still use the cache.

The first two rows follow separate implementation paths: writecache_map_flush and process_flush_mesg. They are not interchangeable meanings of "flush". Check errors and the documented removal procedure before detaching a cache; starting cleaner is not proof that it is empty. [implementation] [cleaner and removal]

The autocommit_time setting is not an origin-writeback deadline. In this implementation, timer expiry queues cache-commit work; it does not invoke the administrative all-block drain. Waiting for that timer is not an application synchronization operation. This follows the source control flow, not a measured timing guarantee. [autocommit callback and flush worker]

The engineering consequence is a recovery dependency: retain the current cache state until the origin is ready to stand alone. This is a version-scoped source review, not a measured power-loss guarantee. The corpus records the dm-writecache definition and configuration limits.

Which operations bypass the cache?

Write-around caching can bypass writes while retaining read caching. Linux 6.12 bcache selects write bypass and invalidates affected cached mappings; read admission still follows its bypass rules. In contrast, dm-cache passthrough sends every read to the origin as well as forwarding writes. It requires a clean cache. [17, cache_mode] [18, request routing] [14, cache operating modes]

Do not infer safe removal from the selected mode. In bcache, a write overlapping dirty data already undergoing background writeback can still use the write-back path. A mode label is therefore not evidence that all earlier dirty state has drained. [18, cached_dev_write] [19, cache_mode]

Consider sequential, successful I/O with no concurrent writer: a clean cached block A, followed by an ordinary write-around update to B. Invalidating the old cached A prevents a stale hit; a later read may fetch B and populate the cache again. These are operation effects, not a crash-atomic internal ordering. This conceptual trace explains why avoiding cache insertion on write can move work to a later read, without predicting the faster policy for a workload. None of these placement decisions replaces the flush/FUA persistence contract above. [2]

Why bypass can still require metadata persistence

FlashTier (EuroSys 2012) makes the coherence obligation explicit: its research cache interface completes evict only after the invalidation is durable, before the manager writes an updated version solely to disk. Bypassing the cached payload is not permission to recover an old cached version after a crash. This is a proposed interface contract, not a bcache guarantee. [20, section 4.2.1]

FlashTier's clean operation instead permits later eviction; it does not immediately remove the entry. The paper evaluates a simulator and a Linux cache-manager implementation. Its silent-eviction performance experiment uses write-through caching with logging and checkpointing disabled. Those results do not establish durable write-around speedups or safe cache removal on current hardware. [20, sections 4.2.1, 5 and 6.5]

Why a restarted cache can report everything dirty

Linux 6.12 treats per-block dirty state as a hint: changes are too frequent to persist individually, so a crash makes the restarted cache assume every cache block is dirty. That conservative recovery state is not a count of lost writes or proof that every backing block differs. Mapping metadata and replacement-policy hints have different roles; losing policy hints may affect performance without invalidating the recovery contract. [14, updating on-disk metadata and per-block policy hints]

Device behavior still needs its own evidence. Zheng and colleagues' FAST 2013 study cut power to raw SSDs while the host remained powered, using direct, synchronized I/O with observed flush commands. Its checker tested record contents and ordering, not just whether the device restarted. This is a historical device experiment, not a test of dm-cache, mirrored caches or NFS. Its selected devices and unequal fault counts do not establish a present-day fleet failure probability. [16, sections 3-5]

Configuration can weaken the promise

The Linux NFS server's async export option is not merely another spelling of a client's UNSTABLE WRITE. The exports manual explicitly warns that it permits replies before stable storage in violation of the protocol and can lose or corrupt data after an unclean restart. Record effective export options when evaluating durability; do not infer them from the client's request. [4, async and sync]

A proposed validation should record client/server versions, negotiated NFS version, export options, write reply counts, achieved stability, verifier changes, sync errors and cache protection. Test only disposable data in an isolated environment, separating client failure, server failure and storage power loss. Check recovered acknowledged records against an independent expected log. No such fault-injection experiment was performed for this review.

Client options answer different questions

noac disables attribute caching and makes application writes synchronous, but does not mean all data caching disappears. Close-to-open consistency uses checks at open and writeback at close for sequential sharing; it is not a guarantee for simultaneous writers. [5, cache consistency]

O_DIRECT on NFS bypasses only the client's page cache. The flag is not sent to the server, which may still cache data. The client requests synchronous handling; this does not prove that a misconfigured server honors it. [6, O_DIRECT]

soft and softerr change timeout recovery. The Linux manual warns of silent corruption in some cases; a hard mount keeps retrying and can leave callers waiting. These are availability and error-handling choices, not a replacement for checking stable completion. [5]

Nor does persistence serialize concurrent appenders: Linux documents a race when multiple processes use O_APPEND on NFS because append must be simulated. Record the application's coordination strategy as well as its cache flags. [6, O_APPEND]

When does another client see the update?

Close-to-open consistency addresses sequential sharing, not continuous invalidation of every reader's cache. A successful stable WRITE or COMMIT is therefore not proof that an already-open reader has refreshed its cached bytes. This distinction follows from the scope of the persistence and cache mechanisms. [1] [5]

  1. Writer A: modifies a file, completes the required writeback and checks errors before handing it over.
  2. Reader B: opens it after that handover; applicable open-time validation determines whether cached data can be reused.
  3. Different case: B kept the file open, or both clients write concurrently. The sequential handover argument no longer applies.

This is a conceptual sharing scenario, not a tested client trace. Record negotiated NFS version, mount/export options and application coordination before using it as a diagnostic model. A stale read alone is not evidence that stable server data was lost.

The attribute cache stores metadata, not the payload. Linux actimeo adjusts its timers; noac also makes writes synchronous. Neither is a universal replacement for coordination, and neither means all file-data caching has been removed. Linux's NFSv4 cto/nocto setting concerns directories, not file-data caching. Do not copy the v2/v3 option interpretation into a v4 diagnosis. [5, version-specific options and coherence]

A cached missing name is a separate boundary

The NFS lookup cache remembers both found and missing names. On Linux, lookupcache=positive revalidates missing entries; lookupcache=none revalidates both kinds before use, increasing server work. Neither disables the file-data cache. [5, lookupcache]

Illustrative case: B cached a missing name, then A created it. Delayed discovery is not evidence of lost file data. NFSv4.0 name-cache validation uses directory change information; non-atomic change_info4 cannot establish that no other client changed the directory. [8, section 10.8]

Which change does the cache validator detect?

The NFS change attribute tracks object changes for cache validation. Unlike time_modify, it must distinguish updates that a coarse timestamp could hide. It does not certify stable storage. [27, sections 5.8.1.4 and 10.3.1]

Do not automatically sort parallel replies by their numeric change values. Baseline NFSv4 does not require a monotonic counter. NFSv4.2's optional change_attr_type describes per-filesystem behavior, including monotonic and version-counter forms; use the applicable guarantee, not arrival order. [28, sections 10 and 12.2.3]

Constructed examples: a valid cached directory, serialized client updates, no directory delegation, and a saved after value from a previous atomically reported operation. Letters stand for change values, not timestamps or measured counters.

Directory cache continuity
Saved afterNext beforeAtomic reportingCache conclusion
AAYesThe matching chain permits updating cached names for the client's own operation.
ABYesContinuity is broken; purge the directory's name cache.
AANoEquality cannot exclude an intervening change.

A directory listing may span several READDIR replies. RFC 8881 requires cached results assembled this way to represent a consistent snapshot: obtain GETATTR before the first READDIR and after the last one contributing to the cache. Compare the directory's change attribute; a cookie and verifier support continuation, not this validation. This concerns one directory, not an atomic snapshot of an entire tree. [27, section 10.8.2]

For concurrent operations, replies can arrive out of execution order; the client may need to await outstanding results and reconstruct the before/after chain. These cache rules do not replace WRITE stability checks or COMMIT verifier checks. [27, section 10.8.1] [1, stable-write recovery]

NFSv4 delegations change the close boundary

In NFSv4.0 and NFSv4.1, absent an OPEN delegation, modified data must reach server stable storage before the client sends protocol CLOSE. It would be wrong to claim that close can never involve persistence. The specifications also distinguish minimum cache-validation requirements by share-deny mode; a Linux NFSv3 open-time check is not the complete rule for every NFSv4 open. [8, section 10.3.1] [9, section 10.3.1]

A file delegation lets a client handle permitted opens locally under a recallable server grant. With a write delegation, transmission at application close may be deferred; conflicting access can trigger recall. Local close and a protocol CLOSE are not interchangeable events. Delegation is not evidence that the server already has a durable copy. [8, section 10.4.1] [9, section 10.4.1]

The FAST 2007 Nache prototype made a proxy share a remote file delegation among local clients, reducing recalls caused by their mutual sharing. This moves the coherence boundary, not just the cache location. Its failure discussion warns that proxy failure can lose writes not yet flushed upstream. The Linux 2.6.17 prototype also reported incomplete write-delegation handling and open/close accounting limitations; its results are historical design evidence, not a guarantee for modern NFS re-exports. Nache used file delegations, not directory delegations. [29, sections 3, 4.2, 5.2, 5.5 and 6]

These are cache and close-boundary comparisons only. Session recovery, leases, revocation and crash recovery require their version-specific rules; the NFSv3 verifier example above is not a complete NFSv4 recovery algorithm.

Why the client/server distinction is older than NFSv3

Sandberg and colleagues' 1985 paper describes server-side stable completion alongside client-side buffering and writeback at close. There is no contradiction: buffering before an RPC is different from acknowledging that RPC before persistence. The implementation discussion explains why unwritten server blocks would otherwise become client recovery state. [7, pp. 121, 124, 127-128]

That paper evaluates a Sun-2 implementation using application workloads and transfer tests, then discusses cache and RPC optimizations. It is historical evidence for the design tradeoff, not a benchmark of current NAS appliances. NFSv3 later formalized safe asynchronous server writes through WRITE and COMMIT. [1, section 3.3.7] The normative v3 contract remains the RFC; the historical paper does not specify the later verifier mechanism.

After attribute caching, the authors report GETATTR's share of server calls falling from 90% to about 10%. These are workload-specific proportions, not an absolute request-count reduction or a modern performance forecast. Comparing shares alone cannot recover the missing total-call denominator. [7, p. 128]

Batching can preserve durability and still lose throughput

Write gathering amortizes server work before replying. Juszczak's implementation combines same-file requests, persists data and metadata, then sends the replies. It does not acknowledge volatile data as stable. The paper credits earlier implementations; 1994 is its publication date, not an invention claim. [10, sections 2 and 6.8]

Published 10 MB Ethernet file-copy results: DEC 3400 client/server, RZ26 disk, eight server nfsds. Rates retain the paper's KB/sec. label. Ratios and percentage changes are Hesela calculations. [10, Tables 1-2]
StorageClient biodsWithout gathering (KB/sec.)With gathering (KB/sec.)RatioChange
Disk01651400.85x-15.2%
Disk31943751.93x+93.3%
Disk72014932.45x+145.3%
Disk112035752.83x+183.3%
Disk152056743.29x+228.8%
Prestoserve08094390.54x-45.7%
Prestoserve310257870.77x-23.2%
Prestoserve710809150.85x-15.3%
Prestoserve1111039590.87x-13.1%
Prestoserve1511129910.89x-10.9%

The sign changes: gathering helps the disk case with multiple client I/O daemons (biods), but all five Prestoserve configurations lose throughput. These are historical configurations, not tuning prescriptions for today's NFS. [10, section 7.1]

Calculation: divide the with-gathering rate by the corresponding without-gathering rate; subtract one and multiply by 100 for percentage change. Thus 674/205 is about 3.29x, or +228.8%, not 2.29x. These calculations use rounded printed inputs. No replicate-level samples support a confidence interval here. Neither the comparison nor its sign establishes a universal causal effect.

Source-value extract and provenance, derived comparisons and reproduction script. Put the source JSON and script together and run node nfs-write-evidence.mjs. This reproduces arithmetic, not the hardware experiment. No third-party reuse license is implied by providing a factual extract.

A faster cached write can accompany a slower server

Lever and Honeyman separated cumulative throughput at the last write, after flushing, and after closing: each uses all bytes divided by time since the same start, not by that phase alone. Their Table 1's 5 MB test reports the following contrast. [11, section 2.4 and Table 1]

Published MBps, preserved as labeled. Application columns measure cached writes before/after the client lock change, not stable-storage completion. [11, Table 1]
ServerNetworkCached, lockCached, no lock
NetApp F8538115140
Linux (async)26138147

The authors connect this inversion to client lock contention and reply-processing costs. Their Linux 2.4.4, NFSv3/UDP setup used a Linux async export; they explicitly exclude production-server comparability. They generally report single runs. Do not treat these results as current performance or apply their close-time assumption to NFSv4 delegations. [11, sections 2.3, 3.1 and 3.5-3.7]

Review rule: name the completion event before comparing rates. Keep the byte numerator, elapsed-time denominator, durability configuration and error checks together. A shorter submission interval may just move work beyond the timed region. Report that region honestly; verify persistence separately. This is our methodological recommendation, not a newly measured performance result.

After an NFSv4.1 server restart, recover state as well as data

A server can retain stable file bytes while losing its record of opens and locks. NFSv4.1 handles that state separately from write stability. The distinctions below apply to RFC 8881; they do not extend the earlier NFSv3 COMMIT trace into a v4 recovery procedure. [12, sections 8.2-8.4]

What each NFSv4.1 recovery mechanism establishes.
MechanismProtocol roleKeep separate
Client leaseSuccessful SEQUENCE processing renews an unexpired lease for the client ID.Renewal does not flush data or validate cached bytes.
StateidIdentifies an open, lock, delegation or other state.A filehandle identifies the object, not continuing ownership of its locks.
Grace periodProtects reclamation of prior state against conflicting new access.Safe operations may proceed; grace need not stop all I/O.
State reclaimReconstructs eligible state held before the server lost it.It does not restore lost file contents.

RECLAIM_COMPLETE tells the server that this client has finished reclaiming within the indicated scope. Before obtaining new locking state with a new client ID, the client must send the global form, rca_one_fs = FALSE, even if there is nothing to reclaim. The file-system-specific form, rca_one_fs = TRUE, concerns migration and does not replace that global requirement. Completion does not end the server's grace period for every client: a later request for a new lock can still return NFS4ERR_GRACE. [12, section 18.51.3]

After a network interruption, lease expiration permits revocation, but does not mean every lock disappeared at the deadline. Revocation can also follow administrative action or an unreturned recall. Treat a renewed connection, valid state and durable data as separate observations. NFSv4.0 uses different lease-renewal rules, including RENEW, rather than the v4.1 session mechanism. [12, sections 8.4.3 and 8.5] [13, section 9.5]

Evidence, limits and related definitions

Deletion has its own lifetime boundary: see why deleted NFS files become .nfs files for client-side renaming, advertised preservation and the RFC wording caveat.

We reviewed NFSv3's specification, selected NFSv4.0/v4.1 cache rules, NFSv4.1 state recovery and the linked Linux documentation. NFSv4 has its own state and recovery rules; this article does not transfer the complete NFSv3 recovery procedure to it. A correct protocol trace cannot prove that firmware, controllers or an appliance honor the contract.

For application-level error handling, see failed fsync and retry. For uncertain outcomes, see storage timeouts.

Corpus: NFS, NFS COMMIT, NFS write verifier, cache flush, Force Unit Access, write-back cache, write-through cache, and Direct I/O.

Primary sources

  1. B. Callaghan, B. Pawlowski and P. Staubach. NFS Version 3 Protocol Specification. RFC 1813, June 1995, sections 3.3.7, 3.3.21 and 4.8.
  2. Linux kernel documentation. Explicit volatile write back cache control: REQ_PREFLUSH and REQ_FUA.
  3. Linux kernel documentation. Device-mapper cache: operating modes and on-disk metadata.
  4. nfs-utils exports(5), Debian trixie manual: async and sync export options.
  5. nfs-utils nfs(5), Debian trixie: data and metadata coherence and version-specific cto/nocto options.
  6. Linux man-pages open(2), Debian trixie: NFS O_DIRECT scope and O_APPEND races.
  7. R. Sandberg, D. Goldberg, S. Kleiman, D. Walsh and B. Lyon. Design and Implementation of the Sun Network Filesystem. Summer USENIX 1985, pp. 119-130 (scan).
  8. Haynes and Noveck (editors). NFS Version 4 Protocol. RFC 7530, sections 10.3, 10.4, 10.6 and 10.8 (NFSv4.0).
  9. Noveck and Lever (editors). NFS Version 4 Minor Version 1 Protocol. RFC 8881, sections 10.3-10.6 (NFSv4.1).
  10. Chet Juszczak. Improving the Write Performance of an NFS Server. USENIX Winter 1994, sections 2, 6.8, 6.10 and 7.1; Tables 1-2 (PDF p. 8).
  11. Chuck Lever and Peter Honeyman. Linux NFS Client Write Performance. USENIX ATC 2002, FREENIX, pp. 29-40; sections 2.3-2.4, 3.1 and 3.5-3.7; Table 1.
  12. Noveck and Lever (editors). RFC 8881: NFSv4.1, sections 8.2-8.5 and 18.51.3, stateids, leases, crash recovery and RECLAIM_COMPLETE.
  13. Haynes and Noveck (editors). RFC 7530: NFSv4.0, section 9.5, Lease Renewal.
  14. Linux 6.12 documentation: dm-cache operating modes, cleaner and metadata
  15. LVM2 lvmcache(7): cache modes, chunk size, migration threshold and RAID1 cache devices
  16. Mai Zheng, Joseph Tucek, Feng Qin and Mark Lillibridge. Understanding the Robustness of SSDs under Power Fault. FAST 2013, pp. 271-284.
  17. Linux 6.12 bcache documentation: cache_mode, bypass and error handling.
  18. Linux v6.12 bcache request.c: check_should_bypass, cached_dev_write and bch_data_insert_start.
  19. Linux v6.12 bcache sysfs.c: cache_mode updates and dirty-data state.
  20. Mohit Saxena, Michael M. Swift and Yiying Zhang. FlashTier: A Lightweight, Consistent and Durable Storage Cache. EuroSys 2012, sections 4.2.1, 5 and 6.5.
  21. Seagate SCSI Commands Reference Manual Rev. L (November 2020), section 3.55, Tables 214-215: IMMED and SYNC_PROG.
  22. Linux v6.12 pinned source: fd_execute_sync_cache, FILEIO status and fsync ordering.
  23. Linux v6.12 pinned source: iblock_end_io_flush and iblock_execute_sync_cache.
  24. Linux v6.12 pinned source: sd_sync_cache leaves IMMED clear.
  25. Hesela: eight isolated-function SCSI IMMED observations; injected outcomes, not device I/O.
  26. Anthony Rebello et al. Can Applications Recover from fsync Failures? USENIX ATC 2020, pp. 753-767; sections 3.2 and 4.1.
  27. RFC 8881: NFSv4.1 change attribute, data validation and directory cache consistency, sections 5.8.1.4, 10.3.1, 10.8.1 and 10.8.2.
  28. RFC 7862: NFSv4.2, sections 10 and 12.2.3, change_attr_type and parallel reply ordering.
  29. Ajay Gulati, Manoj Naik and Renu Tewari. Nache: Design and Implementation of a Caching Proxy for NFSv4. USENIX FAST 2007, sections 3, 4.2, 5.2, 5.5 and 6.
  30. Seagate SCSI Commands Reference Manual Rev. L (2020), section 3.18, p. 150: DPO and READ FUA.
  31. Linux v6.16 target_core_spc.c: spc_emulate_modesense and the DPO no-op implementation.
  32. Linux v6.16 target_core_sbc.c: sbc_check_dpofua validates DPO separately from setting SCF_FUA.
  33. Chen, Zhou and Li. Eviction Based Cache Placement for Storage Caches. USENIX ATC 2003, pp. 269-282.
  34. RFC 8881: NFSv4.1, sections 12.5.1, 12.5.4 and 13.7; layout access, attribute synchronization and COMMIT routing.
  35. RFC 8434: Requirements for Parallel NFS Layout Types, sections 1-3; roles, layout-specific protocols and control requirements.
  36. Eshel et al. Panache: A Parallel File System Cache for Global File Access. FAST 2010, section 3.
  37. RFC 8881: NFSv4.1, section 1.7, Stable Storage; covered failures and protected-cache recovery examples.
  38. SNIA Dictionary: stable storage; failure classes and powerless-retention scope.
  39. Butler W. Lampson and Howard E. Sturgis. Crash Recovery in a Distributed Data Storage System. working paper, 1 June 1979, sections 4.1 and 5.1 (pp. 6-7, 10-12).
  40. Youjip Won et al. Barrier-Enabled IO Stack for Flash Storage. FAST 2018, pp. 211-226; sections 3.2, 3.4 and 4.1-4.3.
  41. Xiaojian Liao, Youyou Lu, Erci Xu and Jiwu Shu. Write Dependency Disentanglement with HORAE. OSDI 2020, pp. 549-565; sections 4-6.
  42. NVM Command Set 1.2, sections 3.3.1/3.3.4/3.3.5/3.3.6, Figs. 26/53/61/70. Copyright 2008-2025 NVM Express, Inc. All rights reserved.
  43. Microsoft NVME_CDW12_READ_WRITE: Read/Write FUA and the absence of command ordering.
  44. Linux v6.12: writecache target, cleaner, commit controls and removal sequence
  45. Linux v6.12 dm-writecache.c: read routing, cache commit and process_flush_mesg
  46. LVM2 v2.03.28 lvmcache(7): distinct cache and writecache LV types

Historical write evidence reviewed ; NFSv4.1 recovery reviewed . No copied figures or new hardware measurements.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

  1. · Update: Corrected disposable-cache guidance and documented dirty-data ownership, recovery metadata and cache-removal boundaries, with a scoped FAST power-fault methodology comparison.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. NFS stable writes: what COMMIT, flush and FUA actually promise. Hesela. 2026-12-01. https://hesela.com/analyses/nfs-stable-writes-flush-fua/