Skip to content

[Blog]: P2P KV Cache Sharing Under Agentic Serving at Scale #484

Description

@nilig

Contact Details

@niliguy, @liranschour

Proposed Title

P2P KV Cache Sharing Under Agentic Serving at Scale

Short Synopsis

Follow-up to Pull, Don't Recompute, which priced the transfer and showed three payoff cases. This post measures P2P against the agentic traffic shape at fleet scale: long prefixes re-read almost verbatim across turns, sub-agent fan-out arriving with no advance signal, and sessions that pause and then burst. It covers the four cases the first post named as unmeasured - hot-prefix skew, scale-out warmup of a cold replica, restart and preemption recovery under live multi-turn sessions, and prefetch ahead of arrival - plus a cross-vendor crossover measurement so the minCachedTokenDelta guidance is not tied to one accelerator.

Why This Post?

The published post establishes the economics and three payoff cases, but explicitly leaves fleet dynamics for later: those are the cases operators hit in production, where locality breaks arrive continuously rather than once. Agentic serving is also where the mechanism should pay the most, since nearly every turn re-reads a prefix the cluster already computed.

The published numbers are single-vendor: every benchmark ran on H200 with NIXL/UCX over rdma/ib, and the guide's prerequisites name CUDA GPUs. Whether the pull-versus-recompute crossover, and therefore the recommended minCachedTokenDelta, transfers to other accelerators is unmeasured, so operators on those stacks have no calibration starting point.

Target Audience

Operators running agentic or coding-assistant workloads on multi-replica llm-d deployments; contributors working on KV cache management, P/D disaggregation, and the P2P connector.

Who Will Write It?

I'm open to writing it or finding a co-author

Related Links

Additional Context

Partners with agentic production traffic or non-NVIDIA hardware are welcome to co-author. @PrateekKumar1709 (AMD) offered to collaborate in #425; the contained first piece of work is the Step 0 ladder from the benchmarking guide - recompute versus pull on a single pair with no router in the path - which establishes both whether the offload/NIXL path works on that stack and where the crossover sits.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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