Skip to content

design: investigate KV cache transfer latency as a predictor feature for P/D mode #30

Description

@madhugoutham

Summary

Investigate whether KV cache transfer metrics can improve latency predictions in prefill/decode disaggregated deployments. This is a design investigation, not an implementation proposal.

Problem

In P/D disagg mode, TTFT includes KV cache transfer time between prefill and decode pods. Transfer latency varies by interconnect type. The predictor has no features for transfer latency and predicts the same TTFT regardless of interconnect.

Design concern

Decode pods do not always pair with the same prefill pod. Transfer latency varies per prefill-decode pair depending on network topology. Training on per-pod average transfer latency when routing varies which prefill is chosen may introduce noise that makes predictions worse rather than better.

Investigation needed

  1. Verify which NIXL metrics vLLM currently exposes and in what format
  2. Determine whether decode pods consistently pair with specific prefill pods
  3. Assess whether per-pod average transfer latency is meaningful despite pairing variance
  4. Measure actual TTFT variance attributable to transfer in production P/D deployments

Note: Transfer latency ranges (sub-millisecond for NVLink to tens of milliseconds for TCP) are simulation estimates, not production measurements. Prefill-decode pairing varies per request, so per-pod average transfer latency may be a noisy signal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions