Tail latency is the response time of your slowest requests, usually measured at the 95th, 99th or 99.9th percentile, and it is the number that decides how a large system feels. Averages look healthy while one request in a hundred stalls. In a cluster where every request touches dozens or hundreds of machines, that one in a hundred becomes the common case. For teams planning HPC or AI infrastructure, the tail is a design input, not a tuning afterthought: network topology, storage, server configuration and utilization targets all set it before the first workload runs. Dormedia designs, sources and deploys that infrastructure, and the sections below show what to specify and why.
TL;DR
- Tail latency is the slow end of the latency distribution (p99, p99.9), not the average. Report percentiles, never the mean alone.
- Fan-out multiplies it: if each of 100 backends is slow 1% of the time, about 63% of requests that wait on all of them hit a slow one.
- Typical causes are shared resources, background maintenance, queueing at high utilization, power management, and interrupt and scheduling behavior. Most are decided at hardware and architecture level.
- Measure with enough samples and merge raw data or histograms. Never average percentiles across machines.
- Fix it in layers: design headroom into the cluster, isolate workloads, then add software tolerance such as hedged requests.
Table of Contents
- What tail latency means
- Why the tail grows with scale
- How to measure it correctly
- What causes unstable latency?
- How to reduce tail latency
- Designing for the tail from the start
- Where Dormedia fits
- Our perspective
- FAQ
- Sources
What tail latency means
Every request to a system takes a different amount of time. Sort all those times from fastest to slowest and you get a distribution. The median (p50) is the typical request. The 99th percentile (p99) is the time that 99% of requests beat, so the slowest 1% take longer than it. The slowest few percent of that distribution is the tail.
The Google SRE book gives a clear example: a service where the typical request takes about 50 ms, but 5% of requests are 20 times slower. Averaging hides those requests and any change in them, which is why the book recommends percentiles over means for skewed data.
A small worked example shows the gap. A system serves 1,000 requests per second. Most finish in 100 ms, but 1% take 5 seconds. The mean looks acceptable, around 150 ms. Yet the SRE book's analysis of this scenario shows that the slow 1% appears on far more than 1% of web pages, because a page is ready only after every backend has answered.
That last point is the heart of the topic. Tail latency is not mainly about a few unlucky users. It is about what happens when many components must all respond.
Why the tail grows with scale
Jeffrey Dean and Luiz André Barroso, both of Google, described the effect in their paper on tail latency at scale. Suppose each server typically responds in 10 ms but has a 99th-percentile latency of one second. A request that fans out to 100 such servers in parallel takes more than one second for 63% of user requests. In a real Google service they measured, the p99 for a single random request was 10 ms, but the p99 for all requests to finish was 140 ms.
The arithmetic is simple. If each backend is slow with probability p, a request that needs n backends is slow with probability 1 − (1 − p)^n. With p at 1%:
| Backends per request | Chance the request hits a slow one |
|---|---|
| 1 | 1% |
| 10 | 9.6% |
| 50 | 39.5% |
| 100 | 63.4% |
| 200 | 86.6% |
The same paper notes that even when only one request in 10,000 is slow on each server, a fan-out of 2,000 servers leaves almost one in five user requests over one second.
The lesson for anyone sizing a cluster: component-level quality is necessary but not sufficient. A part that is excellent 99% of the time can still produce a poor system once enough parts are chained or fanned out.

Does this apply to HPC as well as AI serving?
It applies differently. A survey of the field, Tales of the Tail: Past and Future, notes that tail latency is what separates cloud services from traditional supercomputing. In HPC, applications are usually less interactive and the metric of interest is throughput and whole-job execution time. Tail latency can still affect throughput indirectly: in a tightly coupled job, every rank waits for the slowest one at each synchronization step.
AI is where both worlds meet. Training behaves like HPC, with the slowest node setting the pace. Inference behaves like a web service, with users or control loops waiting on individual answers. If you run both on the same infrastructure, you have two tail problems to design for.
How to measure it correctly
Measuring the tail is harder than measuring the mean, and bad measurement produces confident, wrong numbers. These rules cover most of the errors.
Collect enough samples. A p99 from 500 requests rests on five data points. Research on benchmarking latency-critical applications states that accurate tail measurement requires large sample counts. The TailBench methodology uses warmup periods, repeated randomized runs, and enough runs to reach 95% confidence intervals within 1% for each latency metric, and it records latencies in HDR histograms with about 1% precision.
Do not average percentiles. The p99 of machine A and the p99 of machine B cannot be averaged into a fleet p99. Merge raw samples or histograms, then compute the percentile once. Use aligned time windows so the numbers mean the same thing.
Watch the load generator. A test client that waits for each response before sending the next one quietly hides stalls, an error known as coordinated omission. Use an open-loop generator that sends at a fixed rate and measures from the intended send time.
Separate queue time from service time. A talk from SREcon on trading off server utilization and tail latency defines request latency as queue time plus service time. The two have different fixes: service time is about the software and hardware doing the work, queue time is about how busy the system is.
Read the shape, not one number. A high p99 with a normal p50 points to a sporadic problem affecting a small slice of traffic. A p50 that has shifted upward points to broad degradation. Track p50, p95, p99 and p99.9 together.

