Skip to content

Research notes / Measurement methods

Storage latency: when the benchmark stops asking

Updated 30 November 2026 / Literature review, synthetic traces and null-engine checks

A lower p99 can describe a quieter benchmark, not a faster storage device. When the next request depends on the previous completion, a stall also suppresses new work. An independent arrival stream keeps building a queue.

On this page28 sections

One pause, two different questions

Consider one first-in, first-out server. Ordinary service takes 1 ms; the first request adds a 100 ms pause. Admit arrivals during [0, 2000) ms, then let every admitted request finish. There are no timeouts, drops, retries, caches or parallel workers.

The open stream sends at 0, 10, 20 ms and so on, independently of completions. The closed stream has one client: after each completion it waits 9 ms. Without the pause, both send every 10 ms. With it, the closed client's second request moves to 110 ms.

Hesela synthetic calculation, not SSD measurements. Each percentile uses all completed requests in that row's arrival cohort. Nearest rank selects sorted observation ceil(p x N); the two rows deliberately have different loads and denominators.

Two-second arrival window; latency measured from arrival to completion

Arrival modelRequestsOffered requests/sp99, msMaximum, msAbove 10 ms
Independent, every 10 ms2001008310111 / 200
One client, completion + 9 ms1909511011 / 190

The open stream's first three response times are 101, 92 and 83 ms. Its second request arrives at 10 ms, starts at 101 ms, and completes at 102 ms. The closed stream records the first 101 ms response, but has no arrivals during that wait. Its other 189 responses take 1 ms.

The first 150 ms of the synthetic arrival cohortsIndependent arrivals every 10 ms experience a queue after the 101 ms first response. The closed client has no second observation until 110 ms. Both share the first point. The complete 390-request records are downloadable below.050100050100150Response time (ms)Arrival time (ms)
Circles: independent arrivals. Outlined squares: completion-driven client. Points represent requests, not continuous measurements; coincident symbols share an arrival and response time.

This is a workload-model comparison, not an 83-fold device speedup. The closed result is useful for that one waiting client. It cannot answer what would happen if unrelated clients continued to arrive during the pause. That mismatch is where coordinated omission matters.

Backpressure: did the write fail, or should the next one wait?

A request to slow down can arrive after the current chunk was accepted. Retrying that chunk can duplicate data. Backpressure regulates further production; admission control decides whether work enters a named stage. Read the API contract before treating either as an error.

SEDA places finite queues between service stages. Its enqueue operation can reject an event; the upstream stage then chooses whether to wait, drop work or take another action. A queue boundary makes overload visible but can add waiting time. [SEDA, section 3.3]

Node.js uses a different contract: a healthy Writable can return false after accepting the chunk. Pause additional writes until drain; do not resend the accepted chunk. Errors are separate. The configured highWaterMark is a threshold, not a hard memory ceiling. [Writable contract]

Executed in-memory Node.js Writable fixture with a 4-byte threshold. Each sink callback runs on a later event-loop turn. The first three cases intend the chunks aaaa, bbbb, cccc. No disk, elapsed-time benchmark or power-loss experiment is involved. Buffer occupancy below is writableLength sampled immediately after each write, not process memory.

Native API fixture: threshold 4 bytes, all sink callbacks succeed
Producer behaviorWrite callsPeak buffered bytesHandled bytes
Pause after false3412
Ignore false31212
Retry each false once6424
One 6-byte chunk, then pause166

The cooperative and ignoring producers both deliver 12 bytes, but their observed peaks are 4 and 12 bytes. The mistaken retry delivers 24 bytes. One 6-byte chunk exceeds the threshold even when the producer cooperates. An additional injected-error test checks that pipeline reports failure and destroys the stream.

Buffer drainage is not a persistence guarantee. For files, FileHandle.sync() requests a device flush, with operating-system and device-dependent behavior. Keep that operation distinct from producer flow control. [File synchronization]

Measure rejected work alongside latency

Welsh and Culler's 2003 adaptive controller adjusts per-stage admission using response-time feedback. In its email-service experiment, a jump from 3 to 1,000 users with a 1-second p90 target rejected about 70-80% of requests during the spike while keeping admitted-request response times low. This is an application experiment, not an SSD capacity result or a universal deadline guarantee. [USITS 2003, sections 3.2 and 4.4]

For a storage service, retain offered, accepted, rejected and unfinished counts at the same boundary, plus waiting before admission. Reporting only successful-completion p99 can hide rejected demand or a queue moved upstream. This is an accounting recommendation, not a claim that every backpressured system has coordinated omission.

Replay the native fixture and regression tests with node probe.mjs --check and node --test probe.test.mjs; keep the result JSON beside them. The published run used Node.js 24.22.2; the JSON records all write returns and handled chunks.

Busy for half the time: how many arrivals see it?

Time-weighted occupancy and request-weighted observations answer different questions. The periodic open stream above is independent of completions; that does not make its arrival process Poisson. A configured request rate alone establishes neither property.

Poisson arrivals see time averages (PASTA) connects long-run state fractions under a constant-rate Poisson arrival process, nonanticipation and convergence conditions. Earlier arrivals may affect the queue; its history must not reveal future arrival increments. Observe the state before the arriving request changes it. This is a limit result, not an exact finite-window identity. [Wolff, Theorem 1 and Remarks 1, 4]

A Poisson stream alone is insufficient: Wolff's tandem-queue counterexample reuses each customer's service time at both stages, violating nonanticipation at the second queue. Check joint dependence, not just an interarrival histogram. [Example 2, pp. 229-230]

Separate constructed example: one initially empty FIFO server, ten requests needing 1 ms each, and a 20 ms cycle. Every request finishes before the cycle ends. No other work, drops, preemption or overhead. Busy time sums occupied service intervals; the arrival count asks whether earlier work is still outstanding immediately before each request joins.

Same 10 requests and 10 ms of service in [0, 20) ms
Arrival scheduleBusy time / windowArrivals seeing busy / all arrivals
One every 2 ms10 / 20 ms = 50%0 / 10 = 0%
Pairs 0.5 ms apart, every 4 ms10 / 20 ms = 50%5 / 10 = 50%
Ten arrivals 0.1 ms apart10 / 20 ms = 50%9 / 10 = 90%

The periodic arrivals occur at 0, 2, ..., 18 ms, always after the previous completion. Pairs arrive at 0/0.5, 4/4.5, ..., 16/16.5 ms; the second request in each pair sees work. The burst arrives at 0, 0.1, ..., 0.9 ms, so only its first request sees an empty server. All three schedules have the same 500 requests/s cycle average. Repeating each cycle preserves the fractions because the queue drains every time.

The paired case agrees with the time fraction despite being non-Poisson. Agreement does not establish an arrival model; disagreement here does not contradict PASTA. In the published schedules no arrival coincides with a completion. The executable model handles ties by processing completions first.

Active probes also change the system they measure. Baccelli and colleagues distinguish sampling the loaded system from inferring behavior without the probes; the latter needs additional reasoning. PASTA alone establishes neither an optimal probe rate nor finite-sample precision. Applied to storage, keep diagnostic I/O in the workload accounting and state whether the target is the probed system or its unprobed behavior. [SIGCOMM 2006, sections 2 and 4]

Retain arrival timestamps and the time-weighted state trace separately. Reproduce this exact example with the assumptions and instructions, calculation, independent tests and complete synthetic records. It is not a new storage benchmark or a test of Poisson convergence.

A typical request is not a typical timestamp

A Palm distribution moves the observation origin to a typical event. For stationary processes with finite positive intensity, it describes an event-centered view, not a uniformly selected time. Continuous-time conditioning on an event exactly at zero needs a Palm construction because that event ordinarily has probability zero. [Last and Penrose, chapter 9]

Batching introduces a third question. Selecting one occupied timestamp gives each batch one vote; selecting one request gives a batch as many votes as it contains requests. Sigman and Whitt explicitly retain these point multiplicities. [2019, sections 4.3-4.4]

Constructed example, not a storage measurement: ten equal 1 ms slots. An external state label is low in slots 0-4 and high in slots 5-9; arrival counts are [1,0,0,0,0,2,2,2,2,1]. Every arrival sees its slot's fixed label. No requests are missing; the label is not a queue-busy indicator.

