IT lexicon › Infra & Ops › Free space management

Free space management

Infra & Ops På svenska → Updated: 2026-11-17

The mechanisms a filesystem uses to track, allocate, and reclaim disk block space as files are created, grown, and deleted.

Efficient free space management is central to filesystem performance and reliability. A filesystem must quickly locate enough contiguous or suitable blocks for a new file and maintain precise bookkeeping of which blocks are free. Historical strategies included first-fit (use the first available gap), best-fit (use the smallest adequate gap), or bitmap-based tracking, each with different tradeoffs between speed and fragmentation.

Modern filesystems like ext4 and Btrfs use more sophisticated approaches such as extent-based allocation and reservation mechanisms to minimize fragmentation. Maintaining this information is critical — a mismapped free block can be overwritten and destroy user data, so journaling often protects allocation operations.

← Back to the lexicon