Search

A technology, a device or an article

Several devices inside one SSD: what an NVMe namespace promises

Addressable space, capacity and physical independence are different properties. Reading the NVMe interface and the boundaries of logical isolation.

Separate transparent volumes in one glass vessel representing logical SSD spaces.
Separate transparent volumes in one glass vessel representing logical SSD spaces. Conceptual illustration created with AI.ITNWS · Original ITNWS AI-assisted editorial illustration

The NVMe definition of a namespace does not promise a separate physical SSD. It describes a collection of logical block addresses accessible to host software. That small difference determines much of what follows. An operating system can display several devices while their memory, controller and some internal resources remain shared. Several names on a screen can be an accurate view of the interface. The mistake begins when the number of names is used to infer physical properties that the definition never guaranteed.

Examine the actual promise. The NVM Express namespace explanation describes a logically addressable space. A controller uses an NSID to identify the namespace to which a command applies. Consequently, the same logical block number in different namespaces does not represent the same host address. Namespace context is part of the meaning of an access. This does not establish that the two regions occupy different NAND chips or that their background operations are entirely independent.

Where the partition comparison ends

An ordinary partition also divides a visible block range, making the analogy natural. A partition, however, is defined by a layout inside an already available block device. A namespace is an object of the NVMe interface presented through a controller. The host may then create partitions and filesystems on it. These mechanisms operate at different descriptive boundaries. Substituting one term for another is convenient in conversation but unhelpful when discussing management, available capabilities and the scope of commands.

Imagine a hypothetical system with two visible namespaces. Each can contain its own filesystem. That does not make the first filesystem aware of free space in the second or able to consume it automatically. It sees the range and properties of its own block device. Redistributing underlying capacity requires the appropriate device and management support. Two mounted directories do not provide their filesystems with a magical shared agreement for reallocating NAND capacity between them.

Even the device name deserves careful reading. In typical Linux naming, something like nvme0n1 helps distinguish the controller and namespace. It is not proof of permanent identity across every discovery or enumeration change. Systems requiring stable data binding use appropriate identifiers and the properties of their actual stack. A short name cannot establish physical placement, independent failures or mandatory support for every function that appears somewhere in the NVMe specifications. It describes a discovered object rather than a complete contract for the underlying hardware.

Reading fields rather than a label

NSZE reports namespace size in logical blocks. That statement contains two conditions: a block count and a format defining the data size of each block. Equal numerical NSZE values under different formats do not imply equal byte counts. Reading an Identify response therefore requires relating its fields rather than selecting the largest number and calling it capacity without units. The interface is precise enough that readers do not need to replace those relationships with a guess.

Take a simple hypothetical calculation. One million blocks containing 4096 data bytes each gives 4,096,000,000 bytes. This decimal byte count is not exactly four binary gibibytes. The example describes no drive model and recommends no namespace size. It shows where a unit error enters: first multiply the number of addressable elements by the data size of each element, then choose how to express the result. A field does not turn into bytes because a utility happens to place it near the word capacity.

NCAP describes the number of logical blocks that may be allocated at a time. NUSE concerns current utilisation at the level defined by the controller’s reported information. Thin-provisioning capabilities make these distinctions especially visible. A difference between the fields cannot simply be declared filesystem free space. A filesystem keeps its own account of files, metadata and release. The device sees different objects and receives information through supported operations. These are different accounting systems, not necessarily synchronised labels attached to one quantity.

Deleting a file does not have to instantly make its blocks known to the device as unused. Filesystem decisions reach controller information through block-deallocation support and the behaviour of the complete command path. NUSE is therefore not a universal count of useful user files. The reverse inference fails too: filesystem free space does not directly report physical NAND reserve distribution. Reading the interface carefully preserves both boundaries instead of assigning one report the job of an entirely different accounting system.

In a fully provisioned case, the distinction between size and allocatable capacity may be inconspicuous during everyday use. That does not make the fields pointless. An interface must describe devices with different capabilities. Applications need to consider reported support rather than assume every possible standard feature exists in every consumer SSD. NVMe denotes a family of interface rules. It does not grant the owner of every model an arbitrary number of namespaces and every management operation imaginable.

Distinct index tabs in a shared folio representing separate addressable spaces.
Distinct index tabs in a shared folio representing separate addressable spaces. Conceptual illustration created with AI. — ITNWS · Original ITNWS AI-assisted editorial illustration