One complete cycle, three observation units
Selection unitHigh-state countAll observationsExact fraction
All equal-duration slots5101/2
Nonempty timestamps565/6
Individual arrivals9109/10

Thus high-state exposure is 50% of time, 83 1/3% of occupied timestamps and 90% of requests. Deduplicating the arrivals by timestamp replaces the last population with the middle one. Neither number is intrinsically wrong; attaching the wrong denominator is. Repeating this cycle preserves all three fractions.

Palm inversion relates event-centered and time-centered descriptions by accounting for the evolution between events. A point sample alone does not supply that evolution. [Theorem 6.1] For storage telemetry, retain event multiplicity and state-transition timestamps separately; weighting the last sampled state by the next gap silently assumes it remains unchanged. This is an operational implication, not a universal reconstruction algorithm.

PASTA above supplies special conditions for equality of pre-arrival and time-state fractions. Palm terminology supplies no such equality by itself. Single-trace convergence also needs suitable ergodicity, and neither concept certifies a short trace's accuracy. The method and assumptions, calculation, tests and complete inputs and results make the finite example independently checkable.

Write down where the clock starts

Keep four boundaries distinct: planned arrival, actual submission, service start and observed completion. In this example, arrival equals submission; service start can be later. A real generator can fall behind before submission too.

wrk2 measures from the planned send time to the response, explicitly retaining generator delay. Its maintainer also documents roughly millisecond timing granularity in that implementation. This is a useful measurement principle, not a recommendation to use an HTTP tool for microsecond SSD measurements. [3]

In fio, lat covers I/O creation to completion and combines slat and clat. Exact boundaries depend on the engine; async completion includes the point where fio reaps it. Do not rename any of these quantities as application end-to-end latency without checking the start event. [2]

Separate waiting from processing

At one resource, service time S excludes queueing delay Q. For a nonpreemptive stage, Q runs from arrival to service start, S from service start to completion, and response time R = Q + S. Interrupted service needs separate processing intervals. [Queueing definitions, sections 1 and 2.1]

The second independent arrival in the unchanged FIFO example above arrives at 10 ms, starts at 101 ms and completes at 102 ms. It spends 91 ms waiting and 1 ms in service, giving 92 ms response time. These are model timestamps, not a new device measurement. The first request's added pause remains inside its modeled service interval; this example does not identify a physical cause.

Asynchronous fio clat ends when fio reaps completion. It can include waiting and completion-observation delay, so renaming it device service time loses the measurement boundary. Subtracting statistics from different populations or clocks cannot reconstruct an unobserved service-start event. [fio timing definitions]

Count the resource and its queue consistently. Little's law for all outstanding requests uses their full residence time; replacing it with service time drops the waiting contribution. [Little, pp. 537-539] For concurrent stages, summed processing durations need not equal end-to-end elapsed time.

A request can start immediately and still wait

Separate constructed example: one preempt-resume server, half-open intervals [start, end), no interruption overhead or other request state. The system is empty just before 0 ms and drained at 8 ms. A runs until B arrives, waits while B runs, then resumes. These timestamps are assumptions, not hardware observations.

Two requests; all durations in milliseconds

RequestService intervals, msBefore first start, msTotal waiting Q, msService S, msResponse R, ms
A[0, 2) + [6, 8)0448
B[2, 6)0044

A spends 4 ms receiving service, even though completion minus first start is 8 ms. Its initial wait is zero; later waiting accounts for the remaining 4 ms. Waiting does not have to precede every part of processing. [Queueing definitions and preemption]

The accounting rate is 2 distinct completed requests / 8 ms = 0.25 requests/ms. Mean total waiting includes every waiting interval per request and B's zero wait: 2 ms. This is not a queue-entry rate. The areas are 12 request-ms outstanding and 4 request-ms waiting, giving mean counts 1.5 and 0.5; the same rate times the corresponding mean residence or waiting time gives each count. This is finite-trace accounting, not a steady-state estimate or device throughput prediction. [Little, finite-window identity]

Reproduce this separate example using the interval-accounting module and tests: node --test io-timing-preemption.test.mjs. The original 390-request FIFO comparison is unchanged.

Which completion did the timer observe?

The HotStorage 2019 EvFS prototype reported 700 ns for 64-byte non-blocking writes. Its event-driven path returns after submission; this is not a durable-write latency. The presentation explicitly places those transfers in memory. [EvFS, sections 3.2 and 4.1] [Slides 9 and 14]

Different endpoints in the 2019 evaluation
PathTimed work
Non-blocking writeCall returning after event submission
Buffered blocking writewrite plus fsync
Direct I/OPage-cache bypass with blocking completion

The paper averages ten fio runs, each with one thread and 40 GB of random I/O. The setup used an NVMe SSD; ext4 journaling and readahead were disabled. Memory-pressure results were excluded. [Section 4 and Figure 5]

The presentation identifies missing journaling and incomplete POSIX support; NVMM evaluation remained future work. These results therefore do not establish crash-safe persistence or general device performance. [Slides 7 and 17]

Before comparing latency numbers, match the API, cache state, completion event and recovery contract. Timing a synchronization call and testing recovery after failure answer different questions.

An in-flight observation is not a completion sample

A long operation can appear in many snapshots; a short one may disappear between polls. Length-biased sampling explains why the operations still visible need not represent operations counted once. Renewal theory also distinguishes an interval's full length from its elapsed age and remaining time. [Sigman, sections 1.6-1.8] [Vlasiou, examples 3-4]

Hesela's constructed trace, not storage measurements: A exists in [0,10) ms; B and C each exist in [0,1) ms. All three full lifetimes are known. We integrate continuously over [0,10), with no idle time, losses or unknown completions. This is an accounting example, not a queueing simulation or a replication of a paper's experiment.

Same three requests, three means of their full durations

Selection ruleDenominatorMean full duration, msShare assigned to A
One record per request3 requests41/3
Pool all active observations12 request-ms8.55/6
One active request per sampled time10 nonempty ms9.414/15

Pooling all active observations counts 12 request-ms: A contributes 10 and B and C one each. The full-duration mean is (10*10 + 1*1 + 1*1)/12 = 8.5 ms. Each complete lifetime d contributes d units of exposure, so the general finite-trace expression is sum(d^2)/sum(d). No independence or stationarity assumption is needed for this declared complete trace.

One request per snapshot changes the denominator. Select a time uniformly, then one active request uniformly. During the first millisecond the conditional mean is (10+1+1)/3 = 4 ms; during the next nine it is 10 ms. Averaging those times gives (4+90)/10 = 9.4 ms. With idle periods, condition this design on nonempty times. A request's weight then depends on the integral of 1/N(t) while it is present, not only its duration.

For pooled observations, integrating elapsed age and remaining time separately yields sum(d^2)/(2*sum(d)) for each, here 4.25 ms. The full-duration mean is 8.5 ms; those are different quantities. Crop this same trace to [0,1) and exposure becomes equal across requests: full-duration mean 4 ms, elapsed age 0.5 ms, remaining time 3.5 ms. Actual live snapshots do not know the future finish merely because they know elapsed age.

Retain request identifiers, polling cadence and phase, occupancy, endpoints and the admission/completion boundary. Fixed-phase polling can alias a workload; the continuous weighting above is not guaranteed by setting a timer. Repeated sightings do not create independent completions, and a clipped window weights overlap rather than full lifetime. This is separate from event-centered sampling and does not repair coordinated omission.

Inspect the generated rational results and method, Python model and tests. Ten tests include an independent midpoint integration over 256 two-request configurations. The chosen three-request trace has no empirical confidence interval or measured device-performance claim.

Same mean service, different mean waiting

A mean service time does not describe how much a long request delays those behind it. The Pollaczek-Khinchine mean formula gives E[Q] = lambda E[S^2] / (2(1-rho)), with rho = lambda E[S] and E[R] = E[Q] + E[S]. Its numerator uses the second moment, not the squared mean. [M/G/1, Eq. 4.81]

This separate analytic example assumes independent Poisson arrivals, iid service times, one work-conserving FCFS server, unlimited waiting space, no abandonment or vacations, and a stationary regime with rho below one and finite second moment. It is not the earlier periodic-arrival trace or an SSD measurement.

