Search

A technology, a device or an article

An SSD’s atomic write unit is smaller than a promise about a file

AWUN, AWUPF and namespace fields define atomic-write scope. Boundaries, active features and durability determine what the guarantee actually covers.

Whole and broken ceramic tiles with a blue pattern
AI-generated conceptual illustration. A metaphor for whole and partial updates, not a power-failure test.ITNWS · Original ITNWS AI-generated conceptual editorial illustration

The important word is unit. NVMe describes atomic-write properties for operations of a defined size under defined conditions. An application, meanwhile, may speak about updating a file or committing a database transaction. Those descriptions do not automatically refer to the same operation. Before an atomic-write capability can support an application claim, the sizes, boundaries, and conditions have to meet. Reading one promising field from an SSD therefore begins an interpretation. It does not finish the proof that an arbitrary file update survives every interruption as a single indivisible event.

AWUN: read the condition beside the size

Atomic Write Unit Normal concerns the documented atomicity of writes during normal operation. Microsoft’s NVMe controller structure documentation defines AWUN in logical blocks and identifies the field’s zero-based encoding. Both details matter. A raw value is not a byte count, and the field’s normal-operation condition should not be silently extended to a power failure. The letters identify a particular promise. They do not mean that every write accepted by the controller has the same scope or that every possible failure is treated as normal operation.

For a simple decoding example, suppose an applicable controller field contains 7. A zero-based size encoding represents eight logical blocks. If the namespace format uses 512-byte logical blocks in this teaching example, eight blocks contain 4096 bytes. The calculation is (7 + 1) multiplied by 512. These are invented values, not identify data from a product tested by ITNWS. They demonstrate why reporting “atomic size 7 bytes” would be wrong before any question of performance arises. They also demonstrate why an observer needs the active namespace format rather than a remembered default sector size from another device.

A larger format changes the byte conversion. The number of logical blocks and the bytes per logical block are separate inputs to the arithmetic. That does not imply that reformatting a real namespace preserves every other relevant capability or makes a software stack support a new application-level guarantee. It simply states the dimensional relationship. A precise account should first establish the applicable reported fields and formatted block size. An imagined conversion performed with a different format belongs to a hypothetical example, not to a claim about the drive currently holding someone’s files.

AWUPF: the interruption changes the promise

Atomic Write Unit Power Fail concerns the power-fail or error condition described by the specification and interface. It is not safe to substitute the normal-operation size just because that size is larger or easier to notice in a report. A controller can advertise different atomic units under the different conditions. If an application requires protection against a torn update when power disappears, the relevant evidence must address that condition. A normal-operation atomicity property alone cannot establish it. This distinction is separate from whether a device has a reputation for endurance or a large cache.

Atomicity also differs from durability. An atomicity claim concerns whether the relevant update can be observed as a prohibited mixture rather than as the allowed alternatives under its conditions. Durability concerns whether acknowledged information has reached the required persistence boundary. A flush or a force-unit-access arrangement can be relevant to persistence under supported rules, while the atomic unit addresses another property. Combining the words in a product description does not combine their evidence. A software transaction can need both properties, and a controller field establishing one does not erase the work needed to establish the other through the full stack.

The namespace can qualify the controller

The NVMe namespace structure documentation describes namespace atomic-write fields and the capability information governing their interpretation. NAWUN and NAWUPF are not values to prefer merely because they appear closer to the namespace’s name in a tool’s output. The supporting feature information matters. The documentation also assigns zero a specific fallback meaning for these namespace fields: it refers back to the corresponding controller size. That is different from interpreting every zero mechanically as a namespace-specific one-block override. The field’s own rule takes precedence over a slogan about zero-based values.

This is a useful lesson in reading standards. An encoding convention and a reserved or fallback value can coexist in one structure. A reader cannot apply the convention while ignoring the exception that selects which value is applicable. The same discipline is needed when software prints raw identify data. A field can be visible without being the effective independent limit for the operation being considered. The purpose of the capability flag and fallback rule is to describe that relationship. A technically honest report retains it instead of choosing whichever printed number offers the most attractive byte count.

Hypothetical 8-block writes can cross different boundaries; zero-based 7 decodes to 8 blocks.
Hypothetical 8-block writes can cross different boundaries; zero-based 7 decodes to 8 blocks. — ITNWS · Original ITNWS educational diagram

A small write can still cross the wrong boundary

Size is not the only constraint. Namespace atomic-boundary parameters can define boundaries that relevant writes must not cross to retain the advertised guarantee. A command can satisfy a maximum-size condition and still have a problematic starting position. This is why a capacity-sized rectangle drawn over a file is not an adequate model of atomicity. The controller sees logical block addresses and commands. The application sees data structures and offsets. Their relationship has to be established through the storage stack rather than assumed from the fact that both quantities can be expressed in bytes.

Consider an independent teaching boundary every eight logical blocks, with an illustrative maximum unit of eight blocks. A write beginning at block 0 and spanning blocks 0 through 7 stays within the first illustrated boundary. A write beginning at block 1 and spanning blocks 1 through 8 has the same length but crosses it. The drawing shows this difference. It does not claim the raw encoding of a real boundary field, and it does not define every condition in the NVMe standard. It isolates the reason size alone can be insufficient: the interval’s location matters as well as its length.

An application write does not necessarily become one matching device command. Filesystem behavior, buffering, metadata updates, and the lower storage stack can alter the command sequence used to implement it. A file’s contents can also occupy locations unrelated to the simple contiguous interval the application imagines. Therefore, showing that an application buffer has the same byte size as an advertised atomic unit does not establish that the controller receives one qualifying operation. The interface between the software request and device commands is part of the proof. A match in size is a necessary detail in some arguments, not a complete argument by itself.

A database transaction can involve more than one data update and associated metadata. A filesystem transaction can have its own ordering and recovery rules. These higher-level mechanisms can use lower-level capabilities where supported, but they do not become equivalent to a single controller field. Conversely, the absence of a large device atomic unit does not mean that all software recovery designs are impossible. Journaling, logging, or other supported techniques can address application requirements through different mechanisms. The correct subject is the guarantee implemented by the complete arrangement, not a competition to assign every layer the word atomic and assume the words mean the same operation.

The maintained Linux NVMe definitions and tools such as nvme-cli identify reporting make the fields accessible to software and observers. Their visibility is valuable for interpretation, but reading data is different from requesting a particular supported operation through an application interface. Kernel, filesystem, and application support remain relevant. A capability advertised by hardware can exist before a particular software path uses it. An explanation should state which part was inspected rather than awarding the entire machine an application guarantee based only on controller identification.

There is a related distinction between an interrupted operation and one that was never submitted. An application’s intention to update a record is not a device command. Buffering can leave work at another layer before it reaches the controller. No atomic-write descriptor promises to execute an operation that has not arrived. This may sound obvious, but it is exactly the gap hidden by an informal sentence such as “the SSD makes my file write atomic.” The controller’s promise begins at its defined interface and conditions. The application must arrange for the required work to reach that interface in the supported form.

Nor does a read after restart, by itself, prove all the mechanisms that produced it. Observing a valid old or new value in one trial is compatible with several explanations, including behavior outside the specific advertised guarantee. A serious failure experiment needs a defined operation, a controlled interruption, and evidence appropriate to the property under study. This article performs no such experiment. Its numerical and boundary diagrams are interpretations of documented concepts, not counterfeit evidence that a particular SSD has passed power-failure testing. The distinction preserves the value of the specification without pretending that reading it is equivalent to validating a product implementation.

The Write Atomicity Normal feature adds a further distinction between advertised capabilities and the active requirement honored for normal writes. The documented Disable Normal control can tell a supporting controller that the AWUN and NAWUN normal guarantees are not required, leaving the applicable power-fail units as the relevant honored limits under that arrangement. Merely printing Identify Controller values therefore does not establish every part of the operating context. This article changes no such feature. It uses the documented distinction to show why an explanation should retain both capability information and the active supported conditions, rather than infer an entire write contract from one attractive field.

The special namespace fallback also deserves to be kept beside the simple decoding example. The controller value 7 in that example represented eight logical blocks. A namespace field with its documented zero fallback does not independently request a zero-byte write or replace the controller unit with a new arbitrary guarantee. Choosing the applicable field comes before decoding the count. That order prevents a correct arithmetic rule from being applied to a value whose first job was to select another source of information.

The useful annotation to carry away is a qualified sentence: this applicable atomic unit, expressed in this namespace’s logical blocks, supports this operation under these conditions and boundaries. Each qualification does work. Removing normal versus power-fail changes the condition. Removing the block format changes the byte calculation. Removing a boundary condition can change which requests qualify. Removing the software path changes whether an application operation reaches the relevant interface at all. Precision is not an obstacle to using the feature. It is the information that makes the feature useful without asking it to promise an arbitrary file transaction it never defined.

Sources checked on October 22, 2026. Field values, block formats, and boundary examples are hypothetical. No namespace was reformatted and no atomic-write or power-failure test was performed.

Sources & documentation

  1. nvme-id-ctrl(1) ↗
  2. nvme-id-ns(1) ↗
  3. Linux NVMe definitions ↗
  4. NVME_IDENTIFY_CONTROLLER_DATA ↗
  5. NVME_IDENTIFY_NAMESPACE_DATA ↗
  6. NVME_CDW11_FEATURE_WRITE_ATOMICITY_NORMAL ↗
  7. NVM Express Base Specification, revision 2.3, August 2025 ↗