Search

A technology, a device or an article

Data Units Written increased: what an NVMe SSD counted

Data Units Written uses a 512000-byte scale and a defined scope. Differences between readings describe host writes with rounding and telemetry limits.

Stream of blue rectangles enters a terracotta vessel with white bands
ITNWS AI-generated conceptual illustration. The vessel evokes coarse units of flow accounting, not a measured SSD workload.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The first saved line is 100000, the next is 102000. There is an hour between them. Such a short record seems almost like a ready answer to the question of how much data was written to the SSD, but to begin with it is missing a unit. Data Units Written in NVMe log is not measured in files, commands, or terabytes directly. The number has a certain scale and area of accounting. If they are lost in the transfer to the graph, exactly subtracting the two neatly stored values will produce a neatly formatted error.

Let’s leave this hypothetical pair on the operator’s desktop. This is an analytical example and not an ITNWS drive reading or a test of a specific model. In NVM Express Base Specification 2.1, historical revision dated August 5, 2024, Data Units Written describes host writes in thousands of 512-byte units and rounding up. Metadata is not included in this value. Sources re-checked October 30, 2026; the date of verification does not turn a previous document into today’s news.

One unit of the reported counter corresponds to a scale of 1000 × 512 = 512000 bytes. Therefore, a hypothetical difference of 2000 means about 1024000000 bytes of host writesing for the selected interval. In decimal form this is 1.024 GB. Dividing by 2^30 gives approximately 0.954 GiB. Both labels are capable of describing the same quantity if the units are named honestly. But multiplying the difference by only 512 would reduce the result by a thousand times. The format of the namespace logical block does not provide a reason to independently replace 512 with 4096 here.

smartmontools has an open source implementation of NVMe output. It uses a scale of 1000 × 512 for this field, rather than the sector size of the selected file system. When reading an already formatted string, it is useful to understand which number is raw and which is shown next to it as a convenient conversion to bytes. Reapplying a scale to an already converted value creates a reverse error. The person copies a plausible number from the brackets and inadvertently counts it as another raw counter.

The time interval matters as much as the unit. If in our example an hour means 3600 seconds of elapsed time, the average speed would be approximately 284444 bytes per second. This is about 0.284 MB/s in decimal notation. This average tells us nothing about the fastest short burst. In a minute, the application could complete almost the entire recording, and for the rest of the hour the device received little work. The cumulative counter connects the two moments well, but does not store the intensity distribution within the interval. It requires more frequent observations or another source of temporal data.

This also limits the conversation about delays. A slow synchronous load and a fast bulk stream may experience the same hourly gain. One metric does not contain the completion time of each command and does not differentiate how long individual applications waited. Declaring an SSD fast or slow from this asks the data a question it cannot answer. A useful operator record retains a narrow meaning: for a certain time, a certain volume was recorded in a known accounting area. Explaining the user’s experience requires observations of the application as well.

Pause between two readings

Before subtraction, you need to make sure that both rows refer to the same object. The device path in the OS can change after a reboot, and the previous name can be given to the replacement. A monitoring system that has pieced together history based only on the block device file name may draw a negative write volume or a sudden huge jump. Controller identification, model, serial number and namespace context help maintain continuity of history. There is no need to publish personal identifiers for the sake of explanation, but inside accounting you need to know exactly whose counter is being compared with whose.

The scope of the log is also significant. NVMe allows general information and, if supported by the device, namespace-specific information; the possibilities and the chosen query determine the interpretation. nvme-cli SMART log documentation describes the log access and NSID parameter. Output obtained through the path of one namespace cannot automatically be considered statistics of only that namespace. If the tool requests a general log, a larger volume may appear next to one familiar device name.

On a multi-path system, the same logical statistic may be read multiple times. Adding two copies of a report does not turn them into two independent sources of writes. This is especially insidious for a dashboard that habitually summarizes rows of devices. Before aggregation, it is necessary to establish which values actually belong to disjoint regions. Two available access paths do not prove two different drives and two separate wear histories. Topology enters into the meaning of the sum even before the choice of graph units.

Rounding creates additional uncertainty over a small interval. The log reports the number of thousands of 512-byte units, rounded up, rather than the exact byte number without losing the low-order part. In a simple model of such rounding, the error in the difference between two positive comparable readings is less than one scale in absolute value, that is, 512,000 bytes. For hourly gigabyte growth this is a small limit. For an observation of several kilobytes, it is capable of determining the entire visible result. More decimal places after division do not return discarded information.

Zero growth therefore does not always mean the literal absence of any writes. A small volume may not have crossed the next reporting scale limit. And the first change by one does not have to mean that exactly 512,000 new bytes have passed between two reads. The zero field itself requires special caution: in the specified specification, zero may mean that the value is not reported. The monitoring application must distinguish between the absence of a confirmed increase, unsupported information, and a valid positive counter. Otherwise, beautiful zeros become an unsubstantiated statement about the operation of the drive.