Is 1 ms good?
It depends on what the 1 ms describes and at which percentile. As a median for a remote service call, it is very fast. As a p99.9 across a large fan-out, it may be unattainable. As a network round trip within a rack it is ordinary, while across a continent it is physically impossible. Always state the workload, the percentile and the load level when you write down a latency target.
For a sense of what careful engineering can achieve, researchers eliminated interference from background processes, request re-ordering, interrupt routing, CPU power saving and NUMA effects on a Memcached server. They reached a median of 11 µs and a 99.9th-percentile latency of 32 µs at 80% utilization, against a median of 100 µs and a p99.9 of 5 ms for a naive single-core setup at the same load.
What causes unstable latency
Dean and Barroso list the sources of variability, and nearly every item sits at the infrastructure layer:
- Shared resources. Cores, caches, memory bandwidth and network bandwidth are contended by co-located workloads.
- Background daemons. They can cause multi-millisecond hiccups even when their average load is small.
- Global resource sharing. Network switches and shared file systems couple unrelated jobs.
- Maintenance activity. Data reconstruction, log compaction and garbage collection run on their own schedule.
- Queueing. Queues form at multiple layers, from the NIC to the application.
The same paper adds hardware trends: power-limit throttling, SSD garbage collection that can raise read latency by a factor of 100 with modest write activity, and wake-up delays from energy management.
Utilization is the lever most teams underestimate
Queueing delay does not rise linearly with load. The SREcon material shows that pushing utilization beyond about 60% produces sharply worse tail latency, and as utilization approaches 100% the tail grows without bound. In their simulation with a constant 5 ms service time at 50% utilization, the tail was already about four times a single request's service time.
This is a capacity-planning fact. Running a cluster at 90% to improve cost efficiency may be exactly what produces the p99 complaints. Buying or provisioning headroom is a latency decision as much as a throughput one. Our guide to data center scalability and capacity planning walks through how to size for growth without running hot.
How to reduce tail latency
Dean and Barroso's framing is useful: eliminating every source of variability in a large shared system is impractical, so the goal is "tail-tolerant" techniques that build a predictable whole from less predictable parts. In practice that means working in three layers.
Layer 1: remove variability in the hardware and platform
This is the layer where purchasing and configuration choices matter most. Typical measures include:
- Pinning latency-critical work to dedicated cores and keeping background daemons off them.
- Fixing interrupt routing and disabling or tuning CPU power-saving states.
- Respecting NUMA boundaries so memory and NIC placement match the threads using them.
- Sizing storage so garbage collection and rebuilds do not collide with serving traffic.
- Provisioning network capacity so queues do not form at switches.
The Treadmill study showed what systematic tuning can do. Using quantile-regression attribution to tune hardware features, the authors reduced 99th-percentile latency by 43% and its variance by 93%. The same work warns of performance hysteresis: repeated runs can settle at different latencies because the mapping of threads and memory to physical resources changes between runs. So test on the production configuration, repeatedly.
Our article on HPC performance tuning covers this layer in more detail, and the piece on AI infrastructure bottlenecks covers where projects typically stall.
Layer 2: isolate and schedule
The Cornell lecture notes built on Dean and Barroso list the standard mitigations: differentiating service classes, breaking large requests into smaller ones to reduce head-of-line blocking, managing background activities, micro-partitioning, and replicating hot partitions. The survey cited earlier adds resource partitioning, rate limiting, load shedding and backpressure. These keep a bursty tenant or a large request from stalling everything behind it.
Layer 3: tolerate what remains
Some slowness will survive layers one and two. Software techniques then make it invisible to the user:
- Hedged requests. Send the same request to a second replica if the first has not answered within a short delay, and take whichever replies first. For latency-critical AI, one analysis shows that hedging two independent calls turns a 2% tail into roughly a 0.04% tail.
- Tied requests and selective replication. Queue the request on two servers and cancel the loser, or add copies of hot data.
- Probation. Temporarily remove machines that show slow responses from the serving pool.
There is a cost: hedging consumes extra capacity, and extra load raises utilization, which raises the tail. That is why layer one comes first. A cluster with no headroom cannot afford hedging.
Profiling to find what to fix
Recent work shows how much a targeted fix can yield. The PonyTail paper reports that tail-oriented optimizations across five latency-critical services improved 99th-percentile service time by 10.7% to 46%, and that improving a cache hit rate in one translation service cut p99 service time 53 times. Data collection added 9% to 24% to mean service time, so profile in a staging environment before turning it on in production.
Designing for the tail from the start
For a buyer, the practical question is what to decide before the hardware is ordered. A short checklist:
- Write the target as a percentile. For example, "p99 under X ms at Y requests per second with Z% utilization," not "fast."
- Map the fan-out. Count how many components a single request or a single training step must wait on. Use the formula above to estimate exposure.
- Plan utilization ceilings. Decide the load level at which you will add capacity, and keep it well below the point where queues explode.
- Choose the interconnect and storage for the tail, not the peak. Peak bandwidth figures do not describe p99.9 behavior under contention.
- Standardize configurations. Hardware heterogeneity is a named cause of tail variance, so mixed batches of servers and components deserve extra scrutiny.
- Decide where capacity lives. Spreading work across sites or between on-premises and cloud adds network variability, which our overview of hybrid cloud HPC explains.
Accelerated computing adds its own variables, such as host-to-device transfers and GPU memory contention, covered in our accelerated computing planning guide.
Where Dormedia fits
Tail latency is decided by many choices that span vendors: server and component configurations, data center layout, networking, and the order in which everything is delivered and brought online. Dormedia is a consultancy that has worked in this field since 2011 and in HPC and AI specifically since 2017. We help organizations design, source, deploy and scale HPC and AI infrastructure, with customized server and component configurations, data center solutions, project management and ongoing support behind a global network of vendors and logistics partners.
If you are specifying a cluster and want latency targets built into the design, bring your workload description and your percentile goals to the first conversation.

