Research notes / Zoned storage
ZNS resource limits: why closing a zone may not unblock writes
11 October 2026 / Updated 6 November 2026 / Literature review and worked examples
A ZNS SSD can reject a write to an empty zone while plenty of capacity remains. Closing another partially written zone may not help: open-zone slots and active-zone slots are different resources.
On this page12 sections
Count states, not just writers
Open-zone usage counts implicitly and explicitly open zones. Active-zone usage also counts closed zones. A partially written zone that is closed therefore still occupies an active slot. These are namespace resource budgets, not counts of application threads. [1, section 2.1.1.4]
The synthetic snapshot below has four zones, an open limit of two and an active limit of three. Every command shown has completed successfully; there are no concurrent state changes. The final column counts empty zones that could be opened using the remaining slots, not guaranteed successful I/O.
| Snapshot | Zones A / B / C / D | Open / 2 | Active / 3 | Empty zones openable |
|---|---|---|---|---|
| Initial snapshot | explicit-open / explicit-open / closed / empty | 2 | 3 | 0 |
| Close the first partially written zone | closed / explicit-open / closed / empty | 1 | 3 | 0 |
| Finish that closed zone | full / explicit-open / closed / empty | 1 | 2 | 1 |
After closing A, the open count falls from two to one but the active count stays at three. D still needs an active slot. B can continue appending within its remaining capacity; reopening C would consume an open slot but no additional active slot. Finishing A frees an active slot, at a capacity cost.
Do not reset a live zone to resolve a resource alarm. Reset makes its old data inaccessible. Finish instead makes the zone full, preventing further writes until reset; neither operation is interchangeable with Close. [6]
The address span is not the writable capacity
ZNS distinguishes zone size from zone capacity. A smaller capacity leaves an unwritable tail inside the zone's address span. Applications must respect the capacity reported for each zone, not assume that the next zone boundary is their write limit. [2]
For a synthetic zone with 65,536 addressable LBAs, capacity 61,440 LBAs, 16,384 LBAs already written and 4,096 data bytes per LBA:
| Quantity | Calculation | MiB |
|---|---|---|
| Address span | 65,536 x 4,096 bytes | 256 |
| Writable capacity | 61,440 x 4,096 bytes | 240 |
| Unwritable tail | (65,536 - 61,440) x 4,096 bytes | 16 |
| Remaining before Finish | (61,440 - 16,384) x 4,096 bytes | 176 |
Finishing this partially written zone would strand 176 MiB of otherwise writable capacity until reset. That is separate from the 16 MiB tail, which was never writable in this geometry. Reserve policy must account for both the zone-state budget and usable bytes.
Sum usable capacity across the namespace
Do not budget writes from namespace address span alone. Sum each zone's reported capacity, then convert logical blocks to data bytes. Multiplying one sampled zone's capacity by the zone count assumes equal capacities. [2, zone capacity and zone size] This total describes geometry, not currently free application space. Full, read-only and offline zones additionally restrict immediate writes.
Consider four synthetic empty zones, each spanning 65,536 LBAs, with capacities 61,440, 61,440, 57,344 and 57,344 LBAs. At 4,096 data bytes per LBA, their address span is 1024 MiB, their combined usable capacity is 928 MiB, and the unwritable tails total 96 MiB. Using the first zone for all four would overstate capacity by 32 MiB. The calculation assumes a complete, stable inventory; it excludes LBA metadata and application reserves.
Check what a report actually contains. With Partial Report cleared, the Number of Zones field counts matching zones, even when the buffer cannot hold all their descriptors. With it set, the count covers fully transferred descriptors. A state-filtered report is not a namespace inventory. Collect all pages and check zone identities before summing capacities; matching a header count is not enough. [1, Figures 34-36 and section 3.4.2.1]
Refresh that inventory after relevant changes. ZNS 1.1 permits ZCAP to change on successful Reset when Variable Zone Capacity is supported. Completion reports whether an affected zone's capacity changed; a new zone report identifies the values. Without that capability, capacity cannot change without a namespace format change. [1, Figures 37, 41 and 48] Reset deallocates the zone's logical contents; it is not a harmless capacity probe or evidence of secure erasure.
Zone Append solves placement, not commit ordering
Regular writes target the current write pointer and need appropriate ordering. Zone Append names the zone; the controller chooses the actual write location and returns it on successful completion. Concurrent append requests can land in a different order from submission. Preserve the returned addresses in the application's mapping. [6]
An assigned address does not make a group of requests a transaction. The pinned ZNS 1.1 specification separately defines atomicity parameters and the append command's FUA persistence behavior, with no implied ordering of other commands. A recovery protocol must still persist and reconcile data and its mapping. [1, sections 2.1 and 3.4.1]
Linux ordering depends on the I/O path
Do not infer the ordering mechanism from the scheduler name alone. Upstream Linux 4.16 through 6.9 used scheduler-based zone write locking. Linux 6.10 introduced zone write plugging in the block submission path, removing the mq-deadline requirement for this ordering mechanism. Distribution backports and bypass paths still need separate checking. [7]
| Path | Where ordering is handled | What it does not promise |
|---|---|---|
| Linux 6.9 regular sequential-zone write | mq-deadline checks zone availability and locks the dispatched write. [8] | Correct application offsets or a transaction across zones. |
| Linux 6.10 blk-mq regular write | Per-zone plugging before request dispatch; an invalid next offset is rejected. [9] [10] | Repairing an out-of-order application stream. |
| Linux 6.10 native Zone Append | Bypasses this plug; the device assigns placement. [9] | One append in flight per zone or submission-order placement. |
| Linux 6.10 emulated Zone Append | Plugged, then converted to a regular write using the tracked pointer. [9] | Native command support in the device. |
Reset and Finish are not write barriers. In the inspected Linux 6.10 path they update pointer tracking without joining the write serialization queue. The caller must exclude in-flight writes to the affected zone. The kernel comments and dispatch cases make that responsibility explicit. [9, blk_zone_plug_bio]
Before comparing two runs, record the kernel build and backports, device and firmware, block-device stack, scheduler, and whether writes use ordinary, native-append or emulated-append operations. A userspace driver that bypasses the kernel block layer is a different path. This checklist is Hesela's diagnostic guidance, not a claim that changing a scheduler makes a workload faster or durable.
Close, Finish and Reset are different decisions
A zone write pointer is state-dependent. ZNS 1.1 makes it invalid in Full, Read Only and Offline states: it cannot then be interpreted as the next writable address or a committed-data length. [1, Figure 4]
Successful operations on an open, partially written zone; no concurrent state changes.
| Operation | Resulting state | Consequence |
|---|---|---|
| Close | Closed | Further writes remain possible; the zone still uses an active slot. |
| Finish | Full | Existing data remains; unused writable space is unavailable until reset. Open and active slots are released. |
| Reset | Empty | Previous data becomes inaccessible; the write pointer returns to the zone start. |
These are lifecycle operations, not interchangeable recovery commands. Reset is not evidence of secure sanitization, and neither Reset nor Finish restores a Read Only or Offline zone to service. [6] [1, sections 3.4.3.1.2 and 3.4.3.1.4]
A failed write does not mean an unchanged pointer
Linux zonefs documents a large write split across multiple block requests: partial failure can advance the device pointer even though the overall operation reports failure. Delayed errors discovered by fsync() can instead require reducing the exposed file size. Application-visible size and the last submitted offset are not substitutes for checking the outcome. [3, I/O error handling]
Application guidance: after an error, reconcile the current zone report and state with validated records and recovery metadata before choosing a retry location. A refreshed pointer cannot reconstruct a lost append completion or establish application commit. Before resetting a zone, preserve still-needed records and make their new mappings recoverable; do not reset merely to clear a write error.
The zero-value trap: raw fields versus decoded limits
NVMe Identify MAR/MOR values are unsigned, zero-based fields. Except for the all-ones sentinel, add one to obtain the zone count. Linux zonefs reports decoded maximum counts, where zero means no limit. Applying either convention twice produces a wrong budget. [1, Figure 48] [3, Runtime sysfs attributes]
Illustrative encodings, not a device measurement. The decoded column uses the Linux zonefs convention.
| Raw field | Decoded value | Meaning |
|---|---|---|
0x00000000 | 1 | 1 zone |
0x0000000d | 14 | 14 zones |
0xffffffff | 0 | No limit advertised by this field |
With raw MAR = MOR = 0 and two empty zones, only one can be opened within the advertised budgets. Passing those raw zeroes straight to a helper that expects decoded limits would incorrectly allow both. The published decoder checks the unsigned 32-bit range before conversion; it does not parse device bytes or make I/O safe.
What the research actually establishes
ATC 2021: Bjorling and colleagues compared zoned and conventional interfaces on the same SSD hardware, with adapted f2fs and RocksDB/ZenFS. Table 3 reports a 2,048 MiB zone size, 1,077 MiB zone capacity and fourteen active zones for that device. These are device characteristics, not ZNS-wide constants. Section 5 used Linux 5.9 and RocksDB 6.12. Application layout, preconditioning and spare-space choices belong to the comparison, not just the command set. [4]
Moving reclamation to the host also does not abolish application write amplification: the same paper's Table 2 reports RocksDB write amplification near twelve for its tested SST sizes. Device-side and database-level amplification have different numerators and denominators. Do not relabel a device-side result as a whole-system guarantee. [4, Table 2 and section 5.2]
OSDI 2023: Min and colleagues characterized one commodity small-zone SSD using fio/SPDK, then evaluated eZNS with RocksDB and mixed workloads. Shared dies and write-cache contention still produced interference between zones. Their allocator and scheduling layer improved specific experiments, not a universal latency bound. Its hardware contract assumes particular zone placement behavior; section 4.2 explicitly cautions that firmware may use another policy. Section 4.4.4 also acknowledges copying overhead when reclaiming leased resources. [5]
Recovery detail: the 2021 ZenFS design records file-to-extent mappings in dedicated journal zones and replays that journal on recovery. Its active-zone budget also reserves room for the journal, WAL and compaction. This is a concrete example of why the data-zone pointer alone is insufficient to recover application objects. It describes that implementation, not a requirement imposed on every ZNS application. [4, section 4.2.1]
Reset completion is not an erase stopwatch: the eZNS paper's device model invalidates mappings when Reset completes and performs NAND erasure later. That observation is device-specific; the command's logical result must not be interpreted as evidence that all physical erasure finished, or as a universal reset-latency bound. [5, Figure 3 and section 3.2]
ATC 2025: Hwang and colleagues' Z-LFS allocates active zones according to log-stream demand and changes metadata placement. Its testbed used Linux 5.17.4, one commodity ZNS model and 384 active zones. That kernel predates upstream zone write plugging. The microbenchmarks used 4 KB requests through filesystems but 128 KB requests for raw-device comparisons; several F2FS baselines also needed a conventional SSD for metadata. These are different paths and geometries, not a controlled test of scheduler choice. [11, sections 4 and 6.1-6.3]
The paper supports workload-aware resource allocation, but does not establish the same gains on a modern kernel, another SSD or native Zone Append. Reproducing it requires preserving the baseline's metadata device and request sizes before changing one factor. We reviewed the methods, not reproduced the performance results. [11]
These findings are compatible: removing one source of background work can improve performance without providing isolation from every competing workload. A zone boundary is not evidence of a dedicated die or a latency service-level guarantee.
A practical diagnosis
Start with the command's actual status and a refreshed zone report. Distinguish a full zone, a capacity boundary and exhausted resource budgets. Then inspect the decoded open and active limits exposed by the software layer. Raw NVMe MAR/MOR are zero-based, with all bits set meaning no limit; a raw zero does not mean unlimited. [1, Figure 48]
Linux zonefs exposes separate maximum and current counts for write-open and active sequential files. Its maximum-count attributes use zero for no limit. With explicit-open, resource acquisition moves to opening a file for writing; closing a partially written file still leaves an active zone. This lets software notice scarcity earlier but does not create extra resources. [3]
Hesela's design implication: budget for application metadata and reclamation progress, not only foreground writers. Before retiring a zone, decide where its surviving records and mappings will remain recoverable. Test the actual firmware, host stack and workload on disposable media.
Scope and reproducibility
No SSD benchmark, power-loss experiment or reproduction of the cited papers was performed. The numerical worked examples are deterministic synthetic examples generated at build time from the published calculation module, covered by unit tests. It is not a controller emulator and does not model optional excursions, races, failures or persistence.
The specification reference is pinned to revision 1.1 to make the cited semantics traceable, not to claim it is the newest edition. Check the applicable device revision and supported features before implementation.
Corpus: ZNS, active-zone limit, open-zone limit, zone capacity, Zone Append. Related: discard is not zeroing and visibility versus durable commit.
Primary sources
- NVM Express, Zoned Namespace Command Set Specification, revision 1.1 (18 May 2021), Figures 4, 37, 41, 48 and 53; sections 2.1.1.2.1.1, 3.4.3.1.2, 3.4.3.1.4 and A.5. Copyright 2007-2021 NVM Express, Inc. ALL RIGHTS RESERVED.
- Western Digital, Zoned Storage: NVMe Zoned Namespaces devices, capacity and resource limits.
- Linux kernel documentation, zonefs: sequential files, explicit-open and runtime sysfs attributes.
- Bjorling, Aghayev, Holmberg, Ramesh, Le Moal, Ganger and Amvrosiadis. ZNS: Avoiding the Block Interface Tax for Flash-based SSDs. USENIX ATC 2021, pp. 689-703, sections 3-5 and Table 3.
- Min, Zhao, Liu and Krishnamurthy. eZNS: An Elastic Zoned Namespace for Commodity ZNS SSDs. OSDI 2023, pp. 461-477, sections 3-5.
- Western Digital, Zoned Storage: device models, zone types, management commands and Zone Append.
- Western Digital, Zoned Storage: Write Ordering Control; locking through Linux 6.9 and plugging from Linux 6.10.
- Linux v6.9, block/mq-deadline.c: deadline_fifo_request, deadline_next_request and request dispatch.
- Linux v6.10, block/blk-zoned.c: blk_zone_wplug_prepare_bio and blk_zone_plug_bio.
- Linux v6.10, block/blk-mq.c: blk_mq_submit_bio and zone plugging before request allocation.
- Hwang, Lee, Kim, Eom and Son. Z-LFS: A Zoned Namespace-tailored Log-structured File System for Commodity Small-zone ZNS SSDs. USENIX ATC 2025, pp. 547-562, sections 4 and 6.1-6.3.
Original literature review: 11 October 2026. Lifecycle, encoding and recovery evidence checked: 14 October 2026. Linux ordering paths and Z-LFS methods checked: 16 October 2026. No unverified DOI is asserted.