Hands hold two cards with blue bars of different heights over a dark table
ITNWS AI-generated conceptual illustration. Cards evoke readings taken at different times; bar heights do not encode the article’s data. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

If a telemetry read fails, the missing interval does not become a period of zero load. The next successful cumulative value usually allows you to calculate a longer window while maintaining continuity, but does not restore the missing graph shape. Substituted zeros will create a false dip and a false surge. It’s better to save the gap as a gap and name the actual difference interval. It is these small choices in the monitoring system that determine whether the subsequent output remains evidence about the drive or the effect of how the program filled in the missing data.

The host writes is not yet a NAND biography

Data Units Written is not a universal counter for physically programmed NAND bytes. The controller moves and services data internally, and a normal host counter does not list each such operation. You cannot calculate write amplification from its difference alone. The ratio would require a corresponding comparable quantity of internal writes with a known definition. It is also impossible to substitute the size of the occupied space instead: the capacity of the state and the amount of work over time measure different things. Our hypothetical gigabyte for now remains an observation of the exchange with the host.

For the same reason, the sum of the sizes of new files does not have to coincide with the increase. The file system writes its structures, the application changes its logs, one area can be overwritten many times. At the same time, small changes can be combined in memory before becoming separate requests to the drive. The SSD counter reflects activity at its own interface, not the intentions of the application program. If the user saved a document several megabytes in size, he did not thereby receive an exact contract for a few megabytes of hardware counter increment.

Deleting a file should not subtract the previous writes from the accumulated volume. The counter describes the work already completed, not the current occupancy. The release of logical addresses and subsequent processing by the controller have a different purpose. The operator can observe a nearly empty drive with a large write history without any inconsistency. Conversely, an archive, once filled with large files, can maintain a high occupied volume for a long time with little new growth. The status on the file manager screen does not replace the stream history.

Host Write Commands is a separate measure in the same family of observations. With compatible definitions, dividing the increase in byte volume by the increase in command count can give the average size of an accounted command. It is still not the size of a write system call or a user operation. The storage stack combines and splits work, and applications issue different kinds of requests. Averaging also hides the size distribution. The ratio is useful only after identifying the operations and data included in both counters, rather than merely because two fields appear side by side.

Percentage Used is often nearby. In the specification, this is the manufacturer’s estimate of the share of the resource used, rather than an arithmetic renaming of Data Units Written. A value of 100 does not necessarily mean immediate failure, and values above 100 are acceptable. Therefore, a constant host gain does not have to produce a perfectly linear percentage scale. If monitoring shows one percent after a substantial write volume, it has not yet proven that accounting has stopped. The assessment has its own methodology and update frequency, while the fancy word “health” in the interface usually hides these details.

smartctl manual is useful for understanding the output format and supported logs. But the universal utility does not assign one product the warranty terms of another. Matching the accumulated writes to the advertised TBW rating requires a specific model document and a suitable definition. Even a correctly translated host counter does not in itself become a solution to the warranty issue. Maintenance takes into account the manufacturer’s contract, conditions of use and other restrictions that one telemetry field does not contain.

Finally, Controller Busy Time should not be subtly substituted for the calendar interval between snapshots. This field takes into account its own protocol-defined busy time and is reported in minutes. Dividing the volume by it answers a different question than the average flow for the entire past hour. For short windows, the coarseness of that unit is also important. Two operators can correctly divide the same increment by different times and obtain different rates without an arithmetic error. The discrepancy will disappear only after an explicit indication of the denominator: the entire observation time or the accounted controller busy time.

There is also the issue of storing the number itself. The NVMe counter field is wide, while dashboards often convert every value to a familiar numeric type. For sufficiently large integers, a representation with limited accuracy ceases to distinguish between neighboring values. Then rare steps of the graph can belong to the parser. Storing a raw integer or suitable string representation preserves the possibility of accurate subsequent subtraction. Choosing a convenient data type should not imperceptibly reduce the resolution that the device actually provided. This is about telemetry processing, no such tool failure was measured here.

A longer history will show changes that a single number cannot explain. A new application may begin writing regularly; an overnight task may shift the pattern; a missing sample may widen the observation window. Keeping the identity, units and scope attached to the readings allows those changes to be investigated later. The log does not need to predict the date of failure to be useful. Its job is to preserve an honest history of the work crossing the SSD interface, leaving the cause of each change open to further evidence.

Sources & documentation

  1. NVMe Base Specification2.1, historical5August2024 ↗
  2. smartmontools NVMe print implementation ↗
  3. nvme-cli SMART log documentation ↗
  4. smartctl manual source ↗