Manuscript Offprint

arXiv:2610.05554

RetainZ: Reclaim-Time-Aware Placement for AI Checkpoints on Zoned SSDs

Minxing Chu, Ruoxi Yang

Minxing Chu 1,2^{1,2} Ruoxi Yang 3^{3}

1^{1}Harvard University

2^{2}Brown University

3^{3}Tufts University

Cambridge, MA, USA

Providence, RI, USA

Medford, MA, USA

minxing_chu@{g.harvard.edu, brown.edu}

ryang11@tufts.edu

Abstract—Solid State Drives (SSDs) are becoming the dominant medium for performance-critical storage. Zoned Namespace (ZNS) SSDs are getting more and more attractive because sequential writes and explicit zone resets reduce address-mapping, over-provisioning, and internal garbage-collection costs. However, reclaiming space requires resetting an entire zone, so deleting one file does not free its space while other files there must be kept. This erase-before-write constraint becomes a bottleneck for write-intensive workloads, particularly AI checkpointing during model training, where frequent saves of model and optimizer state compete for space with long-retained checkpoints. We observe that retention policies inherently encode when data can be retired, avoiding the need for a learned lifetime predictor. We present RetainZ, a storage backend that translates these policies into explicit reclaim epochs. Its allocator isolates long-retained data and groups objects with nearby reclaim epochs, balancing delayed space reclamation against unused space at zone ends. Evaluated on FEMU with multi-tenant streams and checkpoint manifests up to Pythia-1B, RetainZ reduces space occupied by deleted data and unused zone tails by 41.7% and mean per-input checkpoint p99 latency by 47.5% at 84% target load compared with the allocator of ZenFS, an established lifetime-aware ZNS backend, and lowers host write amplification from 1.165 to 1.003.

Index Terms—Zoned SSDs, checkpointing, retention semantics, data placement, garbage collection, cross-layer optimization.

I. INTRODUCTION AND MOTIVATION

The demand for high bandwidth and low latency has made Solid State Drives (SSDs) a mainstream component of modern data centers [1]. However, delivering that performance through a conventional block interface incurs costs that arise from how flash stores data. NAND flash is programmed in pages but erased in blocks. As a result, supporting arbitrary overwrites requires address translation, spare capacity, and garbage collection that copies valid data before erasure. These overheads limit sustained write performance and reduce the storage capacity available to applications.

Zoned Namespace (ZNS) SSDs offer an attractive way to reduce these overheads. The interface partitions the logical address space into zones and requires sequential writes within each zone. Host software selects the zone for each write and must reset an entire zone before reusing its written space. This division of responsibility reduces the SSD controller's memory requirements and the capacity reserved for internal management, while reducing I/O delays caused by device-side garbage collection under sustained write-intensive workloads [2].

However, reclaiming entire zones becomes costly when files with different lifetimes are stored together. Deleting a short-

Code and reproducibility artifacts: https://github.com/DonaldLucy/RetainZ.

Checkpoint C1

Created: Epoch 1

Retires: Epoch 7

Size: 60% zone

Hint: medium

Checkpoint C2

Created: Epoch 2

Retires: Epoch 13

Size: 40% zone

Hint: medium

Checkpoint C3

Created: Epoch 3

Retires: Epoch 7

Size: 40% zone

Hint: short

Checkpoint C4

Created: Epoch 8

Retires: Epoch 13

Size: 60% zone

Hint: medium

Data distribution across zones after C4 is saved at Epoch 8

ZenFS-Alloc: 2 occupied zones

C2

C3 deleted

unused

C4

unused

Deleted + unused space = 1 zone

RetainZ: 1 occupied zone

C1 + C3 reset at Epoch 7

C2

C4

No deleted or unused space

Checkpoint runtime

retention events

RetainZ backend

allocation + journal

ZNS namespace

write / read / reset

Fig. 1. RetainZ retains the same live data in fewer occupied zones.

lived file does not free its space if another file in the same zone must be retained. To reclaim that space, the backend must wait until the remaining files can be deleted or copy them elsewhere before resetting the zone. As the device fills, the shortage of free zones and the bandwidth spent on copying can significantly delay incoming writes. This constraint is particularly relevant to AI checkpointing during model training. Frequent saves of model and optimizer state generate large, mostly sequential writes [3]. Recent recovery checkpoints are replaced as training progresses, while selected snapshots are retained much longer. Therefore, the backend must support rapid turnover of large files alongside long-retained data, making timely space reclamation essential for successive saves.

Prior work provides complementary optimizations at the training-runtime and storage levels. At the runtime level, these optimizations reduce training pauses and storage traffic during checkpoint creation. CheckFreq shortens these pauses by allowing checkpoint state copying and storage writes to proceed concurrently with training computation. It also adjusts the number of training iterations between saves to keep checkpoint overhead within a target budget [4]. FastPersist writes checkpoint data to multiple SSDs in parallel and allows independent training computations to continue during these writes [5]. Reducing saved data also lowers this overhead. Check-N-Run uses differential checkpointing to save modified model state and quantization to represent saved values with fewer bits [6].

At the storage level, prior work improves file placement and zone reclamation to reduce the cost of recovering usable space [7]−[9][7]-[9]. Placing files expected to be deleted at similar times in the same zone leaves less live data to copy when that zone is reclaimed. ZenFS, a RocksDB storage backend for ZNS SSDs, groups files using coarse lifetime hints that distinguish short-lived from longer-lived data [10][10]. Prophet

This work has been submitted to IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

estimates when individual database files will be deleted and groups files with similar predicted deletion times [11].

However, these methods do not explicitly use the runtime retention rules that determine when a checkpoint can be deleted to guide placement. Our key insight is that, for AI checkpointing, the training runtime can provide these deletion conditions before checkpoint data are written. The conditions follow directly from the runtime's retention policy, which specifies the events that make each generation eligible for deletion. Exposing them to the storage backend allows it to choose which generations share zones according to their retirement conditions, grouping data that can be reclaimed together.

Training frameworks such as Megatron and TorchTitan support policies that retain a limited number of recent checkpoint generations [12], [13]. Under a policy that keeps the three most recent completed generations, generation 17 becomes eligible for deletion once generation 20 has been durably saved. The runtime can specify this condition when generation 17 is created and pass it to the storage backend with the write request. Using these retirement conditions effectively requires balancing timely reclamation with efficient use of zone capacity. Assigning each generation to separate zones makes its space independently reclaimable, but can leave unused space at zone ends and consume the device's limited active-zone slots. Sharing zones improves packing, yet combining generations with distant retirement events delays space reuse.

We present RetainZ, a zoned storage backend that connects runtime retirement conditions to zone placement and reclamation. Figure 1 compares RetainZ with the ZenFS allocator (ZenFS-Alloc), illustrating how grouping checkpoints that retire together allows entire zones to be reclaimed without relocating live data. RetainZ implements this principle through an explicit runtime-storage contract and an online allocator that balances reclamation delay against unused space at zone ends.

References (17)