Unit 8 of 11 · about 5 hours · derive

Pool placement, heterogeneous GPUs and the disaggregation break-even

Separating phases is justified only against a comparable colocated plan. A faster phase on a different GPU type can still lose once transfer, queueing, duplicated weights and reserve cost are counted.

You'll be able to

  • Derive a workload-specific disaggregation break-even that includes both phase queues, exposed transfer and layout work.
  • Choose prefill and decode placements from local memory, shared-link capacity, heterogeneous phase service rates and cost.
  • Account for ready reserve, startup lag and draining requests when resizing a phase pool.

Covers

Prefill and decode pool placementHeterogeneous GPU and phase assignmentDisaggregation break-even modelWarm pools and elastic phase resizing
1

Read

In this order, only the parts listed

0 of 3 done

  1. Placement with and without fast cross-node linksDistServe: Disaggregating Prefill and Decoding for Goodput-Optimized LLM Serving

    arXiv:2401.09670v3, Sections 4.1 and 4.2, Algorithms 1 and 2; Section 4.3 - Replanning

    Retain the enumeration method and corresponding-layer placement constraint. Do not assume KV overhead is negligible just because a link is called InfiniBand.

  2. Different devices for different phasesHands-On LLM Serving and Optimization - Chapter 7, multi-GPU and disaggregation

    Chapter 7, Prefill-Decode Disaggregation - Opening up more hardware options and Enabling independent and asymmetric scaling, printed pp. 252 to 253; When to Use, printed pp. 256 to 257

    Use the hardware comparison to pose a phase-cost hypothesis, not to promise its example assignment meets your workload's SLO.

  3. Resize discoverable phase poolsNVIDIA Dynamo - Disaggregated Serving and KV-Aware Routing

    Dynamo v1.5.1, Runtime-Reconfigurable xPyD; Performance Characteristics - Capacity effects of disaggregation

2

Focus on

  • Define a latency comparison before a throughput comparison. With the same work and no overlap, disaggregation reduces a chosen latency only if : service change , queue change , transfer and extra routing work must be smaller than the colocated interference removed.
  • First-token placement changes the critical path. If prefill streams the first token before KV transfer, transfer may appear in the first decode gap rather than TTFT. Compare the declared TTFT and ITL or TPOT contracts separately.
  • DistServe's low-node-affinity plan keeps corresponding prefill and decode layer segments together so KV uses fast local links. Different TP layouts can still need shard redistribution and conversion within that placement.
  • Heterogeneous assignment uses measured or explicitly synthetic phase service curves, memory and price, not peak FLOP/s alone. Ready warm reserve costs money; a registered worker is not usable until weights, buffers and warmup are ready. Drain active handoffs before removing capacity.
Common mistakes · 3
  • Comparing one transfer delay with the sum of stalls over many decoding users. These are different objectives; choose per-request latency, aggregate lost work or goodput and use consistent units.
  • Assigning decode to a cheaper GPU without checking KV capacity, supported dtypes, layout compatibility and achievable batch service time.
  • Counting a newly launched worker as immediate capacity, or reclaiming a drained worker while an in-flight write can still reach it.
3

Try it yourself

Closed-book, before checking anything

For a synthetic handoff-gated latency, assume disaggregation removes 20 ms of colocated interference, leaves intrinsic phase service unchanged, adds 10 ms exposed transfer and 3 ms routing/layout work, and increases total phase waiting by 2 ms. Derive a 5 ms improvement. Change only the additional waiting to 12 ms and derive a 5 ms regression. Then state the extra constraints needed before either result implies higher SLO-qualified goodput at equal device cost.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Why can low offered load favor colocation even on a fast link?Answer

    There may be little interference to remove. Handoff, extra routing and fragmented phase capacity still cost latency and resources.

  2. 2.What does the synthetic regression isolate?Answer

    Queueing alone reverses the latency decision. Transfer and service are unchanged, so faster transport would not explain that reversal.

  3. 3.What capacity counts during a phase-pool resize?Answer

    Only ready workers able to admit compatible new requests. Starting workers provide no immediate capacity; draining workers retain resources for active requests until safe retirement.

  4. 4.Does lower average handoff-gated latency prove better goodput?Answer

    No. Goodput also depends on tail targets, the completion and quality contract, admission, offered load and equal resource cost. Replay the same workload through both plans.

You're done when

Your placement decision includes a winning and losing regime, identifies the first-token critical path, and charges transfer, queueing, reserve and startup under the same workload and cost budget.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 10 more in the section

Also in this section