Created does not mean attached

Namespace management and attachment to controllers are separate relationships. NVM Express documentation discusses creating an object separately from attaching it. An existing namespace does not imply that every controller in a subsystem immediately presents it to a host. This distinction matters for configurations in which access is explicitly arranged. A collection of objects and connections that the host is actually able to address is a better picture than a familiar directory of partitions on one disk.

Namespaces may be private or shared in relation to controller attachment. Shared visibility does not permit several uncoordinated filesystems to write safely to the same data. A controller can provide access without inventing a protocol for shared metadata ownership on behalf of software. If several hosts can reach one region, correct joint use also depends on the software stack. Several paths to an object and correct concurrent modification of that object are separate engineering promises.

The NVMe base architecture overview places namespaces alongside controllers and the subsystem. That context is more useful for a practical configuration than a drawing of several rectangles inside an SSD. Rectangles can represent distinct address meanings. They do not establish which resources are physically dedicated, what happens when a shared channel saturates, or which event can make every region unavailable at once. Those properties belong to the corresponding capabilities and documentation of the actual device.

For example, another namespace’s workload may perform intensive writes. Addressing in the first namespace remains correct, but its request service times need not remain unchanged. Shared flash management, controller throughput and a common interface can connect the regions’ behaviour. Address isolation answers which data a command refers to. Performance isolation asks how someone else’s activity affects service. The first answer does not automatically contain the second. Separate block devices can be useful without promising separate physical resource budgets.

The word security needs the same discipline. A distinct addressable region helps organise access, but its existence alone proves no complete set of protective properties. Controller attachment, management permissions, supported mechanisms and real trust boundaries matter. Software authorised to reconfigure the subsystem occupies a different position from an ordinary application given access to one block device. Discussing protection without stating who is permitted to do what omits the central question rather than answering it through a diagram.

None of this makes namespaces an empty formality. A suitable logical boundary helps distribute regions among applications, present the required devices and manage properties when the platform supports them. Their usefulness does not require invented physical independence. A doorway can have a genuine purpose without turning neighbouring rooms into separate buildings. A technical promise is sufficient when it matches the task and any additional required properties are supplied elsewhere in the design.

Scope is part of a command too

Formatting, deletion and data-clearing operations require particular care. The existence of an NSID does not make every administrative command safely restricted to one namespace. Commands and features have different scopes; controller capabilities also matter. Several namespaces do not justify assuming that an operation intended to clear a device affects only a chosen logical object. Establishing that needs exact documentation, not a casual extension of the analogy with deleting one partition. Administrative operations should be understood by their own defined effects.

There is deliberately no sequence of commands to repeat on a live drive here. The subject is reading interface promises rather than modifying a device containing someone’s data. Practical configuration starts by establishing what is supported, what is occupied and what the proposed operation means. That is not a ceremonial preface. Scope belongs to the technical meaning of the operation just as a block number and namespace context belong to the meaning of an ordinary data access.

Physical failure brings us back to the opening. If an SSD stops responding because of a common controller failure, its namespaces do not become available merely because each had a separate name. A protection design should not count them as independent physical copies without another basis. Dividing tasks on a device and surviving loss of the device are different requirements. The namespace interface can serve the first within its proper scope without automatically signing a contract for the second.

The same boundary appears in performance measurement. Several namespaces can organise several independent host streams. Whether they outperform one stream completing the same total task depends on implementation and workload. Additional names do not create NAND channels from nothing. They may help exploit existing capabilities or separate work more clearly, but the effect must be tested for the relevant task. We performed no such measurements for this article, and the illustration of a shared vessel is not presented as experimental evidence.

The definition was shorter than its consequences. A host-accessible collection of logical block addresses gives a precise starting point. It explains the identifier, why size is measured in blocks, why creation differs from attachment and why a filesystem keeps separate accounts. Each additional promise about latency, protection, physical placement or failure needs its own foundation. It does not appear inside the definition simply because a user sees several separate devices in a familiar interface.

There are still several names on the screen. They now mean exactly what the interface promised: distinct spaces for addressing data within a particular NVMe configuration. That is useful independence. It does not need to impersonate several physical SSDs.

Sources & documentation

  1. NVM Express: namespaces ↗
  2. NVM Express: base architecture ↗