Unit 7 of 11 · about 5 hours · derive, explain

KV transfer cost, connectors, overlap, backpressure and offload tiers

A fast data plane is not a complete handoff. The receiver must have space, layout and identity ready, and the sender must retain buffers until transfer completion makes reuse safe.

You'll be able to

  • Derive handoff payload and transfer time from KV ownership, transport startup, effective bandwidth and layout work.
  • Trace connector control metadata, memory registration, data movement, completion and source-buffer retirement.
  • Explain valid overlap and bound in-flight KV with backpressure across HBM, DRAM and storage tiers.

Covers

KV transfer size, latency and bandwidthNIXL and KV connector vocabularyTransfer overlap and backpressureKV offload across HBM, DRAM and storage tiers
1

Read

In this order, only the parts listed

0 of 4 done

  1. Pull handoff and burst bufferingDistServe: Disaggregating Prefill and Decoding for Goodput-Optimized LLM Serving

    arXiv:2401.09670v3, Section 3.3 Practical Problems - Communication overhead; Section 4.3 Online scheduling - Combat burstiness

    Recompute payload from your KV ledger instead of copying the paper's GB-labeled OPT-66B estimate. Pull buffering still needs a bound on retained prefill KV.

  2. Exchange, mapping and completionTensorRT-LLM Disaggregated Serving and KV Cache Exchange

    Introduction to KV Cache Transmission, TensorRT-LLM commit cc63e66: Workflow; Key Components - Peer Registrar and Mappers, Page Table and Transfer Agent; Current Limitations (page read 2026-10-14)

  3. Overlap across independent requestsTensorRT-LLM Disaggregated Serving and KV Cache Exchange

    Disaggregated Serving, TensorRT-LLM commit cc63e66: KV Cache Exchange - Overlap Optimization and Cache Layout Transformation, Figures 4 and 5 (page read 2026-10-14)

  4. Remote and lower-tier KVMooncake: A KVCache-Centric Disaggregated Architecture for LLM Serving

    FAST 25 paper, Sections 3.1 Overview and 3.2.1 to 3.2.3 Mooncake Store, printed pp. 158 to 160, Figure 3 and Listing 1

    Read storage ownership, registration and topology-aware transfer. Cluster reproduction is outside this unit; use deterministic tier and link costs in servelab.

2

Focus on

  • Reuse Prefill-decode disaggregation and KV transfer from the GPU route. Start with unique logical KV bytes, then add physical replication, destination fragments, page padding, transport metadata and any layout-conversion work actually transferred.
  • A serialized transfer model is , with payload bytes , effective directional bytes/s , startup and exposed packing or conversion time. A shared bottleneck link also needs offered byte rate below its capacity for a stable queue.
  • The TensorRT-LLM Python workflow separates ZeroMQ control messages from one-sided NIXL writes. Completion requires every expected writer; submission alone does not make destination KV readable or source memory reusable.
  • Overlap with other requests differs from layer-wise transfer within one request. The cited Python transceiver currently moves a whole prompt slice after prefill. Offload adds restore latency and pinned or staged memory; HBM, DRAM and SSD capacities are not interchangeable decode-ready capacity.
Common mistakes · 3
  • Treating nonblocking submission as transfer completion. Releasing or overwriting a source page can corrupt an in-flight write.
  • Subtracting an arbitrary overlap percentage without a dependency timeline or accounting for shared compute, HBM and link contention.
  • Assuming a pull protocol eliminates overload. It moves the waiting KV to the sender, whose memory is also finite.
3

Try it yourself

Closed-book, before checking anything

Use the memory unit's 131,072-byte synthetic KV payload with no padding, metadata or layout work. At a synthetic effective bandwidth of 1,000,000 bytes/s and 1 ms startup, derive a 132.072 ms serialized handoff. Draw producer-ready, destination-reserved, submitted and all-writers-complete events. Overlap unrelated request work, but forbid the dependent decode from consuming incomplete KV. Add a finite transfer-buffer limit and show that a stalled receiver eventually backpressures prefill instead of growing retained KV without bound.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Which event allows a receiver with several source ranks to use the full KV?Answer

    Successful completion and validation of all expected fragments or writers for that request attempt, followed by the required local visibility and rank agreement. The first completion is insufficient.

  2. 2.Does overlap reduce the total KV bytes crossing a link?Answer

    No. It may reduce exposed latency by scheduling independent work concurrently, but the link still carries the payload and can saturate.

  3. 3.Why can an SSD-resident prefix lose to recomputing it?Answer

    Reading, staging and restoring its bytes can cost more than the saved prefill work for that prefix and workload. Compare complete paths, not cache-hit count.

  4. 4.Does a saturated receiver justify freeing sender KV immediately?Answer

    No. The sender needs explicit bounded retention and rejection or cancellation policy. Its buffers remain owned until writes have completed or can no longer touch them.

You're done when

Your handoff byte and time ledger agrees with the event trace, no dependent decode reads incomplete KV, and a stalled receiver cannot cause unbounded retained buffers.

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