Research notes / Model validation
Validating disk models: what a matching latency distribution misses
Published 2026-11-25 / Updated 2026-12-02 / Source review and worked calculations
A simulator can reproduce every observed latency value while assigning those values to the wrong requests. Check distribution agreement and request-level accuracy separately, and record which observations the comparison excludes.
On this page12 sections
The historical metric
Ruemmler and Wilkes compared latency-distribution curves using their root-mean-square horizontal separation, called demerit. They reported milliseconds and a percentage relative to mean I/O time. Their traces timed driver submission to completion interrupt, excluding time queued in the driver. That measurement boundary matters when comparing results. [1, Traces and Evaluation]
The useful question is which workload characteristics a model preserves. Agreement on one aggregate cannot certify the model's behavior for each request, for another workload, or for a different timing boundary.
DIXtrac: extracted parameters still need validation
DIXtrac supplied detailed disk models with automatically extracted parameters. Its Linux implementation sent targeted SCSI commands to examine layout, mechanics, cache policy and command costs. [9]
The 1999 validation used two 5,000-request workloads: uniform random access with caches disabled, and a locality mixture with default caching. Five parameter extractions and five traces per workload gave 25 runs per curve, or 125,000 response times. These are repeated observations, not 125,000 disks. [8, section 6.2]
Two mixed-workload discrepancies came from adaptive caching the simulator could not model, although the extractor detected it. The authors also report manual adjustments after examining mismatches. Those adjusted matches must be distinguished from untouched extracted-parameter results. [8, section 6.2]
Operational warning: the characterization uses destructive writes. Restoring its original drive settings does not recover overwritten user data. Do not treat it as a read-only monitoring command. [8, section 5]
For a new validation, retain the evidence at each boundary:
- Extraction: preserve the initial parameter file, device identity and extraction conditions.
- Evaluation: preserve request identities, workload labels, cache settings and timing boundaries alongside measured and predicted times.
- Retuning: record every changed parameter and distinguish the fit used to choose it from evaluation on additional workloads.
This is a reporting recommendation, not a claim that the historical authors used a held-out protocol. It helps distinguish extraction error, an inadequate model and a mismatch between evaluation conditions. The distribution and request-paired checks below remain separate even after calibration.
Hippodrome: the workload changes with the system
A trace is an observation under one configuration, not necessarily the demand an application would generate on a faster one. Hippodrome's 2002 loop measured a workload, designed storage, implemented that design and measured again. Relieving a storage bottleneck could reveal more demand; headroom could help expose it. [10, section 3.5]
Its evaluation used random-access generators and modified PostMark on an HP FC-60 array. The random generators capped each stream at four outstanding requests. Tests restricted allocation to six-disk RAID-5 logical units. PostMark reached 84-99% of the maximum observed transaction rate with nine logical units, depending on process count; this was not a universal optimum. Convergence took 1:13 to 2:59 hours, including data copying. [10, sections 4.1-4.4, table 3]
For a small constructed example, take four serial clients. Each waits for its request to complete, then spends exactly 5 ms outside storage before issuing another. If response time is a fixed 20 ms, each cycle lasts 25 ms: together they issue 4 x 1000 / 25 = 160 requests/s. At a fixed 5 ms response time, the same clients issue 4 x 1000 / 10 = 400 requests/s. A replay preserving the original interarrival times still offers 160 requests/s.
| Request generation | Response time (ms) | Requests per second |
|---|---|---|
| Four completion-paced clients | 20 | 160 |
| Four completion-paced clients | 5 | 400 |
| Fixed original arrival times | 20 | 160 |
| Fixed original arrival times | 5 | 160 |
The response times above are imposed inputs. Real response time depends on offered load, queueing and interference; a device may not sustain the second row. This arithmetic shows why the two experiments ask different questions, not how much faster any drive or application will become. A fixed-arrival replay remains useful when that is the intended workload.
Validate the action as well as the device
CHAMELEON later separated component models, workload-to-component load models and models of the throttling action itself. Its action-model discussion explicitly considers applications that change access patterns with experienced I/O performance. Its incremental feedback re-evaluates decisions when observations diverge. This is a different control mechanism from Hippodrome's storage reconfiguration. [11, sections 3 and 6]
For a model-guided change, retain the original trace and run a second validation with the application or a generator preserving its completion dependencies. Report client count, outstanding-request cap, think time, rate limits and application work completed. Compare both the request mix and the resulting latency distribution. A lower demerit on the old trace alone does not validate the predicted benefit of the change. See also arrival models and latency measurement.
Two requests expose the distinction
This limitation is established prior work: Kelly, Cohen, Goldszmidt and Keeton explicitly described the permutation problem in 2004. The small examples below make that criticism executable; they are not a claim of a new discovery. Their report also frames response-time prediction through distributions conditional on request and system-state features. [4, sections 3.4 and 4.1]
Suppose the same two request identities have measured times [1, 9] ms and predictions [9, 1] ms. Sorting both gives [1, 9]: their empirical distributions agree exactly. In request order, however, each error has magnitude 8 ms. The paired RMS error is 8 ms, not zero.
A constant prediction of [5, 5] ms also matches the measured mean, but its distribution distance and paired RMS error are both 4 ms. Thus mean agreement, distribution agreement and request-paired agreement answer different questions.
| Case / modeled times (ms) | Distribution RMS (ms) | Paired RMS (ms) |
|---|---|---|
Exact match[1, 9] | 0.000 | 0.000 |
Swapped request predictions[9, 1] | 0.000 | 8.000 |
Correct mean, constant prediction[5, 5] | 4.000 | 4.000 |
Two-millisecond offset[3, 11] | 2.000 | 2.000 |
Unequal counts, changed probability mass[1, 1, 9] | 3.266 | Not paired |
Duplicated sample, same distribution[1, 1, 9, 9] | 0.000 | Not paired |
Sorting discards ordering and request labels. A correct overall distribution can therefore conceal wrong read/write-class predictions or the wrong sequence of slow events. Pair only observations that actually refer to the same requests; matching array positions after independent sampling does not establish identity.
Separate class errors from workload proportions
A pooled score also loses class labels. Consider two illustrative classes: reads always take 1 ms and writes always take 9 ms. These are constructed values, not typical device timings. With equal class counts, reversing the predictions gives a zero pooled distance but an 8 ms distance within each class.
The reverse problem is possible too. Keep both class distributions correct, but compare a reference containing three reads and one write with a modeled sample containing one of each. Their pooled distance is 4 ms although each within-class distance is zero. The pool changed because its read share changed from three quarters to one half. Unlike a replay retaining every request, this comparison has different class proportions.
Report three distinct comparisons: the observed pooled distance; the pooled distance after assigning the same explicit class weights on both sides; and sqrt(sum over classes of w(c) x D(c) squared), which combines within-class squared distances. In this table the common weights are one half for reads and one half for writes. They are declared comparison weights, not estimated deployment frequencies.
| Case | Observed pool | Common-weight pool | Weighted conditional RMS |
|---|---|---|---|
| Matching classes and proportions | 0.000 | 0.000 | 0.000 |
| Reversed class predictions | 0.000 | 0.000 | 8.000 |
| Only class proportions change | 4.000 | 0.000 | 0.000 |
| Changed proportions hide reversed classes | 0.000 | 0.000 | 8.000 |
Common-weight pooling is still insufficient: reversed classes remain hidden in its zero score. In the final row the reference has three 1 ms reads and one 9 ms write, while the model has one 9 ms read and three 1 ms writes. Both observed pools match, but each class is wrong by 8 ms. Keep individual class distances alongside any combined measure. Within-class distribution agreement still does not establish request-paired accuracy.
Use matching class definitions and report missing classes instead of silently dropping them. This calculator rejects absent classes and zero-weight omissions. Reweighting holds the observed conditional distributions fixed; it does not predict the effect of physically changing the workload. Queueing, caching, request size and access history can alter latencies even inside a read/write class. There is no causal or hardware claim here.
The labeled-mixture results, calculation, independent-grid tests and method preserve class counts, explicit weights and exact arithmetic without manufacturing additional observations.
An explicit finite-sample calculation
For equally weighted observations, let Qref(p) and Qmodel(p) be the inverse empirical CDFs. Define D squared = integral from 0 to 1 of (Qref(p) - Qmodel(p)) squared dp. With equal counts, this is the mean squared difference between sorted samples. This is the convention used here, not a claim to reproduce the historical programs' binning or interpolation.
For unequal counts, merge the probability endpoints i/n and j/m and weight each squared difference by its interval length. Comparing two observations with three does not justify dropping one or padding either sample. Duplicating every observation preserves its empirical distribution; duplicating only the fast observation changes its probability mass.
The implementation uses exact rational arithmetic for squared distances. After sorting, at most n + m - 1 intervals are visited. A 1,009-versus-1,013 observation control needs 2,021 intervals, whereas the independent test oracle's expanded equal-probability grid has 1,022,117 positions. This counts operations; it is not a timing benchmark.
Relative demerit here is 100 x D / reference mean. The absolute distance is symmetric; that relative percentage need not be. When the reference mean is zero, the percentage is undefined, even if both samples are identical. The JSON records a null value and the reason.
Inspect what the score leaves out
Kotz, Toh and Radhakrishnan's replication report describes filtering unusually long requests associated with unmodeled thermal recalibration before obtaining a closer match. It also records replay timing and write-synchronization assumptions. The resulting score is conditional on those choices. [2, section 3 and its footnotes]
A separate constructed example makes the population change visible: 99 reference times of 1 ms and one of 101 ms, versus 100 predictions of 1 ms, give D = sqrt(100 squared / 100) = 10 ms. The reference mean is 2 ms, so relative demerit is 500%. Excluding the final request from both samples leaves 99 matching observations and a zero score. No prediction improved.
This example does not estimate the historical report's filtering effect. It demonstrates why an exclusion rule and its denominator belong beside the score. Keep excluded request counts and tail behavior visible, especially when the operational question concerns rare stalls.
A small aggregate error can still miss p99
A percentile needs its own check. Here p99 is the first value whose cumulative fraction reaches 99%: the inverse empirical CDF, also called type 1. Interpolated sample-quantile definitions can return different values. [3, Types]
Construct a reference sample with 99% of its values at 1 ms and 1% at 101 ms. The modeled sample has the same count N, but moves one observation from 1 ms to 101 ms. For N divisible by 100, reference p99 is 1 ms and modeled p99 is 101 ms. The quantile curves differ only over probability mass 1/N, giving D squared = 10000/N in ms squared.
| Count in each sample (N) | Distribution RMS (ms) | Reference p99 (ms) | Modeled p99 (ms) |
|---|---|---|---|
| 100 | 10.000 | 1 | 101 |
| 10,000 | 1.000 | 1 | 101 |
| 1,000,000 | 0.100 | 1 | 101 |
| 10,000,000,000 | 0.001 | 1 | 101 |
At N = 10 billion, D is 0.001 ms, or 0.05% of the reference mean, while p99 still differs by 100 ms. The fraction exceeding 50 ms changes only from 1/100 to 1/100 + 1/N. This is instability at a distribution jump, not evidence that the two workloads have radically different stall frequencies. Report threshold exceedance counts alongside the percentile.
The aggregate still has a useful limit: the fraction of quantile positions whose absolute error is at least a positive value a is at most min(1, D squared / a squared). Each such position contributes at least a squared to the integral. This bounds probability mass, not error at one fixed percentile, and does not identify mispredicted requests. The constructed family attains the bound at a = 100 ms.
These counts are arithmetic controls, not billions of collected measurements. They provide no sampling uncertainty or population confidence interval. A bound for a particular percentile needs additional assumptions about the distributions; it cannot be inferred from D alone.
The compact-count results, calculation, tests and method and replay guide preserve exact rational values. Only three probability intervals are visited per displayed case, regardless of N. This is a storage and operation-count property of the representation, not a measured runtime speedup.
Identical populations need not give identical samples
The earlier examples fix their observations. A different question arises when two independent runs sample the same latency population. Their empirical distributions can differ purely through sampling. A distance becomes a test only with a sampling model and a calibrated decision rule. [7, section 2]
For a transparent null model, let every observation independently be 1 ms or 101 ms with equal probability. Draw n observations for each of two independent samples. If X and Y count the 101 ms observations, both counts have a binomial distribution with parameters n and one half. The population distance is exactly zero, but the sample distance satisfies D squared = 10000 x |X - Y| / n in ms squared.
| Independent observations per sample (n) | sqrt(E[D squared]) (ms) | Probability D is nonzero |
|---|---|---|
| 1 | 70.711 | 50.00% |
| 4 | 52.291 | 72.66% |
| 16 | 37.410 | 86.01% |
| 64 | 26.530 | 92.96% |
| 256 | 18.774 | 96.48% |
At n = 1, D is either 0 or 100 ms with equal probability: E[D] is 50 ms, whereas sqrt(E[D squared]) is about 70.711 ms. At n = 256 the latter falls to about 18.774 ms, yet D is nonzero in about 96.48% of sample pairs. Smaller magnitude and exact equality are different criteria. Rejecting a model whenever D is positive would be misleading here.
The calculation uses X + (n - Y), a binomial count with parameters 2n and one half, to obtain the exact law of |X - Y| in n + 1 outcomes. It avoids enumerating all 4^n binary sample pairs. Independently,E[D squared] = 10000 x choose(2n, n) / 4^n; the tests verify this identity. No Monte Carlo draws are used.
For finite-support populations under equality, Sommerfeld and Munk's two-sample result gives fourth-root sample-size scaling for this order-two distance. Their discussion distinguishes this from continuous cases; their bootstrap analysis also rules out assuming an ordinary plug-in bootstrap is always valid. These are model-specific inferential results, not a universal uncertainty rule for storage traces. [6, Theorem 1(c), section 4 and appendix B]
Duplicating recorded observations leaves their empirical distance unchanged; it does not simulate drawing more independent requests. Shared requests, queueing and temporal dependence require a different sampling design. The random sample mean also prevents turning this table into relative demerit by simply dividing by the population mean.
The exact null-model results, calculation, independent checks and derivation and sampling assumptions are downloadable. This is an illustrative probability calculation, not an empirical validation of either historical disk simulator.
An exact square can still produce a false zero
Exact arithmetic in the integral is not enough if the final conversion loses its result. In this calculator's earlier draft, a constructed distance of 10^-200 ms became zero: its square, 10^-400, was converted to a binary64 float before the square root. The root itself fits that format. At the other extreme, a representable root can have a square too large to convert. These are numerical stress cases, not plausible drive timings or collected observations.
This class of problem is established in numerical analysis. Hanson and Hopkins discuss range-aware norm calculations and tests with a wider-range reference computation. Their Fortran algorithms and performance results are not reproduced here. [5, sections 4 and 6]
The corrected example keeps rational squared distances and normalization exact, then computes an approximate root through an 80-digit decimal intermediate. Positive roots rounded to zero or infinity are rejected explicitly. Exact rational fields remain authoritative; this is not a guarantee of correct final-bit rounding for every input.
The conversion helper and range tests cover scale invariance, float boundaries and compact multiplicities. Changing the scale of both samples must not change their relative demerit. The existing displayed example tables retain their values.
Use the metric with its scope intact
Record units, timing boundaries, request counts, observation weights, filtering rules, quantile convention and the relative denominator. Where request identity is preserved, add paired residuals. Where burst behavior matters, retain ordering and inspect it separately. Do not describe an aggregate score as a per-request accuracy percentage or a confidence interval.
The nine-case result file, calculation, tests and replay instructions require only Python's standard library. Tests independently compare 14,400 small sample pairs, including unequal sizes. These deterministic checks establish the stated arithmetic, not hardware validity or population uncertainty.
Continue with latency measurement and missing requests, or the corpus entries for quantiles and rotational latency.
Primary sources
- Chris Ruemmler and John Wilkes. An Introduction to Disk Drive Modeling. IEEE Computer 27(3), March 1994, Traces and Evaluation.
- 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.
- R Core Team. Sample Quantiles: inverse empirical CDF (type 1) and alternative sample-quantile definitions.
- Kelly, Cohen, Goldszmidt and Keeton. Inducing Models of Black-Box Storage Arrays. HPL-2004-108 (2004), sections 3.4 and 4.1 (mirror).
- Hanson and Hopkins. Remark on Algorithm 539: carefully computing the Euclidean norm. ACM TOMS 44(3), 2018, sections 4 and 6 (preprint).
- Sommerfeld and Munk. Inference for empirical Wasserstein distances on finite spaces. JRSS B 80 (2018), 219-238; arXiv v2, Theorem 1(c).
- Ramdas, Garcia Trillos and Cuturi. On Wasserstein Two-Sample Testing and Related Families of Nonparametric Tests. Entropy 19 (2017), 47.
- Schindler and Ganger. Automated Disk Drive Characterization. CMU-CS-99-176, December 1999, sections 3-6.
- Carnegie Mellon PDL: DIXtrac project overview (Fall 1999 account).
- Anderson, Hobbs, Keeton, Spence, Uysal and Veitch. Hippodrome: running circles around storage administration. FAST 2002, pp. 175-188, sections 3.5 and 4 (HP Labs paper, mirror).
- Uttamchandani, Yin, Alvarez, Palmer and Agha. CHAMELEON: a self-evolving, fully-adaptive resource arbitrator for storage systems. USENIX ATC 2005, sections 3 and 6.
Historical sources retain their rights. No paper, trace data or historical simulator is redistributed with these original examples.