Coordinated omission
Coordinated omission is a measurement bias in which a workload generator or sampler misses observations because its activity depends on the slow responses being measured.
A correct histogram of issued requests need not describe independent arrivals; synthetic correction must state its expected-interval assumption.
A generator that sends a request on a connection only after the previous response arrives measures each request from its actual send time. During a slow period it issues fewer requests, so the slow period contributes few samples and most high-latency artifacts are left out. [1]
One remedy keeps a constant request schedule and measures latency from the time each request should have been sent. In a quiet run with a worst case of 11 ms, the 99th percentile measured this way was about 2 times the uncorrected value. A single 1.4 s pause of the server made the corrected 99th percentile about 200 times larger. [1]
Another remedy corrects the histogram afterwards. Suppose samples are taken every 10 ms, 10,000 samples read 1 ms over 100 s, and then a 100 s pause yields one 100 s sample. The raw histogram puts about 99.99% of results at 1 ms or below, while filling in values every 10 ms during the pause puts only about 50% there. [2]
For a 10 ms expected interval, 11 ms adds no entry; 20 ms adds one at 10 ms in HdrHistogram 2.2.2. Use recording-time or post-recording correction, not both. [5]
In a deterministic FIFO example, 190 closed-loop requests become 199 histogram entries after 10 ms correction: p99 is 91 ms, versus 83 ms for 200 independent arrivals. Added entries are not additional observed requests or independent measurements. [3] Post-recording uses bin upper endpoints. [6]
Relations
Advantages
- Measuring from the intended send time keeps stalls in the latency distribution without changing the server under test. [1]
Limitations
- Fully asynchronous generation that ignores previous responses avoids the bias only for non-blocking protocols or one request per connection. [1]
- Synthetic correction depends on the expected interval and must not be applied twice for the same omission; entry counts do not establish issued-request counts. [5, 3]
- In HdrHistogram 2.2.2, post-recording correction expands occupied-bin upper endpoints, not recovered raw observations. Quantization can therefore change the expansion relative to recording-time correction; preserve the correction stage and histogram precision. [5, 6]
Citations
- Gil Tene, wrk2: scheduled-arrival latency and coordinated omission; maintainer documentation, not an SSD benchmark.
- HdrHistogram maintainers: corrected versus raw value recording and expected sampling intervals.
- Hesela: synthetic arrival cohorts, timing boundaries and percentile pooling
- HdrHistogram 2.2.2 pinned AbstractHistogram source: recording expansion and exclusive correction APIs.
- HdrHistogram 2.2.2 pinned iterator: occupied-bin upper endpoints used by post-recording correction.
Further reading
Sources & caveats
- wrk2 is the maintainer documentation of a constant-throughput load generator by Gil Tene, reread on the access date in its section on the latency measurement technique.
- hdr is the maintainer documentation of a histogram library, reread in its section on corrected versus raw value recording.
- 11 ms, 2 times, 1.4 s and 200 times come from wrk2. 10 ms, 10,000 samples, 1 ms, 100 s, 99.99% and 50% come from hdr.
- Both are maintainer documents, not peer-reviewed studies and not storage benchmarks.
- The 2026-10-26 supplement checks a pinned Java recording method against 5228 exact lists. The 190/199/200 entries and 91/83 ms comparison uses Hesela's existing deterministic model, not hardware or a reproduction of NSDI 2006.
- The correction-order caveat is inferred from addWhileCorrectingForCoordinatedOmission and AbstractHistogramIterator.getValueIteratedTo at the same pinned commit. It is a source review, not an executed post-recording histogram comparison.