Both chosen distributions average 1 ms. Constant service has second moment 1 ms2; the 99%/1% mixture has 25.75 ms2. Probabilities count requests, not busy time: the 1% long class accounts for 50.5% of service work.

Exact model means; service, waiting and response in milliseconds

Service distributionArrivals / sUtilizationMean waiting, msMean response, ms
Always 1 ms20020%0.1251.125
99% at 0.5 ms; 1% at 50.5 ms20020%3.218754.21875
Always 1 ms80080%23
99% at 0.5 ms; 1% at 50.5 ms80080%51.552.5

At 20% utilization, the mixture has 25.75 times the mean waiting of constant service despite the same mean service and arrival rate. Low utilization alone does not establish low delay. The general-arrival Kingman expression in the practitioners' paper is approximate; the Poisson FCFS mean above is exact under its stated assumptions. [Section 1]

This is not a p99 formula. Real device parallelism, arrival correlations and scheduling need a matching model. Substituting fio completion latency for an unobserved service time would also change the input's meaning. These chosen inputs have no empirical sample size or confidence interval.

Inspect the four rows with exact rational values and reproduce them with the standard-library Python calculation and tests. The validator rejects invalid probabilities and utilization at or above one.

Arrival variability changes the waiting estimate

Equal request rates need not produce equal waiting. The Kingman approximation adds variation in interarrival intervals to variation in service requirements. Its common VUT form is E[Q] approximately ((c_a^2 + c_s^2)/2) * rho/(1-rho) * E[S]. Here c_a^2 = Var(A)/E[A]^2 and c_s^2 = Var(S)/E[S]^2; these are squared coefficients of variation, not CVs or variances of request counts. [Section 1]

The table evaluates that approximation for one stationary, work-conserving, nonpreemptive FCFS server with unlimited waiting space and no vacations or abandonment. Interarrival intervals are iid, service times are iid and independent of arrivals, second moments are finite, and utilization is below one. We choose independent exponential service with mean 1 ms and SCV one; gamma renewal intervals can realize the chosen arrival SCVs.

VUT sensitivity: approximate mean waiting, not measured storage latency

UtilizationArrivals / sArrival SCVVUT mean wait, ms
80%8000.252.5
80%80014
80%800410
95%9500.2511.9
95%950119
95%950447.5

At 80% utilization, changing only arrival SCV from 0.25 to 4 increases the estimate fourfold, from 2.5 to 10 ms. Raising utilization from 80% to 95% multiplies every row's estimate by 4.75. These are sensitivities of the formula, not observations that validate its error at either load.

SCV one does not prove Poisson arrivals. A renewal source choosing intervals 0.5 and 3 with probabilities 0.8 and 0.2 has mean one and variance one, but its two-point distribution is not exponential. Our calculation and tests verify this counterexample. Scaling the intervals changes the rate without changing SCV. The exact Poisson mean in the previous section requires the arrival-process assumption, not just its first two moments.

The heavy-traffic basis concerns a sequence of queues approaching saturation. Modern moment-convergence proofs impose explicit additional conditions; a limiting result is not an error guarantee for an arbitrary measured queue. [Sections 1-3] Treat correlated arrivals, closed-loop feedback, multiple servers and device scheduling separately. A mean estimate does not supply p99.

The six generated rows retain exact rational evaluations; the table rounds them to three significant digits. No simulation, empirical sample or confidence interval is involved. For genuinely Poisson arrivals, VUT agrees algebraically with the Pollaczek-Khinchine mean under its assumptions. That special case does not make VUT exact for general renewal traffic.

Even equal arrival variance does not fix mean waiting

Matching rate and arrival SCV still leaves a workload ambiguity. Hold exponential service fixed at mean 1 ms and compare three independent renewal arrival laws with equal means and variances. The VUT inputs are identical, but the exact GI/M/1 mean waits below differ.

Write A = Y / rho ms. Exponential Y has mean one; the 80/20 law chooses Y = 1/2 or 3 with probabilities 4/5 and 1/5; the 90/10 law chooses Y = 2/3 or 4 with probabilities 9/10 and 1/10. Each has E[Y] = 1, E[Y^2] = 2 and variance one. Draw successive intervals independently, not as a repeating schedule. At 50% utilization, the discrete interval pairs are (1, 6) ms and (4/3, 8) ms.

Analytic model, not storage measurements: a stable, stationary, work-conserving FCFS single server, unlimited waiting space, no vacations, losses or abandonment, and iid exponential service independent of the iid intervals. The mean includes zero-wait arrivals and excludes service time.

Here mu is the service rate: 1 per ms, or 1,000 requests/s. Solve r = E[exp(-mu(1-r)A)] for the root strictly between zero and one. The boundary root r = 1 is not the stable solution. Then E[Q] = r / (mu(1-r)). These are classical results, not a new queueing law. [MIT, problems 1-2] [Li and Niu, equations 23, 24, 29]

Equal arrival SCV one and mean service 1 ms; numerical evaluation of exact-model means
UtilizationArrival lawExact-model mean wait, msVUT mean wait, ms
50%Exponential1.0000001.000000
50%Two-point 80/200.9589121.000000
50%Two-point 90/100.6995391.000000
80%Exponential4.0000004.000000
80%Two-point 80/204.0587804.000000
80%Two-point 90/103.8218074.000000

At 50%, the common 1 ms estimate overstates the 90/10 mean by about 42.95%. At 80%, it understates the 80/20 mean by about 1.45% but overstates the 90/10 mean by about 4.66%. Thus the same approximation can err in either direction within this matched-moment comparison. This does not establish a universal error bound or ranking across arrival laws.

Retaining only IOPS and interarrival SCV cannot establish equivalent queueing workloads, even before serial dependence is introduced. Preserve arrival timestamps and the assumed distribution, service model and scheduling boundary. Device parallelism, caches, correlated requests and non-exponential service need a different model. These means do not predict device p99.

The method and source map, calculation, tests and 16 generated cases include an additional constant-interval baseline with SCV zero. Exact rational sign checks certify each interior root bracket and bound numerical mean-wait uncertainty below 10^-18 ms for these cases; the table rounds to six decimals. These are numerical enclosures, not confidence intervals. No empirical sample or simulation was used.

What the paper supports

Schroeder, Wierman and Harchol-Balter compared open, closed and partly-open models using web/database testbeds and simulations. Their methodology holds service demands and load comparable while examining mean response time and scheduling. They show that arrival feedback can materially change conclusions, even at substantial concurrency. [1, sections 3-5]

That is not a universal theorem that open workloads always have worse tails: the paper also discusses scheduling-dependent exceptions. Its workloads are not modern NVMe characterization. Hesela's table is a separate deterministic illustration with unequal achieved load, not a re-creation of the paper's experiments.

A rate setting is not proof of independence

fio's offload mode separates submission work from completion processing, but adds overhead. The current option reference warns that it cannot reliably be used with asynchronous engines, while example jobs on the same page use libaio. Treat that documentation tension as a reason to validate the exact version and engine, not to copy an example as a guarantee. [2]

Also inspect achieved depth: the configured iodepth can differ from the observed distribution. A queue's capacity, an in-flight count and a count of waiting requests are different quantities. [2]

Hesela's practical check: impose a controlled pause on a disposable test target, retain scheduled/submitted/completed counts, and verify that the arrival policy and timestamps behave as claimed. Record generator CPU pressure and backlog. If it cannot sustain the offered stream, report that limit alongside the storage result.

IOPS, bytes and average occupancy

Observed IOPS counts completed operations per second at a named boundary. A request rate offered to a device is not necessarily its completion rate. Linux block statistics distinguish completed and merged requests; counts below the application need not match the application's operations. [7]

For the same successful data-transfer operations and interval, bytes/s = completed bytes / seconds = IOPS x mean completed bytes per operation. With mixed sizes, weight the mean by operation count. The examples below deliberately hold the count constant; they do not claim a device can sustain that count at every size.

Hesela arithmetic examples: 10,000 successful data transfers in one second, no short transfers or errors. KiB = 1024 bytes; MiB = 1,048,576 bytes. The mixed row splits operation count equally, not byte volume.

Same operation count, different transferred bytes

Completed request sizesIOPSMean bytes / operationBytes / sMiB / s
All 4 KiB1000040964096000039.0625
All 16 KiB1000016384163840000156.25
Half 4 KiB, half 16 KiB100001024010240000097.65625

fio's blocksize selects request bytes and bssplit selects size mixtures. This benchmark setting is not the device's logical sector size. Record the actual operation mix before comparing IOPS with data throughput. [2]

Little's law relates three different averages within one boundary: L = lambda x W. L is time-averaged occupancy; lambda is the operation rate; W is the arithmetic mean residence time per operation, including waiting inside that boundary. It is not p99. [5] [6, pp. 537-539]

For example, 10000 completed operations/s and 0.002 s mean residence imply 20 average outstanding operations under matching steady measurement conditions. A configured queue limit of 20 does not establish those rates, and raising the limit does not guarantee proportional throughput.

Client count is not outstanding I/O

With matching long-run averages, N fixed clients alternating one request with mean think time Z obey N = X x (R + Z). X is achieved request-completion throughput and R is mean request response time. The request subsystem alone has mean occupancy L = X x R; thinking clients are outside that boundary. Using N = X x R with request response time requires zero think time. [24, PDF pp. 6-7 and 9] [1, section 2]

With 32 clients, a 2 ms mean response and 2 ms mean think time, the identity gives 8,000 requests/s and 16 outstanding requests on average, not 32. These assumed means illustrate accounting, not a prediction of device performance. If clients pipeline multiple requests, first define the population and cycle being counted; the one-request-per-client interpretation no longer applies. See Little's law and closed-loop load.

For an ordinary benchmark estimate, use a stable population and account for requests already present at the start or unfinished at the end. An empty-to-empty finite trace can also satisfy the exact occupancy-area identity without constant load. Neither result turns a tail percentile or a binned depth report into time-averaged occupancy. This is an accounting relation, not a storage-capacity model. [6]

fio separates read/write/trim summaries from interval-sampled iops statistics. Preserve the operation direction, runtime and sampling interval instead of treating every displayed average as the same estimator. [2]

Linux also distinguishes time with I/O activity from time weighted by outstanding requests. Field 11 accumulates request-milliseconds; field 10 does not multiply elapsed time by queue depth. A busy-time percentage is therefore not average occupancy. Kernel version, counter resets and accounting precision still matter. [7]

Reproduce all accounting examples with the accounting module and tests: node --test io-accounting.test.mjs. No storage device or fio job was run for these examples.

The average depends on what is held equal

For serial, nonoverlapping phases, aggregate throughput is sum(bytes) / sum(seconds). Equivalently, weight phase rates by elapsed time. If every phase transfers the same byte count, the answer is the harmonic mean, not the arithmetic mean. Unequal byte counts need byte-weighted harmonic averaging. [Harmonic mean] [Rate weighting]

Constructed transfers at 100 and 400 MB/s, not device measurements. MB = 1,000,000 bytes. No overlapping jobs or extra intervals; each phase uses the same byte-accounting boundary.

Equal bytes and equal time give different aggregate rates

ConstraintPhase bytes, MBPhase times, sAggregate, MB/s
Equal bytes1000 + 100010 + 2.5160
Equal time1000 + 400010 + 10250

The equal-byte case is 2000 MB / 12.5 s = 160 MB/s; the equal-time case is 5000 MB / 20 s = 250 MB/s. For end-to-end throughput, include stalls and setup inside the declared elapsed interval. For concurrent jobs, use the common wall-clock interval: summing overlapping job durations is a different denominator.

A ratio score is not a combined runtime

The geometric mean summarizes positive values multiplicatively. SPEC CPU2026 defines geometric aggregation for its benchmark ratios; this is a scoring convention, not a universal storage-throughput formula. Keep the workload set, ratio orientation and weights explicit. [Geometric mean] [SPEC metrics]

Separate constructed example: reference runtimes are 100 and 100 s; test runtimes are 50 and 200 s. Reference/test speedups are 2 and 0.5, whose geometric score is 1. Yet running each workload once takes 200 versus 250 s: total-work speedup is 0.8, not 1. A normalized suite score does not reconstruct summed elapsed time. [Fleming and Wallace, rule 3 and Table IX]

Specify failures, timeouts and zero-handling separately. Silently dropping a failed run changes the benchmark population; it does not provide a valid positive ratio. Reproduce these synthetic calculations with the accounting module and tests: node --test model.test.mjs. No new storage benchmark was run.

A short window can hide outstanding work

Our constructed trace has just two requests: A arrives at -2 ms and completes at 4 ms; B arrives at 2 ms and completes at 12 ms. Their full residence times are 6 and 10 ms. No other requests exist.

For each request, count only its overlap with the observation window. The sum is the area under the outstanding-request count, in request-ms. Divide by window length to obtain time-averaged occupancy. Little's finite-window treatment explains why endpoint populations and the meaning of the averages must match. [6, section 2]

Same two requests, different observation windows

Window, msArea, request-msMean outstandingCompletionsCompletion rate x full mean residence
Whole trace: -3 to 1316121
Cropped window: 0 to 10121.210.6

The full window lasts 16 ms and contains 16 request-ms: both calculations give 1. In the 0-10 ms crop, A contributes 4 request-ms and B contributes 8, so occupancy is 1.2. Only A completes: 100 completions/s x 0.006 s gives 0.6. That calculation includes A's pre-window time and excludes B's unfinished work. The discrepancy is not a failure of Little's law.

For this trace we know every lifetime. A real completion-only log cannot reconstruct an unseen unfinished request. Capture arrivals and outstanding work at the boundaries, or state that limitation; do not silently assign zero latency to missing completions. The code counts completions in (start, end] and clips occupancy to [start, end); endpoints have zero duration.

fio summaries: count the right observations

Two means are not two equally sized populations. Preserve the count associated with each latency statistic before combining read and write results. In fio 3.41, stat.c emits each latency object's own N; it separately emits total_ios and direction-specific runtime. A latency object with no samples can contain zero for its mean. Check N: no observations is not a measurement of zero latency. [8]

Hesela constructed example, not fio output: 9,000 read observations at 100 microseconds and 1,000 write observations at 1,000 microseconds. Identical timing boundaries; every operation contributes one sample. Values are exact assumptions, with no sampling uncertainty.

Latency observations, weighted by their counts

PopulationSamplesMean, microseconds
Read9000100
Write10001000
Combined observations10000190

The combined mean is (9000 x 100 + 1000 x 1000) / 10000 = 190 microseconds. Averaging the two reported means gives 550 microseconds: that answers an equal-direction weighting question, not the mean over these operations. Weight by latency samples, not bytes, a configured read percentage, or an unrelated total-I/O counter.

Use the same latency statistic throughout. slat, clat and lat describe different boundaries; engine behavior matters. Combining different clocks does not become valid because their units agree. JSON runtime is in milliseconds and bw in 1024-byte/s units; interval-sampled iops_mean is distinct from the whole-direction iops field. [2]

Rates require time weighting, not sample weighting

Two contiguous, non-overlapping synthetic windows

WindowCompletionsDuration, sCompletions / s
First interval100011000
Second interval90000910000

Together these contain 91,000 completions in 10 seconds: 9,100 IOPS. The unweighted mean of 1,000 and 10,000 is 5,500 IOPS. Sum counts and durations for these serial windows. Do not sum durations for concurrent jobs: establish a common wall-clock window and count its completions instead.

A separate example assumes two directions start together: 9,000 reads finish within one second, and 1,000 writes within two seconds. Their direction-normalized rates sum to 9,500, but all 10,000 completions over the common two seconds give 5,000 IOPS. Equal runtime values alone would still not prove equal start/end timestamps. fio's cited implementation calculates direction IOPS from that direction's count and runtime. [8]

Neither weighted mean reconstructs a p99. Nor does a summary establish unfinished-request occupancy at a cutoff. Keep the endpoint accounting above and percentile pooling below as separate checks. Missing or disabled latency collection should remain missing, not be silently converted to a performance result.

Why one whole-run average is not enough