Our perspective
Teams usually meet tail latency late, after the cluster is built and the first p99 chart arrives. By then the largest levers, such as the configuration of servers and components, the capacity headroom and the layout of the data center, are expensive to change.
We think the better order is to treat the tail as a requirement from the first design session. State the percentile target, map how many components each request touches, and size the system so it never has to run near saturation. That is a design and sourcing conversation, and it is the kind of work we do: customized configurations, project management from sourcing through deployment, and strategic advisory as workloads grow.
Our experience since 2011, and in HPC and AI since 2017, is that infrastructure projects go smoothly when design, procurement, logistics and deployment are planned together rather than as separate hand-offs. A latency target is one more reason to keep them together.
Dormedia
FAQ
What is meant by tail latency?
Tail latency is the response time of the slowest small share of requests, typically the 95th, 99th or 99.9th percentile. It differs from average latency because the mean can look fine while a minority of requests are many times slower. At scale, that minority affects most user-facing operations.
What causes unstable latency?
Common causes are contention for shared CPU, cache, memory and network resources, background daemons, garbage collection and other maintenance, queueing at high utilization, power-saving states and SSD housekeeping. Many of these are set by hardware choices and cluster configuration, which is why they are best addressed during design.
How is network latency calculated?
Network latency is the time from starting a send at the source to completing the matching receive at the target, usually in milliseconds. Ping reports round-trip time, roughly double the one-way figure, but the outbound and return paths can differ, so it is an approximation. End-to-end latency is the sum of processing, queuing, transmission and propagation delays at each hop, so operators characterize it with sets of measurements, not a single reading.
How many requests do I need to measure p99 reliably?
A p99 computed from 500 requests rests on only five samples. Aim for thousands of requests for a stable p99 and tens of thousands for p99.9, run repeatedly after a warmup period, and merge raw data or histograms rather than averaging percentiles from separate machines or windows.
Sources
- Google SRE Book: Service Level Objectives
- Google SRE Book: Worrying about your tail
- The Tail at Scale, Communications of the ACM
- The Tail at Scale, full paper
- Tales of the Tail: Past and Future
- TailBench: A Benchmark Suite and Evaluation Methodology
- How to trade off server utilization and tail latency, SREcon 2019
- Tales of the Tail, ACM SoCC 2014
- Treadmill: Attributing the Source of Tail Latency
- Cornell ECE 6765: Performance, Tails, Microseconds, and Taxes
- Section 34.7: Latency-Critical Distributed AI
- PonyTail: Profiling and Improving Service Tail Latency
- Latency Measurement: What is latency and how do we measure it
