Summary

  • The IESG-approved NFSv4.2 draft defines a per-file read-write boolean, fattr4_uncacheable_file_data (attribute 87), that tells supporting clients to suppress long-lived data caching. It is advisory, and implementing it is optional.
  • A stored true is not proof that a given open changed mode, that an unstable WRITE was committed, that pNFS metadata became visible, or that another application ever saw the bytes.

Somewhere on the wire, a single boolean now says: do not park this file in your cache. It is a genuinely useful boolean. It is also, on its own, worth about as much as a speed-limit sign with no radar gun behind it.

A server can now state a precise fact: this file is a poor candidate for ordinary client-side data caching. That beats the old arrangement, in which every application was expected to know which remote files deserved O_DIRECT-like handling.

It is not the same as making the cache disappear.

What the IESG approved: attribute 87, RECOMMENDED, still optional

On 17 September the IESG approved Adding an Uncacheable File Data Attribute to NFSv4.2 and moved it to the RFC Editor queue. Revision 16 defines fattr4_uncacheable_file_data, attribute number 87, as a read-write boolean for regular files and named attributes. In NFS terms it sits in the RECOMMENDED attribute class — a label that misleads anyone reading it as ordinary English, because a server is still not obliged to implement it.

Support attaches to an export, not to a server

One export on a box may advertise attribute 87 while another export on the same box shrugs. A client can read supported_attrs or probe. An unsupported SETATTR comes back NFS4ERR_ATTRNOTSUPP; an unsupported GETATTR simply leaves the field out. Absence, in other words, needs interpretation before it becomes a green tick on a dashboard.

What “uncacheable” buys you: a shorter fuse on stale reads

When a client honors a true value, it must not hold WRITE data back merely to merge later operations or to look efficient. Prompt transmission shrinks a specific shared-file hazard: one client reads a stale block, edits its own byte range, and writes back over a neighbor's update. The attribute narrows where and for how long that stale copy can do damage. It does not abolish the hazard. It shortens the fuse.

Durability is a separate chain: stable_how4, COMMIT, write verifier

The bit does not pick the NFS stable_how4 value. The draft instead requires that when the application's write call returns successfully, the data is durable on the server. A client may send FILE_SYNC4 or DATA_SYNC4. It may also send UNSTABLE4 — but then a COMMIT must complete before control returns to the application. If the server's write verifier changed underneath, the affected WRITEs must be reissued while the application buffer still exists.

Operationally, that distinction is the whole ballgame. Holding bytes briefly so an in-flight unstable WRITE can be committed is not the long-lived cache the attribute exists to suppress. And setting the bit does not excuse a missing COMMIT. “Uncacheable” describes a data-cache policy; it is not a synonym for “already durable.”

Reads, delegations and pNFS: three clocks, not one

A client that keeps read data should not reuse it without revalidating the change attribute and file size. A delegation may hand it another consistent view. In parallel NFS the metadata server supplies the attribute while data travels straight to storage devices — so durability at those devices and visibility through layout metadata are separate events. Where a layout requires LAYOUTCOMMIT, delaying it leaves another client revalidating against older metadata even after the bytes themselves are safely on disk.

Time breaks the one-bit story

If the attribute flips while a file is open, a client may keep the caching behavior it selected at OPEN until that open ends. Attribute-cache expiry and revalidation bound the lag; later OPENs pick up the newly observed value. An inventory that reads true today cannot describe every open established yesterday — which is exactly the kind of gap that turns a compliance report into fiction.

Authority: the bit is not an access-control list

The draft is careful here too. A server decides under existing policy whether a requester may set or clear the field. The extension adds no authentication mechanism, changes no access-control rule and creates no security boundary. A client must not use the bit to decide who may read or write. Cache-consistency and integrity mechanisms keep their own jobs.

One prototype server, one prototype client

Revision 16 reports one prototype Hammerspace server and one prototype Linux client, with observed benefits for well-formed I/O. That is evidence the design runs. It is not evidence of broad implementation, default enablement, interoperability across products, or a universal performance win. The draft says the honest comparison is operational: run the workload with and without the attribute, on clients that actually honor it.

The receipt chain

So the management model is a receipt chain, not a checkbox. Record the specification revision, export support, server policy, the value returned to a named client, the OPEN epoch, the client implementation, the WRITE stability mode, the verifier and COMMIT, any pNFS LAYOUTCOMMIT, read revalidation, and the application-visible result. A green bit is the first link in that chain. It is never the conclusion.

Sources