Find Saturation, SLO Failure & OOM Boundaries

Every sweep in this module ended with numbers getting worse. Waits climbed a staircase as callers stacked up, then grew without bound past a certain offered rate, and the last lesson showed the request's own shape moving the ceiling. Worse is not yet broken. A capacity plan, or a promise to a product team, needs a line with a location. This lesson locates the three lines the module opened with: the rate where completions stop rising, the rate where the SLO sheet stops passing, and the context length where memory runs out.

The finding method is the same for all three, and it is the one idea this lesson adds. A boundary is an interval you measured, not a point you assert: step the knob until the claim breaks, then report the pair that brackets the break, the last setting that held and the first that failed. Between those two settings lies ground no run touched, so the pair is the whole finding; quoting a single number there would be manufacturing precision the sweep does not have.

Saturation

Saturation has a measured definition: the offered rate beyond which the server completes no more requests per second than it already was. Goodput and SLOs wrote "past saturation" as if the place were known; the rate sweep is what finds it.

Below capacity, the completion rate reports on the schedule, not the server. Offer 0.3 requests per second and 0.3097 complete per second; offer 0.5 and 0.5045 complete; 0.6 returns 0.6021 and 0.68 returns 0.6801. Every request offered gets served, so the number can only echo the offer. At 0.8 that stops: 0.6882 completed per second, the first rate the server could not repeat back. And raising the offer to 1.0 bought nothing at all, 0.6882 again, zero additional completions for 0.2 more offered per second. That plateau, within a thousandth of the napkin line the rate sweep drew at 1/1.452 ≈ 0.69, marks saturation. (These figures are completions over each run's full window, schedule plus drain; the window artifact the concurrency sweep flagged came from a kept window that opened mid-queue, and these runs discard nothing.)

Stated as the method requires: saturation sits between 0.68, where completions still tracked the offer, and 0.8, where they stopped. Runs at 0.72 or 0.75 would tighten the bracket; nothing else can.

The SLO boundary

The second boundary lays a judgment over the same runs. S1 from the SLO sheet in goodput and SLOs, TTFT P95 at or under one second, reads directly against each row of the rate sweep: at 0.68 requests per second the measured P95 is 0.2824 s, a pass with a wide margin; at 0.8 it is 9.4163 s, a fail by ninefold. The last rate that held the promise and the first that broke it bracket the SLO boundary between 0.68 and 0.8, the same pair of rates that bracketed saturation. That coincidence is a property of this stack, and the goodput curve below explains it.

The sheet's other streamed promise never comes under threat. No gap in any of the seven runs on this page reached S2's tenth of a second, the worst anywhere being 0.091 s, so ITL passes at every rate including the overload run below. On this serial server the whole queue penalty lands before the first token, the diagnostic named in concurrency and arrival patterns and confirmed across both sweeps; the promise that load breaks is the first-token one.

Goodput against offered rate

The lesson on goodput and SLOs closed with a sketch, two curves against offered load, labeled the shape rather than a measurement. The same rate runs price both curves for this server. Below capacity, goodput and the completion rate are the same numbers, 0.3097 through 0.6801 good requests per second, because every request made its first token on time: 18 of 18 at rate 0.3, up through 41 of 41 at 0.68. At 0.8 the curves part exactly as drawn: completions hold the plateau at 0.6882 while goodput collapses to 0.0573, four requests out of 48 inside the second, and those four are the first four sent, before the backlog formed. At 1.0, goodput is 0.0229; at 1.2, in the overload run, 0.0223. The region goodput and SLOs could only label "served, but late" now has coordinates.

The measured curve departs from the sketch in one respect. The sketch's goodput bends away from throughput before the plateau, peaks, and falls; the measured curve does no such thing, tracking the completion rate to 0.68 and then dropping off a cliff. The metronome arrivals explain the difference, as the rate sweep noted: nothing queues below capacity here, so nothing is ever late early. Real traffic is not so tidy. Poisson arrivals bunch up below capacity and real service times vary (the lesson on percentiles and variance measured the spread even on this stack), so TTFT tails start crossing the threshold while the completion rate is still rising, and goodput bends away early, which is the shape the sketch drew. That early bend is the SLO boundary arriving below saturation. On this stack the two boundaries share one bracket; on a production stack expect the SLO boundary first, and the distance between the two is margin that your traffic's variance is spending.

The overload run

All six rates finished every request they were offered, so the failure accounting from goodput and SLOs has had nothing to count. A seventh run supplies the failures: 1.2 requests per second, three quarters again past capacity, with the per-request timeout tightened to 30 seconds so that waiting indefinitely stops being an option.

The goodput line is worth one note before reading the rest: the capture ran without --slo-ttft, so that line is S1 applied to the same run's stamps afterward, which is exactly what the flag prints. Every other row came off the run as shown. Twelve of the 72 requests died as ReadTimeout errors, and the printout handles them the way the failure accounting requires: the percentile rows summarize the sixty survivors, and the success line sits beside the grid so the shrunken population cannot hide. Counted at their timeout value instead, the twelve put TTFT P95 at the timeout itself, 30 seconds. Either accounting is a legitimate claim; survivor percentiles with no success line beside them would be the survivorship trap.

Which twelve failed is legible in the stamps. Queue waits grew by about 0.62 seconds per arrival until request 48's crossed 30 seconds; from there on, every second arrival timed out, each timeout giving up one place in line, and the surviving requests' waits pinned at 29.45 s, just under the limit. The timeout stopped being an error bound and became the admission policy.

The run's other numbers are the trap. Count every request that left the run, finished or failed, and the rate is 0.8018 per second over the 89.8-second window, a figure above the saturation plateau itself, possible only because twelve of the 72 exits were timeouts rather than served requests. The survivors still finished one every 1.45 seconds, median spacing 1.4533 s. The stream still ticked at 0.0783 s gaps. Every one of those signals reads healthy or better than ever, and meanwhile two requests in 72 met S1: goodput 0.0223 per second, a thirtieth of the plateau. A dashboard showing the first set of numbers without the last would conclude the server was fine, which is what made goodput the headline number in goodput and SLOs and makes it the boundary metric here.

The memory boundary

The third boundary is a different kind, because stepping into it costs a crash rather than a slow row: the process that allocates past the budget dies with an out-of-memory error, OOM in the field's shorthand. So this boundary is computed first and approached from below, and the last lesson said where to point the computation: on a one-at-a-time server, memory pressure arrives through context length, because a single request's KV cache is the only cache there is.

The arithmetic is from prefill, decode, and KV memory. One token of cache costs 131,072 bytes (KV memory and concurrency limits); the serving budget on the H100 target is roughly 60 GB, the figure the record chain carries in memory.md (the cached-generation lab). Divide, and a single request exhausts the budget at about 458,000 tokens of context.

The model refuses to go there. Its config caps context at 131,072 tokens, the same integer as the per-token byte price by pure coincidence, and a request at that full ceiling carries about 17.2 GB of cache, under a third of the budget. On this server the memory boundary is therefore real but unreachable: stepping context upward hits the model's own wall roughly three and a half times sooner than the GPU's. The boundary files as computed, with that note attached. It stops being unreachable the moment requests share the GPU, since per-request cache multiplies by concurrency and the division in KV memory and concurrency limits already showed three full-context requests filling the budget; engines that batch, from inference engines on, meet the memory boundary long before this server ever could.

The boundary record

The table is the method in summary form: each boundary carries the pair or the arithmetic that produced it, and a label saying which. What it cannot say is whether your server breaks in the same places, because every measured row above belongs to the course stack. Moving a boundary, rather than finding it, is a different activity, and it has a module of its own (single-GPU tuning). Finding yours is the lab, which runs this module's sweeps against your server on your box and files the baseline, the staircase, and all three boundaries into one record: the operating envelope the single-request baseline promised.