Cao and colleagues' FAST 2017 study used 107 sampled storage configurations, three Filebench workloads and ten repetitions per experiment. They distinguished cumulative throughput from ten-second windows. Their Ext4 case study linked run-to-run variation to different file layouts; section 5.3.1 showed that observation-window length changed the apparent variability. [9, sections 3-5]

This was Linux 4.4.12 with SATA/SAS HDDs and a SATA SSD, not a fio or modern NVMe study. The transferable lesson is methodological: preserve time series, repeated runs and configuration details. Our arithmetic above does not reproduce their measurements or establish a universally sufficient benchmark duration.

Reproduce with the model, tests and generator; run node --test fio-populations.test.mjs, then node build-fio-populations.mjs. The JSON results and assumptions include source-file hashes. No fio process, storage benchmark or statistical inference was performed.

Corpus definitions: submission latency and completion latency.

Combining reservoirs: keep the population behind each sample

A reservoir retains a bounded sample while processing a stream of unknown final length. Algorithm R maintains a uniform sample of event occurrences, including distinct requests with identical latency values. [Reservoir algorithms, section 2] Equal buffer capacities do not mean equal request populations.

Constructed example: server A contributes two requests at 100 ms each; B contributes six at 1 ms each. Independent local reservoirs and the final sample each hold two events. The target is a request-weighted mean: (2 x 100 + 6 x 1) / 8 = 25.75 ms. The values below are exact expectations over sampling choices, not device measurements.

Two retained events per server, two output events, eight original requests
Merge ruleEach A eventEach B eventExpected mean, ms
Pool retained values uniformly1/21/650.5
Count-aware reference1/41/425.75

Naive pooling gives A half the sample's expected mass although it supplied only a quarter of the requests. The resulting 50.5 ms expectation answers an equal-host question in this example, not the request-weighted question. For a mean alone, another option is to weight unbiased local sample means by their eligible event counts.

Correct individual chances can still give the wrong sample law

Now let each server contribute four requests, retaining two and then pooling to two. Every event has the correct inclusion probability 1/4. Yet a particular same-server pair has probability 1/36, and a cross-server pair 1/24; a uniform two-of-eight sample requires 1/28 for every pair. The expected mean is correct, but the sample-mean variance differs. This is why a sampling design describes complete samples, not only individual inclusion chances.

A count-aware reference, with a capacity condition

For disjoint populations of sizes N_A and N_B and final size k, choose the number x from A with probability C(N_A,x) C(N_B,k-x) / C(N_A+N_B,k), the hypergeometric allocation. Then subsample x and k-x uniformly from the respective reservoirs. [Hypergeometric sampling] Each must be an independent uniform local sample retaining at least min(k,N_i) events. For a fixed output subset, multiplying the allocation probability by 1/C(N_A,x) and 1/C(N_B,k-x) leaves 1/C(N_A+N_B,k).

If A retained only one of its two events, the pair containing both A events is impossible, although the uniform target assigns it 1/28. Counts cannot recover discarded pairs. Reduce the output size, retain enough local events or use a different documented design.

Apache DataSketches documents count-aware reservoir unions and explicitly distinguishes union guarantees from single-stream guarantees. The naive pooling example here is not a test of its implementation; the reference calculation does not describe its internal algorithm. [Union contract] Retaining the original count, capacity and sample is essential merge context. [Exported tuple]

For telemetry, also preserve window identity, reset epoch, timing boundary and units. Counts do not prove that two input populations are disjoint. Replaying a reservoir is not idempotent set union; equal values from different requests must not be deduplicated. Sampling recorded completions cannot recover omitted timeouts or requests that were never issued.

Inspect the derivation and assumptions, all exact pair probabilities, or the self-contained calculation and tests. After extraction, run python3 -B model.py --check and python3 -B -m unittest test_model.py. Rational enumeration checks the two examples against direct Algorithm R and subset counting; it introduces no Monte Carlo error, empirical confidence interval or p99 precision claim.

Spread is not uncertainty in the mean

Standard deviation (SD) describes variation in observations; standard error (SE) describes variation in an estimator across repeated samples. Both can use milliseconds while answering different questions. For an IID sample with finite variance, the mean's SE is sigma/sqrt(n), usually estimated by s/sqrt(n). [GUM, 4.2] Neither quantity is a p99 latency or a guarantee about individual requests.

A mean confidence interval requires its own assumptions and critical value; mean plus or minus one SE is not automatically 95% coverage. The usual sample SD uses an n - 1 denominator and is sensitive to large deviations. [mean intervals] [spread] A small SE does not correct a biased workload or missing observations.

Separate invented population: each independent draw is 1 or 3 ms with equal probability, so population mean is 2 ms and known population SD is 1 ms. Enumerate all 16 equally probable ordered samples of four draws. Then copy each draw four times, without measuring anything new. This is not the FIFO trace above, a hardware benchmark or a model of coordinated omission.

Known-population mean uncertainty; every value is synthetic

Record constructionRecordsIndependent drawsTrue mean SE, msIf all records were independent, ms
Four independent draws440.50.5
Each draw copied four times1640.50.25

The copied sample mean equals the original mean in every outcome. Both sampling variances are 0.25 ms squared, giving SE 0.5 ms. The second row's 0.25 ms result is rejected: it divides the known population SD by sqrt(16) despite there being only four independent draws. These are not estimated sample SE values or confidence limits.

Copying need not preserve the sample SD with its n - 1 denominator. Equal latency values can also come from genuinely independent requests: this example is not a rule for deleting ties. Real time dependence needs a justified sampling model, not a universal replacement of record count by run count. [GUM, 4.2.7] Preserve the request identities and acquisition history.

Kalibera and Jones distinguish benchmark iterations, process executions and builds, allocating repetitions using pilot estimates of variation and cost at each level. Their DaCapo and SPEC CPU study is methodology evidence, not an SSD latency result. [repetition levels, sections 3 and 9] Applied here: retain run and setup identities before pooling I/O records, identify which levels contribute variation, and design repeats around the question being estimated. More observations within one run cannot by themselves establish how results vary across fresh runs. This is a design implication, not a universal effective-sample-size correction.

Inspect the 16 exact outcomes and assumptions, calculation and tests. Run node --test model.test.mjs; no network, random seed or device access is required. The calculation provides no uncertainty bound for p99.

Do not average the p99 column

A second exact counterexample uses two windows of 100 requests. Window A contains ninety-nine 1 ms responses and one 100 ms response; window B contains one hundred 100 ms responses. Their p99 values are 1 and 100 ms. Averaging gives 50.5 ms, but the combined 200-request p99 is 100 ms.

Combine observations or compatible histogram counts, then calculate the quantile. Retain units, precision, population and time-window boundaries. A percentile alone has discarded the distribution needed for pooling.

HdrHistogram can add modeled samples using an expected interval to compensate for missing observations. Those values are not newly measured I/Os. Label the correction and its assumptions; it cannot establish what unissued operations would actually have done on an overloaded device. [4]

A histogram key is not an exact latency

fio's JSON+ output adds bin counts. Its manual clarifies that the numeric keys represent interval midpoints, not a lossless list of measured times. Preserve the latency field, units and layout when combining these counts. Interval-average logs cannot reconstruct the original percentiles. [13]

For the uncoarsened fio 3.41 layout, the key 100864 represents integer nanosecond values from 100352 through 101375. A selected p99 bin therefore provides a range for the recorded sample percentile, not an exact 100864 ns observation. The source's final bin also collects overflow: its representative is not an upper bound on arbitrarily long delays. [14] [15]

Hesela constructed example: 100 observations in that single bin, with unknown positions inside it. This is count arithmetic, not a fio run. A violation means latency strictly greater than the threshold.

What the same histogram proves about three thresholds

Threshold, nsDefinite violationsPossible violations
100,000100 / 100100 / 100
100,5000 / 100100 / 100
101,3750 / 1000 / 100

At 100500 ns, the histogram permits anything from zero to 100 violations. Put all observations at 100352 ns or all at 101375 ns: both populations produce the same counts, while their threshold outcomes are opposite. Treating every observation as the midpoint would invent information. These are deterministic bounds, not confidence intervals.

