TECHNOLOGY

Diagnose a full model cache with free bytes remaining

In this article
THE QUICK TAKE

Check file-slot availability on the failed creation mount separately from free bytes, quota, permissions and process descriptor limits.

A cache cannot create another small metadata file even though its filesystem still reports free bytes. File-slot pressure is a separate capacity dimension from data blocks. Inspect the filesystem serving the failed path and the exact creation error before deleting a large weight file or increasing the model worker’s descriptor limit.

Identify the failing create

Record the syscall, pathname, process credentials and error before the library converts them into a generic download failure. Creating a file can fail for space or quota reasons, permissions, a read-only filesystem or unavailable descriptors. A successful open of an existing weight file does not prove that creating a new manifest or temporary file will succeed in the same directory.

Inspect the correct filesystem

Resolve the failed path in the worker’s mount namespace. Temporary files, cache metadata and model shards can live on different mounts even when an application presents them as one cache. Query the filesystem containing the creation target, not a nearby path selected from an administrative shell. Preserve mount identity and observation time so the available-capacity report corresponds to the actual failing operation.

Separate blocks and file slots

The filesystem statistics interface exposes block counts and file-slot counts separately, including availability distinctions. GNU df offers an inode-oriented view for the latter question. Interpret those fields under the actual filesystem’s allocation model rather than assuming every filesystem has a fixed preallocated inode pool. Free data blocks alone cannot establish that another filesystem object can be created successfully.

Find the object population

Count the relevant cache entries by purpose: small metadata, abandoned staging objects, extracted files and actual weight artifacts. Many small objects can consume file-slot capacity without dominating bytes. Do not remove active revision metadata merely because its contents are small. Apply the application’s ownership and retention rules, and distinguish a filesystem-wide population from a per-user quota or one process’s open descriptor set.

Verify a targeted correction

After an authorized cleanup or capacity change, repeat a representative create, write and publication sequence under the worker’s credentials. Preserve both byte and file-slot headroom with the object-growth pattern. A useful result explains which capacity boundary failed. It does not guarantee unlimited future creation, prove every ENOSPC has the same cause or make available filesystem objects equivalent to free GPU memory.

Primary references

Filesystem Block and File-Slot Statistics.

GNU df Filesystem and Inode Usage.

Linux Open File Descriptions and Directory Handles.

Related reading: Model caches and SSD endurance: downloads, host writes and NAND; Init container downloads an artifact again: making preparation idempotent.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles