zenfs · shipping · also ZenFS RocksDB plugin

ZenFS

ZenFS is a RocksDB filesystem plugin that maps database files to extents on zoned storage through a raw-device or zonefs backend.

Mapping: Files map to extents that each stay within one zone; multiple files can share a zone. Lifetime hints guide placement, but do not guarantee that all its data becomes obsolete together. Linux zonefs supplies zone files, not ZenFS's database-file mappings. [1] [2]

Reclamation: Releasing an extent reduces the zone's used-capacity counter. ResetUnusedIOZones resets an acquired, nonempty zone only when it has no used data. Deleting one file therefore need not reclaim a shared zone. [3] [2]

Optional migration: At revision 65d2720, a writable mount starts GCWorker when the persisted GC flag is enabled. Under free-space pressure it attempts to migrate eligible SST extents; the bundled formatting utility defaults enable_gc to false. This path qualifies the README's blanket no-GC description. [4] [5] [1]

Recovery: The 2021 design journals file-to-extent mappings. Current active-extent recovery uses recorded offsets and zone state, with inline lengths for sparse extents. Reconstructing file mappings does not establish database transaction validity. [6] [3]

Relations

related
RocksDB, Zoned namespaces (ZNS), Sorted string table, Zone Reset, zonefs, Z-LFS

Citations

  1. ZenFS README: RocksDB interface, backends and extent layout (65d2720). (accessed 2026-11-29)
  2. ZenFS zoned device code: ResetUnusedIOZones and lifetime-aware allocation (65d2720). (accessed 2026-11-29)
  3. ZenFS file I/O code: ClearExtents and Recover (65d2720). (accessed 2026-11-29)
  4. ZenFS filesystem code: GCWorker, Mount and MigrateExtents (65d2720). (accessed 2026-11-29)
  5. ZenFS formatting utility: enable_gc default and MkFS argument (65d2720). (accessed 2026-11-29)
  6. Bjorling et al. ZNS: Avoiding the Block Interface Tax for Flash-based SSDs. USENIX ATC 2021, section 4.2.1. (accessed 2026-11-29)

Further reading

  1. Hesela: ZenFS file deletion, zone sharing and optional migration. (accessed 2026-11-29)
Sources & caveats
  • Implementation claims are pinned to ZenFS 65d27200dac09c25eb9fc41d3502aba9f19a36d3; this is source review, not a device or crash-recovery experiment.
  • The 2021 paper describes a historical design. Its benchmark gains are not generalized to the later optional GC path. [6]
  • The enable_gc default describes the bundled formatting utility, not every deployment. Migration eligibility is limited to SST filenames in the inspected MigrateExtents path. [5] [4]

JSON: /data/terms/zenfs.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. ZenFS. Hesela. 2026-11-30. https://hesela.dev/terms/zenfs/