The calculation walks occupied bins instead of expanding their counts into synthetic observations. Its rank comparison uses integer fractions; a test queries one billion assumed observations stored in two bins. That tests count handling, not device throughput. The helper validates bin keys and rejects unsafe integer totals; it is not a general fio JSON parser.

Before pooling, check version and build constants, any histogram coarsening, units, timing boundary and disjoint observation coverage. Match the summed counts to the relevant latency sample count. A whole-run histogram plus its interval histograms would count the same operations twice. Counts alone cannot validate those provenance conditions.

More digits do not remove measurement bias

Kogias, Mallon and Bugnion's Lancet study separates workload compliance, timestamping bias and statistical convergence. Its controlled RPC evaluation used synthetic fixed, exponential and bimodal service times, rather than storage-device traces. The coordinator checks arrivals and sample behavior; it can end without a conclusive tail estimate. In section 6.3, the bimodal case above 70% load did not meet its requested interval width before the retry limit. [16, sections 4.3 and 6]

This is methodological evidence, not a prescription to apply Lancet's thresholds to an SSD. Our interpretation: finer bins cannot fix the wrong clock or a biased workload. Nor does a nonsignificant correlation test prove independence. We reviewed the paper; we did not reproduce its experiments.

Reproduce the example with the module, tests and generator: node --test fio-histogram.test.mjs, then node build-fio-histogram.mjs. The JSON results preserve assumptions and code hashes. Corpus: latency histogram bin.

A separate source-function checker compiles two reviewed functions from a pinned fio commit and compares bin mapping. Its receipt records 5251 matching inputs, including bin boundaries and overflow, not a full fio benchmark.

A log row can represent thousands of operations

We ran fio 3.41's null engine to compare its JSON+ report with its completion-latency log. This engine exercises fio without transferring data to a storage device. The check therefore measures reporting consistency, not SSD speed. [17]

Each job requested 2048 simulated 4096-byte operations, using a fixed random seed and mixed reads/writes. We crossed configured depths 1 and 8 with log_avg_msec=0 and 10, repeating each configuration twice. There was one job, no ramp interval, a clock_gettime clock and 4096 preallocated log entries. All jobs completed without reported errors.

Executed fixture on 21 October 2026. Each row is a separate run. Counts cover both directions; reconciliation checks read and write independently. The last column counts distinct millisecond timestamp/direction pairs, not requests.

Same operation budget, different log populations

Repeat / depthLog modeI/OsLog rowsDistinct pairs
1 / 1Per I/O204820484
1 / 110 ms means204822
1 / 8Per I/O204820486
1 / 810 ms means204822
2 / 1Per I/O204820484
2 / 110 ms means204822
2 / 8Per I/O204820484
2 / 810 ms means204822

For all four per-I/O runs, the 8192 retained completion records reconstruct every occupied JSON+ bin exactly. The read/write log counts equal their own clat_ns.N, and each exact nearest-rank p99 falls in fio's reported p99 bin. Multiple operations share the same timestamp and direction: deduplicating on those fields discards valid observations.

Each averaged run instead produced just two rows, one read mean and one write mean, while JSON+ still counted all 2048 observations. Averaging the log did not reduce the final histogram to two samples. These short runs flushed a partial window at completion; a ten-millisecond setting does not imply that every emitted row spans ten milliseconds. Windowed rows also have a zero block-size field, not evidence of zero-byte I/O. These behaviors follow the pinned log-format contract. [18]

Use per-I/O records for individual timing, or compatible histogram counts for binned tails. Do not calculate an operation-level p99 from a list of window means. The checker rejects wrong versions, changed column layouts, missing counts and averaged data mislabeled as raw records. It deliberately supports this fixture, not arbitrary fio jobs.

The timings vary between runs and are not a logging-overhead estimate. Logging changes the observer; preallocation addresses one allocation path, not all observer effects. Lancet's separation of workload, methodology and measurement tool remains relevant here, but this is not a reproduction of its RPC experiments. [16]

Download the result and provenance, complete reports and completion logs, checker, replay tests and runner. Keep the histogram module beside them and run node --test fio-log-reconciliation.test.mjs. The method and build instructions distinguish replaying recorded evidence from collecting new timings.

A corrected histogram is not a recovered request trace

Keep the request count separate from the corrected histogram's entry count. HdrHistogram 2.2.2 records the original value and subtracts the expected interval repeatedly, retaining extra values at least as large as that interval. For 101 ms and a 10 ms interval, the extra values are 91, 81, 71, 61, 51, 41, 31, 21 and 11 ms. A value of 11 ms adds nothing; the first extra entry appears at 20 ms. [19]

Hesela exact-integer illustration using the same FIFO traces above. All requests here are simulated. Correction adds modeled entries, not executed operations. The common p99 convention is the inverse empirical CDF, without histogram quantization.

Same closed trace, different statistical population

PopulationTrace requestsAdded entriesTotal entriesp99, ms
Closed FIFO trace19001901
Closed trace + interval correction190919991
Independent-arrival FIFO trace200020083

The closed trace still contains 190 requests. Its nine added entries give 199 histogram entries and p99 91 ms, not the open trace's 200 requests and p99 83 ms. In the open FIFO, pending requests themselves consume 1 ms of service: the early responses fall by 9 ms, not 10 ms. Histogram expansion does not rerun that queue or restore missing arrival times. This counterexample shows why correction is not an exact workload replay; it does not establish a universal direction or size of error.

For a positive interval d, a single integer value v contributes max(1, floor(v/d)) entries in this model. This is an accounting formula, not an estimate of issued IOPS or additional independent evidence. The source paper studies how workload feedback changes system behavior; it does not prove that post-processing a histogram reproduces an open workload. [1]

Apply correction once for a given omission. The library documents recording-time and post-recording correction as alternatives. Reapplying this expansion to our corrected list raises its entry count to 244, even though no new request was observed. Preserve raw counts, interval, correction status and timing boundaries with the result. [19]

Correction order and precision are part of the method

The alternatives do not imply bit-for-bit equivalence. In the pinned implementation, recording-time correction subtracts the interval from the supplied value. Post-recording correction instead traverses occupied bins; the iterator supplies each bin's upper endpoint and count to the correction routine. Original positions inside a bin are no longer available. [19] [20]

Our source-based inference: quantization before expansion can change the values expanded, and crossing an interval multiple can change their count. Do not label our exact-list p99 a library API result. Record the correction stage, units, lowest discernible value and significant-digit setting. The checker below isolates recording arithmetic; it does not execute the post-recording path or measure its error.

Run node --test latency-correction.test.mjs with the correction module, tests and existing FIFO module. The source-function checker compiles the pinned Java expansion with a list recorder and compares 5228 cases, including the complete once- and twice-corrected lists. Its receipt records source and artifact hashes. This checks one method's arithmetic, not the full library's bins, percentile API or concurrency.

A useful benchmark report

  • State the arrival model, target rate, achieved submission/completion rates, concurrency and queue boundary.
  • Define latency timestamps, units, quantile method and number of observations.
  • Report errors, drops, timeouts and requests still outstanding at the cutoff separately from successful completions.
  • Record workload mix, block size, read/write ratio, cache and persistence settings, device state, firmware and tool version.
  • Preserve distributions and time series so a later reader can distinguish a short stall from a sustained regression.

A timeout is not a measured completion time

A completed-only p99 can be 1 ms while the full admitted cohort's p99 is known only to exceed 100 ms. Retaining the number of unfinished requests lets us bound a percentile; it does not reveal the missing completion times.

First define the endpoint. A timeout is an observed client outcome, not proof that backend execution lasted that long or that no write took effect. Response arrival, backend completion and client termination are different events. Cancellation or retries can change subsequent execution, so completion under a hypothetical no-cancellation policy is not established by the log. [21]

Use right-censoring only when a record really establishes that completion time T is greater than c: the request remained unfinished through elapsed time c at the same observation boundary. Do not replace that strict lower limit by a completion at c. [22]

Constructed finite cohorts, not SSD measurements or population confidence intervals. Each row contains 1000 admitted requests. Unfinished requests are observed through 100 ms. Completed requests take 1 ms, except the final row: 982 take 1 ms and nine take 50 ms. Every request appears exactly once; cancellation and retries do not alter execution.

