Dynamic layout score
Dynamic layout score is a workload-specific locality measure based on the fraction of requested blocks that are consecutive in logical block address space.
The requested blocks observed during a workload are traced and the contiguous fraction is reported, so metadata reads and accesses spanning files count alongside per-file placement. It extends an older static score, the fraction of a file's blocks placed contiguously. The result describes an observed access sequence, not an intrinsic property of a device. [1]
In one SSD microbenchmark with read-ahead disabled, the score correlated at -0.67 with recursive search cost, and the authors still describe the relationship as imprecise because CPU time matters at SSD speeds. Those tests used a 4096 B filesystem block size. [1]
A later fullness study measured intra-file and inter-file fragmentation through cold-cache read performance and free space through a histogram of free-extent sizes. It notes that traced reads could reveal allocated blocks but did not pursue that approach. [2]
Count blocks, not only request boundaries. In a synthetic eight-block trace, ranges 0:4 and 10:4 give six consecutive pairs out of seven. Splitting 0:4 into 0:2 and 2:2 preserves that 6/7, but changes the boundary-only fraction from 0/1 to 1/2. This explicit illustration omits the first block and reports null below two blocks; it does not reconstruct the paper's tracing implementation. Keep the address unit, observation order, device and operation class fixed. [3] [4]
For separate windows, 0/1 and 8/8 pool to 8/9; their equal-window mean is 1/2. Known continuous joins give 9/10 or 8/10. An unknown transition is neither an adjacent nor a nonadjacent observation. Empty/singleton windows add no pairs; no pairs means null. These describe observed within-window pairs, not whole-workload locality. [4]
Relations
Advantages
- A single fraction can be compared across rounds of the same workload as the layout degrades. [1]
Limitations
- It does not distinguish small address gaps from large ones.
- It is not throughput, a percentile latency or a NAND physical-placement measurement.
- The same 8192 requested bytes give 0/1 at 4096 bytes per counted block and 14/15 at 512 bytes in the explicit illustration; counting resolution is not a layout change.
Citations
- Conway et al. File Systems Fated for Senescence? Nonsense, Says Science! FAST 2017, pp. 45-58, sections 3.3, 4 and 6.
- Conway et al. Filesystem Aging: It's more Usage than Fullness. HotStorage 2019, sections 3-4.
- Conway et al. File System Aging. arXiv:2401.08858v1 (2024), section 3: requested blocks and dynamic layout score.
- Hesela: exact block-adjacency illustration, conventions and replay instructions
Sources & caveats
- conway17 re-read 2026-10-23 for the score construction, the read-ahead correlation and the block size used.
- conway19 read 2026-10-23 for its alternative fragmentation measurements.
- 2026-11-25: corrected requested-block versus request-boundary wording using the 2024 section 3 definition; added explicitly synthetic range-accounting examples, not hardware measurements or a reproduction of the original trace tool.
- 2026-11-25: added exact observed-window pooling and continuous-boundary counterexamples; independent arithmetic/source review; retained distinct pair-weighted and equal-window interpretations.
- 2026-11-25: exact aligned-unit counterexample and streaming pool optimization; counting units reviewed against Linux v6.12 stat/queue documentation. No hardware or paper-tool replication.