Search

A technology, a device or an article

SSD capacity in NVMe: why NSZE, NCAP and NUSE are different

NSZE, NCAP, and NUSE describe different sets of SSD logical blocks. A hypothetical ledger explains byte conversion and percentage denominators.

A large compartment tray, a translucent frame, and occupied blue cells.
ITNWS AI-generated conceptual illustration. A metaphor for namespace accounting quantities; cell positions do not define permitted LBA ranges.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Let a hypothetical namespace ledger contain 1000000, 800000 and 300000. All values are expressed in logical blocks. If you call each of them simply “SSD capacity,” you’ll get three divergent answers about one object. The error is not in arithmetic: the metrics describe different sets. NSZE specifies the addressable size of the namespace, NCAP limits the number of blocks that can be allocated at once, NUSE shows the current allocation. Before converting such a ledger into gigabytes and percentages, you need to save the question that each column answers.

This is an educational design with support for thin provisioning, and not the result of reading a specific drive. We deliberately chose a small size so as not to hide the meaning behind long numbers. In the libnvme library nvme_id_ns structure description all three fields are associated with the formatted logical block size. You cannot yet find out the number of useful bytes from one string of numbers: first you need the selected LBA format. The fields themselves are also not a list of installed NAND crystals.

In our model, the logical block contains 4096 bytes of data. Then NSZE corresponds to 4096000000 bytes of addressable space, NCAP – 3276800000 bytes of allowed concurrent allocation, NUSE – 1228800000 bytes of current allocation. The difference between NCAP and NUSE is 500,000 blocks, or 2048000000 bytes. This is not yet free space in the file system. We calculated the remainder according to the controller’s namespace accounting; the name of the result must retain this level of description, otherwise the exact number will become the answer to someone else’s question.

Field Logical blocks in the example Bytes at 4096 bytes of data per block
NSZE 1000000 4096000000
NCAP 800000 3276800000
NUSE 300000 1228800000
NCAP minus NUSE 500000 2048000000

The table has a simple condition: the same selected format is applied to all rows. You cannot multiply one column by 512, another by 4096, and then explain the difference by the features of the controller. But the same unit does not make the indicators interchangeable. NSZE refers to the size of the logical address space; NCAP – to the limit of allocation within it; NUSE – to the current state. In the correct model under consideration, NUSE ≤ NCAP ≤ NSZE holds. These inequalities limit the set of acceptable readings rather than force them to be equal.

Percentage needs its own denominator

Let’s divide NUSE by NCAP: 300000 / 800000 = 0.375, that is, 37.5%. Let’s divide the same 300,000 by NSZE: we get 30%. Both calculations are arithmetically correct. The first shows the share of the allowed simultaneous allocation, the second shows the share of the addressable size. If the interface only leaves a “used” label, the user cannot reconstruct which ratio is being shown. Switching the denominator can change the color of the indicator without a single additional write to the SSD. Therefore, the meaning of percentage relates to the formula of the product, not just the accuracy of the data source.

The NSZE number is usually read as the number of blocks rather than the last block number. For normal zero-based numbering, the last valid LBA is one below the quantity. If the namespace has 1,000,000 blocks, address 1,000,000 does not become valid because it repeats the value of the field. This difference is evident when calculating range ends and query validation. The controller reports the size of the address set; the application sometimes erroneously saves it as an inclusive upper bound. One extra unit here changes the validity of the command, not the rounding of the displayed capacity.

NCAP, in turn, should not be imagined as a guaranteed allocated contiguous initial segment of addresses. The indicator limits the number of blocks that can be allocated in a namespace at the same time. The choice of logical addresses and the supported placement model are determined by the corresponding interface. The conceptual picture with nested rectangles helps distinguish the sizes, but does not prove that the first 800,000 addresses have special physical cells, and the last are behind an invisible fence. The cardinality of the allowable allocation and the geometry of addresses are different properties.

In NVM Express NVM Command Set Specification 1.3, dated July 31, 2026, Identify Namespace definitions are accompanied by capability attributes. Support for thin provisioning in NSFEAT is essential. For a namespace without such a mechanism, you cannot expect to see a convenient live counter of written files in NUSE: the corresponding rules allow a value equal to NCAP. Equality does not prove that the file system is full. It may be a property of the reporting model that the reader has not yet taken into account.

A pencil composition with nested frames over a conceptual SSD grid.
ITNWS AI-generated conceptual illustration. Conceptual accounting scales, not NAND placement or a measurement of an actual device. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Now imagine that the file system created a large sparse file. Its logical length can significantly exceed the blocks actually allocated to it. Already at this level there are different quantities: the length of the file and the space occupied by it. None of them become NUSE directly. Between the file objects and the namespace are the metadata placement, the file system allocator, possible intermediate layers, and deallocation commands. The sum of file lengths and the number of allocated logical blocks of the controller can differ for completely normal reasons. To match them, a description of the entire path is required, and not a guess from the similar word used.

Deleting a file also does not immediately reduce NUSE. The file system may free its blocks and defer the lower-level notification, merge it, or not send it under this configuration. The controller, for its part, takes into account operations according to the rules of the supported command set. Therefore, a snapshot before and after deletion is not a simple test of the meter’s serviceability. First you need to establish which messages have reached the namespace and what exactly their completion undertakes to change. No such commands were sent here, and the material does not suggest a drive erase operation.

