Skip to content

v1.0: the scheduler change, re-measured and hardened

Choose a tag to compare

@StevenWang-CY StevenWang-CY released this 26 Oct 03:19
· 170 commits to main since this release

Weeks 5 to 12 of the plan. The scheduler change E2 found necessary is re-measured on its fixed form, hardened for production, and checked on the final code; the repository is ready to run on another GPU. The change is proposed upstream as #63350 and #63351.

What is measured

W5 re-measured E2's headline on the fixed make-room, in rounds over five samples of the agents' traces: two callers beside 24 sessions of the longest-context Claude Code traces, which fill the KV pool of one RTX 5060 Ti 16 GB. The voice SLO is voice alone plus 250 ms at V2V p95: 2.03 s.

Configuration V2V p95 Over the SLO Agents' tokens/s Agents' TTFT p99
vLLM 0.32, tuned: priority scheduling, a 512-token step cap, a CPU KV tier 10,477 ms +8,443 ms 3,305 106 s
Tuned, with a router that aborts agent requests before their first byte 2,522 ms +488 ms 3,332 193 s
+ #63350: a waiting request preempts lower-priority work for KV 5,085 ms +3,051 ms 3,414 112 s
+ #63351: agent prefill sits out the reply's first 16 tokens 3,094 ms +1,060 ms 3,298 105 s
+ #63351 with a 48-token window: the configuration to deploy 2,236 ms +202 ms 3,203 111 s

Medians of five rounds (10 runs for tuned vLLM and 15 for the last row). What else W5 measured:

  • Each rule is necessary. The KV preemption alone leaves 5.1 s; with the prefill rule, a 16-token window leaves 3.1 s and a 48-token one 2.23 s, since the window must cover the reply's first sentence; the replies ran 23 tokens at the median and 52 at most.
  • The agents pay through the prefill hold, 33% of the engine's steps during the calls; they keep 97% of their throughput.
  • Where it falls short. In a pool with room (the whole corpus at 16 sessions), the PRs' p95 was the lower in every round but met the SLO in only one; with 4 and 6 callers it was 0.27 s and 0.26 s over each one's SLO.
  • On the final code. Five more rounds on the same samples gave the configuration to deploy 2.27 s, round by round −45 to +77 ms from W5's, and no turn failed (FB).

What changed since v0.3

  • The change's three gaps, fixed (W5): the budget cap holds a request whose CPU-tier load has finished, the KV gates leave out a request's cached prefix, and victims are sized for the next step's decode growth. The first tokens in flight (after W5): under asynchronous scheduling the hold counts the tokens scheduled and not yet processed, as #63351's revision of 2026-10-25 does.
  • make-room is the PRs' diff, backported to vLLM 0.32.0 and applied at each engine start, with its own patch for its switches, the reserve and its counters; a trace test runs it and the PRs' patches on the same request traces, step for step, and CI runs the behavior suite and the trace on vLLM's real scheduler.
  • Production hardening (W6): the engine, STT and TTS on Unix sockets in a private directory, forwarded over SSH socket to socket; the gateway on a systemd socket unit, handing its sockets to a successor on reload, with typed stream errors and 503s while the engine restarts, and /metrics behind a key; the deploy syncs the commit and nothing else; Prometheus rules and a Grafana dashboard. Failure drills on the final build: a killed engine's streams get a typed error within 11 ms and requests succeed again after 106 s; a reload or a restart of the gateway fails no request.
  • Upkeep checks: make perf-make-room (the change's cost per scheduler step against a measured baseline) and make compat-upstream (the PRs against vLLM's main, make-room against vLLM's newest release).
  • Other GPUs. Hardware profiles that render each node's deployment, a support matrix, single-host mode, and a kit for an A100 40 GB run, rehearsed end to end on the box, with its forecast written first (HARDWARE).
  • The docs name each concept once (GLOSSARY) and give each number one home (BENCHMARKS); the technical report tells it end to end.

Assets

  • leaseholder-raw-records-w5.tar.gz: W5's raw runs, 72 points (the committed records are these through lh-bench e2 export), cut for publication: home directories, account names and credentials removed.
  • leaseholder-raw-records-fb.tar.gz: FB's raw runs, 15 points on the final code (both hosts at v0.3-191-g987fd09), cut the same way.
  • leaseholder-demo.mp4: the demo video, 170 seconds with sound: the same two callers on each engine beside 24 coding-agent sessions, tuned vLLM 0.32 on the left and the two PRs on the right (the demo video).
  • leaseholder-raw-records-demo.tar.gz: the video's two points' run directories, the calls' audio among their files.

Known issues

  • Many calls per GPU miss the SLO: the prefill hold lasts while any call's first tokens are due.
  • The PR branches ran on CPU only; E2 ran the change as make-room on vLLM 0.32.0.
  • What a resumed request recomputes, no vLLM 0.32 counter shows.
  • The A100 40 GB run is still to come. Its kit, rehearsed on the box, and its forecast are in this release; its results come with the next one.