{
  "schemaVersion": 1,
  "generated": "2026-11-03",
  "evidenceType": "constructed deterministic counterexample",
  "license": "CC0-1.0 (original code and constructed data only)",
  "humanPage": "https://hesela.com/analyses/ssd-mapping-cache-hmb/#miss-stream-shape",
  "codePath": "/research/cache-miss-shape.mjs",
  "dependencyPaths": [
    "/research/cache-metrics.mjs"
  ],
  "testPath": "/research/cache-miss-shape.test.mjs",
  "generatorPath": "/research/generate-cache-miss-shape.mjs",
  "method": "Remove fixed-residency hits from the ordered request stream; count maximal ascending adjacent logical-block runs.",
  "blockBytes": 4096,
  "requests": [
    0,
    1,
    2,
    3,
    100,
    200,
    300,
    400,
    0,
    1,
    2,
    3,
    100,
    200,
    300,
    400
  ],
  "assumptions": [
    "Sixteen whole-block requests to immutable synthetic 4096-byte logical blocks",
    "Each configuration starts warm with four resident blocks; misses bypass",
    "Same request order, 16 KiB payload budget, and 16 KiB occupied payload",
    "No prefetch, reordering, merging, retries or concurrent requests"
  ],
  "limits": [
    "Logical block numbers are a constructed layout, not measured physical placement",
    "A run is not a seek, command, NAND operation or latency estimate",
    "No DULO implementation, paper reproduction or hardware benchmark",
    "Exact finite counts have no sampling confidence interval"
  ],
  "sources": [
    {
      "url": "https://www.usenix.org/legacy/event/fast05/tech/full_papers/jiang/jiang_html/index.html",
      "locator": "Sections 2 and 3.4 motivate the question; the trace and counts are original."
    },
    {
      "url": "https://www.cs.ucr.edu/~neal/Young02Online.pdf",
      "locator": "Section 1 and footnote 3 distinguish fixed retrieval costs from changing real costs."
    }
  ],
  "examples": [
    {
      "residentBlocks": [
        0,
        1,
        2,
        3
      ],
      "residentKeys": [
        "0",
        "1",
        "2",
        "3"
      ],
      "budgetBytes": 16384,
      "occupiedBytes": 16384,
      "requests": 16,
      "hits": 8,
      "misses": 8,
      "requestedBytes": 65536,
      "hitBytes": 32768,
      "backendBytes": 32768,
      "requestHitRatio": 0.5,
      "byteHitRatio": 0.5,
      "missStream": [
        100,
        200,
        300,
        400,
        100,
        200,
        300,
        400
      ],
      "runs": 8,
      "longestRun": 1
    },
    {
      "residentBlocks": [
        100,
        200,
        300,
        400
      ],
      "residentKeys": [
        "100",
        "200",
        "300",
        "400"
      ],
      "budgetBytes": 16384,
      "occupiedBytes": 16384,
      "requests": 16,
      "hits": 8,
      "misses": 8,
      "requestedBytes": 65536,
      "hitBytes": 32768,
      "backendBytes": 32768,
      "requestHitRatio": 0.5,
      "byteHitRatio": 0.5,
      "missStream": [
        0,
        1,
        2,
        3,
        0,
        1,
        2,
        3
      ],
      "runs": 2,
      "longestRun": 4
    }
  ]
}
