{
  "slug": "tail-latency",
  "term": "Tail latency",
  "aliases": [
    "latency tail"
  ],
  "definition": "Tail latency describes the high-latency part of an operation response-time distribution, usually summarized using specified high percentiles.",
  "note": "State the operation population, timing boundaries, percentile estimator and observation window. An hourly mean cannot reconstruct request p99, and a wait-for-all fan-out request follows the slowest required response rather than an average leaf. In one measured fan-out tree, the 99th-percentile finishing time was 10 ms for one random leaf, 70 ms for 95% of leaves and 140 ms for all leaves, so the slowest 5% accounted for half of the total. [dean]\n\nA sample p99 is an estimator, not a precision guarantee. Under a fixed-size IID continuous-population model, n observations miss every value above the population p-quantile with probability p^n, about 36.6% at p = 0.99 and n = 100. Correlated queueing episodes do not automatically supply independent observations.\n\nSingle-server tails also depend on queueing conditions. In a model with one worker and Poisson arrivals, the 99th percentile rose tenfold between 50% and 95% utilization. Under open-loop Poisson clients at 80% utilization, a key-value server moved from a 99.9th percentile of 14 ms to 32 µs after background interference, request reordering, interrupt routing, power saving and NUMA effects were addressed. [tales]",
  "related": [
    "latency-storage",
    "tail-hour",
    "coordinated-omission",
    "fail-slow",
    "hedged-request",
    "tied-request",
    "adaptive-replica-selection",
    "quantile",
    "k-of-n-completion",
    "open-loop-load",
    "median-absolute-deviation",
    "coefficient-of-variation",
    "power-of-two-choices",
    "robinhood-caching"
  ],
  "citations": [
    {
      "id": "dean",
      "title": "Dean and Barroso, The Tail at Scale, CACM 56(2), 2013; DOI 10.1145/2408776.2408794",
      "url": "https://www.barroso.org/publications/TheTailAtScale.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-tail",
      "title": "Hesela: Slow RAID hours are not request tail latency; source audit and reproducible counterexamples",
      "url": "https://hesela.com/analyses/storage-tail-slowdowns-raid-fanout/",
      "accessed": "2026-10-15"
    },
    {
      "id": "hesela-sampling",
      "title": "Hesela: tail sampling probabilities, explicit IID assumptions and reproducible analytic results",
      "url": "https://hesela.com/analyses/storage-latency-coordinated-omission/#tail-sampling",
      "accessed": "2026-10-17"
    },
    {
      "id": "tales",
      "title": "Li, Sharma, Ports and Gribble. Tales of the Tail: Hardware, OS, and Application-level Sources of Tail Latency. SoCC 2014, sections 2 to 4.",
      "url": "https://drkp.net/papers/latency-socc14.pdf",
      "accessed": "2026-10-23"
    }
  ],
  "status": "research",
  "advantages": [
    {
      "text": "Mitigation can target the slow outliers directly. Sending a backup copy only after the 95th-percentile expected latency limits extra load to about 5%, and in one benchmark a 10 ms delay cut the 99.9th percentile for reading 1,000 keys from 1,800 ms to 74 ms with 2% more requests.",
      "citationIds": [
        "dean"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A lower tail can require lower utilization or cores reserved for interrupt handling, so the improvement often trades against throughput.",
      "citationIds": [
        "tales"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "provenance": [
    "dean re-read 2026-10-23 for the fan-out arithmetic, Table 1 and the deferred backup-request figures.",
    "tales read 2026-10-23, sections 1, 2.2, 3 and 4.4, for the utilization model, open-loop clients, the 14 ms and 32 µs figures and the throughput trade-off.",
    "The p^n figure is a closed-form calculation, 0.99^100 = 0.366.",
    "The open-loop-load entry links here because the measurements use open-loop Poisson clients, which the paper chooses for burstier, more representative arrivals that affect tail latency.",
    "Two companion analyses on fan-out and on tail sampling are listed but not used in prose."
  ]
}