The denominator changes the percentile rank

PercentileCompleted / censoredFull-cohort rankCompleted-only, msAll-cohort, ms
p99989 / 11990 / 10001Greater than 100; no finite upper bound
p99990 / 10990 / 100011
p99.9990 / 10999 / 10001Greater than 100; no finite upper bound
p99991 / 9990 / 1000150

Nearest rank uses k = ceil(pN), with N including the censored requests. At 989 completions, p99 requires an unknown rank: hidden completions at 101 ms or 60 seconds are both compatible. Exactly 990 completions identify p99 but not p99.9. In the final row, the completed-only rank is 982 of 991, while the full-cohort rank is 990 of 1000: the identified p99 is 50 ms, not 1 ms.

A deadline fraction can remain exact: 989/1000 in the first row completed by 100 ms. This says nothing by itself about success or durable writes. Keep status separately; Google's SRE guidance distinguishes successful and failed request latency. Neither conditional distribution describes every admitted request. [23]

For a fixed threshold t, the smallest compatible completion count is the number of exact completions at or before t. The largest adds censored requests whose limits are strictly below t. Divide both by the full N. These are sharp pointwise identification bounds; maximizing histories may differ by threshold. They require truthful endpoint observations, not an IID population model.

For a requirement that at least fraction q completes by deadline t, call those bounds L(t) and U(t). The fixed cohort meets the requirement when L(t) is at least q, misses it when U(t) is below q, and otherwise leaves the decision unresolved. The first row meets a 98% completion-by-100-ms threshold but misses 99%, even though its p99 has no finite upper bound. This is a deduction from the bounds, not a guarantee about future traffic or successful, durable writes.

The reproduction guide, exact result JSON and derivation and limitations include variable censoring times, finite intervals and open endpoints. The calculation does not fit a missing tail or recover requests never admitted. The latter is the separate arrival-model problem examined by Schroeder and colleagues. [1, sections 2-4]

A reported p99 can miss the population tail

A sample percentile describes recorded observations. It does not establish how precisely they estimate an unknown population percentile. State the estimator: our nearest-rank convention is the inverse empirical CDF, not an interpolated percentile. Different conventions can return different values from the same short sample. [10]

For a deliberately idealized model, take n independent observations from the same continuous distribution and fix n before sampling. If q_p is its population p-quantile, each observation has probability p of being at or below q_p. Independence gives P(no observation above q_p) = p^n. Consequently the sample maximum covers q_p with probability 1 - p^n. This is an analytic sampling calculation, not a measured SSD result.

Chance of seeing no observation above the population quantile. IID continuous-population model; probabilities rounded to three decimal places.

Population quantileObservationsNo exceedance
p9910036.603%
p992994.954%
p991,0000.004%
p99.91,00036.770%
p99.92,9954.996%
p99.9910,00036.786%
p99.9929,9565.000%

With 100 observations and p = 0.99, the expected exceedance count is one, but the chance of seeing none is about 36.6%. An expected count is not a guarantee. Solving 1 - p^n >= 0.95 gives minimum counts of 299 for p99, 2,995 for p99.9 and 29,956 for p99.99.

Those counts give a 95% chance of at least one observation above the stated population quantile, under this model. They do notpromise a p99 estimate within 5%, a narrow interval in milliseconds, or sufficient coverage of rare failure modes. A maximum used as a one-sided quantile bound is not the same as a point estimate. NIST distinguishes population coverage from confidence and describes distribution-free tolerance limits; its two-sided minimum-to-maximum calculation is a different question. [11]

Storage requests can share queueing episodes, GC pauses and workload phases. Repeated correlated requests are not automatically independent evidence. Keep the time series, test the sampling assumptions and separate runs or workload phases where justified; do not apply this table mechanically to a correlated completion log.

The analytic result JSON, calculation module, tests and generator preserve assumptions and source hashes. Run node --test tail-sampling.test.mjs. These probabilities describe hypothetical repeated sampling, not uncertainty intervals attached to the fixed FIFO examples above.

The test harness can create the tail

Fruth, Scherzinger, Mauerer and Ramsauer studied OLTPBench with PostgreSQL and MariaDB, varying JVM and collector settings. Their runs used ten closed-loop workers, a ten-second warm-up and a sixty-second measurement window. NoOp controls and JVM logs helped distinguish harness pauses from database work. [12, sections 3-4]

The effect depended on workload; heavy TPC-C work made harness overhead comparatively less visible. The authors note differing JVM log coverage and possible time-alignment error. This is evidence to instrument the generator, not proof that every slow storage request is a GC pause. We reviewed the paper, not reproduced its experiments. [12, sections 3.1 and 5]

Keep two checks separate: enough observations to study the chosen tail, and evidence that the measured delay belongs to the component being evaluated.

Stable central spread can hide slow requests

Median absolute deviation (MAD) takes the median absolute distance from the sample median. Raw MAD retains the timing unit. Normal-scaled MAD instead divides by about 0.67449; that normal-model adjustment does not turn arbitrary latency tails into standard deviations. [MAD definition] [Scaling convention]

Two constructed lists of five completed requests, not device measurements. No requests are missing or censored. Median and raw MAD can stay fixed while the maximum changes.

Fixed completed latencies in milliseconds; raw, unscaled MAD
Observed values, msMedian, msRaw MAD, msMaximum, ms
1, 1, 1, 1, 1101
1, 1, 1, 1, 10010100

Zero MAD therefore does not certify uniformly fast requests. Retain tail quantiles, counts above an explicit threshold and the observation population alongside a robust central summary. Median absolute deviation is not the mean of absolute deviations. [Center and aggregation]

Relative spread changes when a fixed delay is added

The sample coefficient of variation (CV) is sample standard deviation divided by mean. For the constructed values [1, 2, 3] ms, these are 1 ms and 2 ms, giving CV = 1/2. After adding 100 ms to every request, [101, 102, 103] ms still has standard deviation 1 ms, but mean 102 ms and CV = 1/102. Every request is slower even though relative spread is smaller.

Changing ms to microseconds preserves CV. Adding a delay does not. Interpret CV on a ratio scale with a meaningful zero; at zero mean it is undefined and near zero it is unstable. Neither CV nor MAD is a confidence interval or an upper latency percentile. [CV definition and scale]

A small CV is not a warm-up or independence test. Kalibera and Jones examined a DaCapo harness that stopped when relative variation over three iterations fell below 3%; they found that automatic stopping rules could stop too early or repeat excessively. Their study concerns Java and CPU benchmarks, not an SSD experiment. For storage measurements, inspect temporal behavior and repeat the relevant experimental levels instead of accepting a CV threshold alone. [Sections 2 and 6]

Reproduce the fixed inputs with the calculation, tests and results: python3 -m unittest test_model.py, then python3 model.py --check. The sample standard deviation uses n - 1; CV is a ratio, not a percentage. These examples make no inference about a storage population.

Reproduce and inspect

Calculation correction, 17 October 2026: the earlier helper multiplied probability by sample count before rounding up. Floating-point rounding made p7 of the sequence 1 through 100 return 8 instead of 7. It now inverts empirical CDF steps directly. Regression tests cover every step for sample counts 1 through 256. The published FIFO traces and their p50, p99 and maximum results are unchanged; artifact hashes were refreshed.

No hardware was tested. The FIFO and accounting examples are deterministic outputs with fixed inputs and no random seed. They do not estimate a population or justify confidence intervals. The separate tail-sampling section evaluates an explicit probability model; it does not add uncertainty intervals to those traces. The model excludes admission limits, real generator scheduling, device parallelism, caching and failure recovery.

Explore the dataset page with CSV, column definitions and hashes, or download the full synthetic request records and provenance, calculation module, tests and JSON generator. In their common directory, run node --test latency-measurement.test.mjs. Run the generator to refresh the records and source hashes; the timestamp records that actual run.

Corpus: coordinated omission, open-loop load, closed-loop load, queue depth, storage latency, IOPS, I/O request size and Little's law.

Related research: NAND read-retry latency and fail-slow drives and software scheduling. A measurement boundary does not identify the physical cause of a slow request.