The opposite situation is also possible: a large NUSE does not mean a large number of user files. Previously written logical blocks, overhead, and lack of appropriate deallocation are capable of maintaining the allocation. Storage accounting does not know the human concept of “this directory is no longer needed.” It has access to a particular set of commands and addresses. If visual monitoring promises remaining space for an application, it should choose a file system metric or explicitly explain intermediate assumptions. The hardware origin of a number does not make it more correct for any task.

The block size changes the conversion, not the name of the set

Let’s check the sensitivity of our calculation. In another standalone example, if the same numeric fields refer to 512 bytes of data on the LBA, the results would be 512000000, 409600000, and 153600000 bytes. This is eight times less than the values in the original table. The ratios of 37.5% and 30% will remain because the common factor cancels. Thus, an erroneous LBA size is capable of leaving the percentage convincing and at the same time corrupting all byte values. The consistency of one derived measure does not automatically check the validity of the original units.

This comparison does not mean that the actual namespace will retain the same counters after changing the format, or that the formatting is safe for the data. We compared two independent hypothetical ledgers. A real format change has its own requirements and consequences. You can’t turn algebraic substitution into a guide to saving the contents of a drive. Mention of format selection is necessary for reading indicators, and not as an invitation to change a working configuration. It is this limitation that preserves the usefulness of calculation without fictitious experience and dangerous operational ambiguity.

The selected LBA format may also have metadata bytes. When calculating the user data space, it is necessary to distinguish between the size of the block data and additional metadata, their transmission mode and purpose. Simply adding everything visible to each interface digit can confuse different definitions of capacity. The table above clearly uses 4096 bytes of data per block and does not model the extended format. The number of physical storage bytes, service redundancy, and internal SSD overhead are not derived from it.

The nvme-cli documentation for id-ns describes getting the Identify Namespace structure and options for presenting the response. It is important to link the snapshot to the desired controller and NSID. Multiple namespaces can belong to the same subsystem, and the shared drive does not have to match the single selected logical entity. The identity of the device, the selected format, and the time of verification form the context of the number. If monitoring has lost this information, comparing yesterday’s and today’s capacity may accidentally compare different objects while maintaining a completely plausible unit.

The initial values are presented in a specific protocol format. Linux NVMe definitions show a 64-bit little-endian representation for the fields. The library or utility usually performs the required conversion, but the custom parser must know whether it is reading raw bytes or an already converted number. Additional byte swapping after the finished decoder is just as erroneous as not doing it before reading the raw data on another platform. A beautifully formatted huge result is not proof of huge capacity.

NUSE itself also cannot be used as a NAND wear counter. It describes the currently allocated logical blocks, and not the total bytes written over the life of the device. Rewriting the same address can preserve the number of allocated blocks with additional internal work. Compression, spare areas, and garbage collection, if they exist in the implementation, are on a different level. From the NUSE/NCAP ratio you cannot get write amplification, the remainder of programming cycles, or the percentage of health. Each such statement would require different definitions and evidence.

Summing multiple namespaces requires the same care. If their logical model uses common underlying resources, the sum of the addressable sizes does not yet prove that all addresses can be simultaneously provided with independent physical capacity. The supported mechanisms and guarantees must be read in their own scope. Conversely, a single namespace may have access to a volume that cannot be fairly described by a simple chip count based on the appearance of the device. The protocol communicates logical obligations; physical inventory and distribution policy cannot be reconstructed from three fields without additional data.

The calculation concerns an ordinary block namespace using the NVM Command Set in an accessible state. The specification separately requires NUSE to be cleared for ANA Inaccessible or ANA Persistent Loss when the controller supports that reporting. Such a zero does not mean all files were freed: it concerns the relationship between the path and namespace. Availability state therefore belongs in the interpretation context alongside NSID and format.

The practical meaning of the ledger depends on the decision. To check the validity of an LBA, you need an addressable range. Understanding the allocation limit requires NCAP and the supported model. To monitor its current state, NUSE with capability clauses is useful. The question “will a new file fit here” also requires the file system and properties of the upcoming placement. These questions are related, but do not have to have one universal numerical answer. A transparent interface can show several indicators if you name each one accurately enough.

All sources verified November 4, 2026; the document date is separate from the date of verification. A new SSD model, real free space measurement and namespace changes are not announced. There are three different numbers left in the original table, and now this is the normal result: one set is addressed, another limits concurrent allocation, and the third describes the current state. A percentage for an SSD becomes meaningful when the numerator, denominator and selected unit can be restored nearby. Without them, even impeccable arithmetic does not tell what exactly was occupied.

Sources & documentation

  1. NVM Express Base Specification 2.0e, 29 July 2024 ↗
  2. libnvme: nvme_id_ns structure, June 2026 ↗
  3. nvme-cli: nvme-id-ns documentation ↗
  4. Linux NVMe protocol definitions ↗
  5. NVM Express NVM Command Set Specification 1.3, 31 July 2026 ↗