Free-space fragmentation
Free-space fragmentation is the division of a filesystem's available allocation space into separated contiguous runs.
The same number of free blocks can have different run sizes and locations. This constrains later allocation, but a scan of allocated file contents does not traverse free space itself. Geriatrix targets both allocated-file and free-space layout. Its publisher abstract and proceedings PDF disagree on the headline SSD percentage; neither is a universal aging penalty. Keep the workload and comparison denominator with a reported rate change. [1] [4]
State the allocation unit when comparing layouts. With ext4 bigalloc, allocation-bitmap bits describe clusters rather than individual filesystem blocks. A 1 MiB cluster of 4 KiB blocks makes each bit cover 256 blocks and shrinks the bitmaps of a 2-terabyte filesystem from 64 MB to 256 KB, so equal free-unit counts can describe different capacities. [3]
Run lengths alone do not establish alignment-sensitive capacity. For a free interval [s, e) and region size B, the count of complete aligned regions is max(0, floor(e/B) - ceil(s/B)); all addresses must use the same alignment origin. Hesela's synthetic examples isolate this geometry, not actual hugepage mappings, allocator success or device performance. [5]
Relations
- related
- Filesystem aging, Dynamic layout score, SSD preconditioning, Allocation bitmap, FAT cluster chain, exFAT, ext4 bigalloc, Range write, WineFS
Advantages
- A free-run distribution exposes allocation constraints that an occupancy figure alone cannot show. [1]
Limitations
- An occupancy percentage is not a free-extent distribution.
- Logical free runs do not reveal the physical NAND layout behind an SSD's mapping layer.
Citations
- Kadekodi, Nagarajan, Ganger and Gibson. Geriatrix: Aging what you see and what you don't see. USENIX ATC 2018, pp. 691-704, sections 4-6.
- Linux kernel documentation: ext4 bigalloc and clustered allocation
- USENIX ATC 2018. Geriatrix publisher abstract, whose headline SSD percentage differs from the proceedings PDF.
- Hesela. A long free extent can still miss the boundary: executable synthetic geometry.
Further reading
Sources & caveats
- geriatrix re-read 2026-10-23 for the dual fragmentation target and the 30% and 80% figures from the abstract. ext4-bigalloc re-read for the 1 MiB cluster example.
- The ssd-preconditioning entry links here because aging free space is one way to set a filesystem state before a measurement, alongside device-level preparatory writes.
- 2026-11-14: removed the unqualified headline percentage, reconciled with the existing Observatory source/denominator discussion; source versions are not interchangeable.
- 2026-11-14: added original deterministic geometry illustration; no hardware measurement or WineFS performance replication.