{
  "slug": "disk-model-demerit",
  "term": "Disk-model demerit",
  "aliases": [
    "demerit figure",
    "latency-distribution demerit"
  ],
  "definition": "Disk-model demerit measures the root-mean-square horizontal separation between modeled and reference latency-distribution curves.",
  "note": "Demerit reports an absolute time difference and a percentage relative to reference mean I/O time. It compares distributions, not request-paired errors. Kelly et al. (2004) explicitly described the permutation problem. [ruemmler-wilkes] [kelly-model]\n\nFor equal-size, equally weighted inverse empirical CDFs, squared distance is the mean squared difference of sorted values. Reference [1, 9] ms and modeled [9, 1] ms have zero distribution distance but 8 ms RMS error when positions identify the same requests. [example]\n\nUnequal sample sizes require probability-mass weighting. Relative demerit is undefined at zero reference mean, not zero. [example]\n\nThe 1994 replication report excluded unusually slow requests associated with an unmodeled mechanism. A filtered score describes that selected workload. [kotz-model]\n\nA constructed type-1 example has 0.001 ms distribution RMS but 100 ms p99 disagreement, with exceedance fractions differing by one in 10 billion. These are exact multiplicities, not measurements. Report quantile convention and threshold counts. [tail-example] [quantile-types]\n\nPooled distance can hide reversed class predictions or change solely with class proportions. Common weighting removes that proportion difference but still loses labels: retain per-class distances and counts. Reweighting is not a workload intervention; missing classes cannot be inferred. [mixture-example]\n\nExact squared distances still need a range-aware approximate root. Converting the square to float first can yield false zero. The implementation rejects positive roots displayed as zero or infinity; numerical stress cases are not drive measurements. [numeric-example]\n\nIndependent samples from one population can have positive demerit; it is not a significance test. [null-example]",
  "related": [
    "quantile",
    "latency-storage",
    "tail-latency",
    "seek-time",
    "rotational-latency",
    "dixtrac",
    "hippodrome"
  ],
  "citations": [
    {
      "id": "ruemmler-wilkes",
      "title": "Chris Ruemmler and John Wilkes. An Introduction to Disk Drive Modeling. IEEE Computer 27(3), March 1994, Traces and Evaluation.",
      "url": "https://www.pdl.cmu.edu/Publications/HTML-Papers/DiskModeling/i.shtml",
      "accessed": "2026-11-25"
    },
    {
      "id": "kotz-model",
      "title": "David Kotz, Song Bac Toh and Sriram Radhakrishnan. A Detailed Simulation Model of the HP 97560 Disk Drive. PCS-TR94-220, July 1994, section 3.",
      "url": "https://kotz.cs.dartmouth.edu/research/kotz-diskmodel/kotz-diskmodel.pdf",
      "accessed": "2026-11-25"
    },
    {
      "id": "example",
      "title": "Hesela. Disk-model demerit: exact empirical-quantile examples, request-paired controls and explicit filtering.",
      "url": "https://hesela.dev/research/disk-model-demerit/results.json",
      "accessed": "2026-11-25"
    },
    {
      "id": "quantile-types",
      "title": "R Core Team. Sample Quantiles: inverse empirical CDF (type 1) and alternative sample-quantile definitions.",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html",
      "accessed": "2026-11-25"
    },
    {
      "id": "tail-example",
      "title": "Hesela. Exact count-compressed demerit and p99 controls, with explicit quantile-mass bounds.",
      "url": "https://hesela.dev/research/disk-model-demerit/tail-results.json",
      "accessed": "2026-11-25"
    },
    {
      "id": "kelly-model",
      "title": "Kelly, Cohen, Goldszmidt and Keeton. Inducing Models of Black-Box Storage Arrays. HPL-2004-108 (2004), sections 3.4 and 4.1 (mirror).",
      "url": "https://shiftleft.com/mirrors/www.hpl.hp.com/techreports/2004/HPL-2004-108.pdf",
      "accessed": "2026-11-25"
    },
    {
      "id": "mixture-example",
      "title": "Hesela. Exact labeled-mixture controls separating observed pooling, common-weight pooling and within-class distribution errors.",
      "url": "https://hesela.dev/research/disk-model-demerit/mixture-results.json",
      "accessed": "2026-11-25"
    },
    {
      "id": "numeric-example",
      "title": "Hesela. Checked numerical presentation and extreme-range regression tests for exact demerit calculations.",
      "url": "https://hesela.dev/research/disk-model-demerit/README.md",
      "accessed": "2026-11-25"
    },
    {
      "id": "finite-null",
      "title": "Sommerfeld and Munk. Inference for empirical Wasserstein distances on finite spaces. JRSS B 80 (2018), 219-238; arXiv v2, Theorem 1(c).",
      "url": "https://arxiv.org/pdf/1610.03287v2",
      "accessed": "2026-11-25"
    },
    {
      "id": "null-example",
      "title": "Hesela. Exact independent-sample null model for two-point latency distributions, with assumptions and reproducible count probabilities.",
      "url": "https://hesela.dev/research/disk-model-demerit/NULL_README.md",
      "accessed": "2026-11-25"
    }
  ],
  "status": "research",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "provenance": [
    "The executable example defines an inverse-ECDF convention explicitly; it does not reproduce either historical simulator or its numerical discretization.",
    "Historical evidence is not a benchmark of current HDDs. The synthetic pairs establish arithmetic properties, not population uncertainty.",
    "Finite-sampling examples assume independent iid draws from the same fair two-point population; they do not calibrate a test for correlated storage traces. [finite-null]"
  ]
}
