{
  "slug": "active-zone-limit",
  "term": "Active-zone limit",
  "aliases": [
    "maximum active zones"
  ],
  "definition": "An active-zone limit caps the zones simultaneously in implicitly open, explicitly open or closed states in a zoned namespace.",
  "note": "A closed, partially written zone still counts, even when no thread writes to it. The Linux max_active_zones attribute caps the sum of zones in the explicit open, implicit open and closed states, and 0 there means no limit. [linux-abi-zoned]\n\nRaw NVMe MAR = 0 permits one active zone; 0xffffffff denotes no advertised limit, and other raw values decode to value + 1. The 4-byte MAR field sits at bytes 4 to 7 of the zoned Identify Namespace data structure, and the open-zone limit MOR must not exceed it. [zns-spec]\n\nLinux zonefs instead uses decoded zero for no limit. Its max_active_seq_files value always equals the device maximum, and nr_active_seq_files cannot exceed a non-zero maximum. Budget reclamation and metadata activity as well as foreground streams; the limit is not a free-byte counter. [zonefs]",
  "status": "shipping",
  "advantages": [
    {
      "text": "An advertised limit lets a host plan its concurrent write streams before writes fail with errors.",
      "citationIds": [
        "zonefs"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Releasing an active slot requires finishing or resetting a zone, which either gives up its remaining writable capacity or discards its data.",
      "citationIds": [
        "zns-spec"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "related": [
    "zns",
    "open-zone-limit",
    "zone-capacity",
    "zone-finish"
  ],
  "citations": [
    {
      "id": "zonefs",
      "title": "Linux kernel documentation, zonefs: sequential files, explicit-open and runtime sysfs attributes.",
      "url": "https://docs.kernel.org/filesystems/zonefs.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "bjorling",
      "title": "Bjorling et al. ZNS: Avoiding the Block Interface Tax for Flash-based SSDs. USENIX ATC 2021, pp. 689-703, sections 3-5 and Table 3",
      "url": "https://www.usenix.org/system/files/atc21-bjorling.pdf",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela-zns",
      "title": "Hesela: ZNS resource limits and worked examples",
      "url": "https://hesela.com/analyses/zns-open-active-zone-limits/",
      "accessed": "2026-10-11"
    },
    {
      "id": "zns-spec",
      "title": "NVM Express Zoned Namespace Command Set Specification 1.1, Figure 48 and sections 2.1.1.4, 3.4.1 and 3.4.3",
      "url": "https://nvmexpress.org/wp-content/uploads/NVM-Express-Zoned-Namespace-Command-Set-Specification-1.1-2021.06.02-Ratified.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "linux-abi-zoned",
      "title": "Linux 6.14 stable ABI: sysfs-block queue/max_active_zones",
      "url": "https://docs.kernel.org/6.14/admin-guide/abi-stable.html#abi-sys-block-disk-queue-max-active-zones",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "zns-spec is NVMe ZNS Command Set 1.1, re-read 2026-10-23 at Figure 48 for the 0's-based MAR and MOR fields and the FFFFFFFFh no-limit value.",
    "zonefs and linux-abi-zoned were read for max_active_seq_files and the max_active_zones state sum with zero meaning no limit.",
    "A companion analysis of open and active zone limits is listed but not used for any fact here.",
    "The zone-reset entry links here because a zone reset is one way to release an active-zone slot."
  ]
}
