{
  "slug": "miss-ratio-curve",
  "term": "Miss-ratio curve",
  "aliases": [
    "MRC",
    "cache miss curve"
  ],
  "definition": "A miss-ratio curve relates cache capacity to the fraction of requests that miss under a specified workload, policy and initial state.",
  "note": "For equal-size demand-admitted LRU, count cold accesses plus reuses whose zero-based distinct-entry distance is at least the capacity, then divide by all requests. A one-based stack-distance formulation instead counts distances exceeding capacity. [counter-stacks]\n\nIn the cold-start trace 0,1,2,0,0,2,1, capacities 1, 2 and 3 give 6/7, 5/7 and 3/7 misses. These are constructed counts, not device-speed predictions. [hesela]\n\nA trace starting mid-workload does not reveal the initial cache contents. Preserve the observation layer, history and time window; a whole-run aggregate can hide changing locality. [counter-stacks]\n\nA rising estimated LRU curve need not be a policy anomaly. Counter Stacks describes negative histogram bins from simultaneous HyperLogLog register updates; carrying negative mass forward to discount later positive bins restores monotonicity but not exactness. [counter-stacks]\n\nThe linked synthetic example shows why clipping negative bins alone invents hits. It preserves raw and corrected values and the request denominator; it is not a trace replay or a performance measurement. [signed-example]\n\nMonotonicity depends on the policy. Waldspurger et al. observed nonmonotonic ARC behavior and LIRS behavior with a bounded S stack; this is distinct from sampling noise in an LRU estimate. [miniature17]\n\nA throughput-derived hit target can be checked against listed capacities, but a sparse curve does not establish the minimum between samples or guarantee the same profile after a workload change. [allocation-example]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "reuse-distance",
    "lru-replacement",
    "cache-inclusion-property",
    "belady-anomaly",
    "working-set",
    "locality-of-reference",
    "request-hit-ratio",
    "shards",
    "statstack",
    "statcache",
    "counter-stacks",
    "average-eviction-time",
    "working-set-footprint",
    "che-approximation",
    "independent-reference-model",
    "mimir",
    "cliffhanger",
    "argon"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-21",
  "citations": [
    {
      "id": "counter-stacks",
      "title": "Wires et al. Characterizing Storage Workloads with Counter Stacks. OSDI 2014, pp. 335-349; sections 2, 3.2 and 6.1.",
      "url": "https://files.usenix.org/s3fs-public/cdn/osdi14-paper-wires.pdf",
      "accessed": "2026-11-11"
    },
    {
      "id": "hesela",
      "title": "Hesela. LRU sizing from distinct-entry reuse distances; constructed examples.",
      "url": "https://hesela.com/analyses/ssd-mapping-cache-hmb/#reuse-distance",
      "accessed": "2026-10-19"
    },
    {
      "id": "signed-example",
      "title": "Hesela. Signed histogram correction: constructed ten-request arithmetic and executable tests.",
      "url": "https://hesela.com/analyses/ssd-mapping-cache-hmb/#estimated-mrc",
      "accessed": "2026-11-11"
    },
    {
      "id": "miniature17",
      "title": "Waldspurger et al. Cache Modeling and Optimization using Miniature Simulations. USENIX ATC 2017, sections 1.1, 3.2 and 4.1.",
      "url": "https://www.usenix.org/system/files/conference/atc17/atc17-waldspurger.pdf",
      "accessed": "2026-11-21"
    },
    {
      "id": "allocation-example",
      "title": "Hesela: discrete cache profiles and budget feasibility, synthetic example.",
      "url": "https://hesela.com/analyses/ssd-fairness-shared-queues/#argon-cache-capacity",
      "accessed": "2026-11-21"
    }
  ]
}
