{
  "slug": "dynamic-layout-score",
  "term": "Dynamic layout score",
  "aliases": [],
  "definition": "Dynamic layout score is a workload-specific locality measure based on the fraction of requested blocks that are consecutive in logical block address space.",
  "note": "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. [conway17]\n\nIn 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. [conway17]\n\nA 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. [conway19]\n\nCount 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. [conway24] [hesela-trace]\n\nFor 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. [hesela-trace]",
  "related": [
    "filesystem-aging",
    "free-space-fragmentation",
    "ext4-bigalloc"
  ],
  "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": [
    {
      "id": "conway17",
      "title": "Conway et al. File Systems Fated for Senescence? Nonsense, Says Science! FAST 2017, pp. 45-58, sections 3.3, 4 and 6.",
      "url": "https://www.usenix.org/system/files/conference/fast17/fast17-conway.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "conway19",
      "title": "Conway et al. Filesystem Aging: It's more Usage than Fullness. HotStorage 2019, sections 3-4.",
      "url": "https://files.usenix.org/s3fs-public/cdn/hotstorage19-paper-conway.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "conway24",
      "title": "Conway et al. File System Aging. arXiv:2401.08858v1 (2024), section 3: requested blocks and dynamic layout score.",
      "url": "https://arxiv.org/pdf/2401.08858v1",
      "accessed": "2026-11-25"
    },
    {
      "id": "hesela-trace",
      "title": "Hesela: exact block-adjacency illustration, conventions and replay instructions",
      "url": "https://hesela.dev/research/layout-score-trace/README.txt",
      "accessed": "2026-11-25"
    }
  ],
  "status": "research",
  "advantages": [
    {
      "text": "A single fraction can be compared across rounds of the same workload as the layout degrades.",
      "citationIds": [
        "conway17"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-25",
  "provenance": [
    "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."
  ]
}