Primary sources

  1. Schroeder, Wierman and Harchol-Balter. Open Versus Closed: A Cautionary Tale. USENIX NSDI 2006, sections 2-5 and 7.
  2. fio documentation: I/O depth, io_submit_mode and interpreting slat/clat/lat. Online manual reviewed 12 October 2026.
  3. Gil Tene, wrk2: scheduled-arrival latency and coordinated omission; maintainer documentation, not an SSD benchmark.
  4. HdrHistogram maintainers: corrected versus raw value recording and expected sampling intervals.
  5. John D. C. Little. A Proof for the Queuing Formula: L = lambda W. Operations Research 9(3), 383-387 (1961). DOI: 10.1287/opre.9.3.383.
  6. John D. C. Little. Little's Law as Viewed on Its 50th Anniversary. Operations Research 59(3), 536-549 (2011), pp. 537-539. DOI: 10.1287/opre.1110.0940.
  7. Linux kernel documentation: I/O statistics fields; completed requests, merged requests and sectors.
  8. fio 3.41 source: stat.c, add_ddir_lat_json and add_ddir_status_json; latency sample counts and directional runtime denominators.
  9. Zhen Cao, Vasily Tarasov, Hari Prasath Raman, Dean Hildebrand and Erez Zadok. On the Performance Variation in Modern Storage Stacks. FAST 2017, pp. 329-344, sections 3-5.
  10. R stats documentation: Sample Quantiles, type 1 inverse empirical CDF and floating-point rounding safeguards.
  11. NIST/SEMATECH e-Handbook, 7.2.6.4: Tolerance intervals based on the largest and smallest observations; distinguish its two-sided coverage from the one-sided derivation here.
  12. Michael Fruth, Stefanie Scherzinger, Wolfgang Mauerer and Ralf Ramsauer. Tell-Tale Tail Latencies: Pitfalls and Perils in Database Benchmarking. arXiv:2107.11607v1 (2021), sections 3-5.
  13. fio manual: JSON+ bin midpoints, log_hist_msec and log_hist_coarseness; accessed 21 October 2026.
  14. fio 3.41 stat.h: histogram constants and bin geometry.
  15. fio 3.41 stat.c: plat_val_to_idx, plat_idx_to_val and count-based percentile selection.
  16. Marios Kogias, Stephen Mallon and Edouard Bugnion. Lancet: A self-correcting Latency Measuring Tool. USENIX ATC 2019, pp. 881-896, sections 4.3 and 6.
  17. fio 3.41 pinned source: null engine, synchronous/asynchronous completion paths and diskless/fake-I/O flags.
  18. fio 3.41 pinned HOWTO: log_avg_msec, log_entries and Log File Formats; partial windows and per-direction rows.
  19. HdrHistogram 2.2.2, commit 3ae7ae18: AbstractHistogram expected-interval recording loop and mutually exclusive correction APIs; public-domain source.
  20. HdrHistogram 2.2.2 pinned iterator: occupied-bin upper endpoints used by post-recording correction.
  21. AWS Builders' Library: Timeouts, retries, and backoff with jitter; Introduction and Timeouts. Client waiting and backend side effects are different observations.
  22. NIST/SEMATECH e-Handbook 8.1.3.1: Censoring; Type I and multicensored observations.
  23. Rob Ewaschuk, edited by Betsy Beyer. Monitoring Distributed Systems; The Four Golden Signals, Latency and Errors. Google SRE.
  24. Mor Harchol-Balter. Little's Law and Other Operational Laws. CMU 15-857/47-774, fall 2025, PDF pp. 6-7 and 9: whole cycle, residence and think time.
  25. Harchol-Balter and Scully: The most common queueing theory questions asked by computer systems practitioners, sections 1 and 2.1.
  26. fio manual: interpreting slat, clat and lat; asynchronous completion observation.
  27. NIST e-Handbook 1.3.5.6: Measures of Scale, sample variance and standard deviation
  28. JCGM 100:2008 (GUM), 4.2.1-4.2.3 and 4.2.7: repeated observations and correlation
  29. NIST e-Handbook 1.3.5.2: Confidence Limits for the Mean
  30. Tomas Kalibera and Richard Jones. Rigorous Benchmarking in Reasonable Time. ISMM 2013, pp. 63-74, sections 3 and 9. DOI: 10.1145/2464157.2464160.
  31. NIST Dataplot: Median Absolute Deviation
  32. NIST Dataplot: Coefficient of Variation
  33. SciPy: median_abs_deviation, scale and center conventions
  34. NIST Dataplot: Harmonic Mean, reciprocal-mean definition
  35. NIST Dataplot: Geometric Mean, product definition
  36. Python statistics: harmonic_mean, equal-distance and weighted rate examples
  37. Fleming and Wallace, How not to lie with statistics: the correct way to summarize benchmark results, CACM 29(3), 218-221 (1986), rules 2-3 and Table IX
  38. SPEC CPU2026 run rules, sections 4.10.1-4.10.2: individual ratios and geometric aggregation
  39. Larson and Odoni: Urban Operations Research, section 4.7, equations 4.79-4.82; M/G/1 mean waiting.
  40. Wolff (1982): Poisson Arrivals See Time Averages, section 1, Theorem 1 and Remarks 1, 4; DOI 10.1287/opre.30.2.223
  41. Baccelli, Machiraju, Veitch and Bolot (SIGCOMM 2006): The Role of PASTA in Network Measurement, sections 2 and 4
  42. Boon, Janssen and van Leeuwaarden: Heavy-traffic single-server queues and the transform method, arXiv:2206.09844v1 (2022), sections 1-3.
  43. Last and Penrose, Lectures on the Poisson Process (author version, 21 August 2017), chapter 9, Theorem 9.1 and sections 9.3-9.4
  44. Sigman and Whitt (2019), Marked point processes in discrete time, sections 4.3-4.4 and 6.1; DOI 10.1007/s11134-019-09612-3
  45. MIT OpenCourseWare, 15.072. HW 4 Solutions, 24 April 2006, problems 1-2: GI/M/1 root, waiting distribution and solved mixture example.
  46. Li and Niu. The Waiting-Time Distribution for the GI/G/1 Queue under the D-Policy (1992), section 2.2, equations 23, 24 and 29: ordinary GI/M/1 special case.
  47. Karl Sigman: Introduction to Renewal Theory (2018), sections 1.6-1.8, length-biased spread versus age and excess.
  48. Maria Vlasiou: Renewal Processes with Costs and Rewards, author PDF dated 5 October 2018, examples 3-4, pp. 4-6.
  49. Jeffrey Scott Vitter. Random Sampling with a Reservoir. ACM TOMS 11(1), 37-57 (1985), section 2: Algorithm R.
  50. Apache DataSketches: Reservoir Sampling Sketches; independent event occurrences and documented union guarantees.
  51. Apache DataSketches: Reservoir Sampling Performance; comparison with DataFu and the exported (n, k, samples) tuple.
  52. NIST Dataplot Reference Manual: HYPCDF (1997), page 8-119, equations 8-241 and 8-242.
  53. Welsh, Culler and Brewer: SEDA, SOSP 2001, section 3.3 (finite event queues and overload responses).
  54. Welsh and Culler: Adaptive Overload Control for Busy Internet Servers, USITS 2003, sections 2.3, 3.2 and 4.4.
  55. Node.js stream documentation: buffering, writable.write and drain.
  56. Node.js file-system documentation: FileHandle.sync and writeFile flush option.
  57. Yoshimura, Chiba and Horii. EvFS: User-level, Event-Driven File System for Non-Volatile Memory. HotStorage 2019, sections 3-5.
  58. Yoshimura, Chiba and Horii. EvFS, HotStorage 2019 presentation, slides 7, 9 and 13-17.

Original sources reviewed 12 October 2026; accounting sources reviewed 13 October 2026; quantile and harness sources reviewed 17 October 2026; histogram and Lancet sources reviewed 21 October 2026; pinned correction implementation and NSDI methodology reviewed 26 October 2026. No third-party traces or figures redistributed.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. Storage latency: when the benchmark stops asking. Hesela. 2026-11-30. https://hesela.com/analyses/storage-latency-coordinated-omission/