﻿# Faster prefill can create a backlog of state that decode cannot use yet

Account for ready but unconsumed KV state between prefill and decode, including residence, cancellation and downstream admission under a fixed workload.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-prefill-ready-state-backlog/
Language: en

## The producer finishes before the service can consume

A separated serving system adds prefill workers. Inputs finish sooner, but decode remains occupied and prepared state waits for downstream admission. Counting finished prefills as added service hides that reservoir. The economic question is how much ready-state work and residence the system can sustain before expansion becomes stranded preparation. A completed prefill is a stage result, not an accepted answer. This protocol proposes an explicit observation boundary without assuming that every connector retains state in the same location.

## Map the state owners

The [vLLM disaggregation guide](https://docs.vllm.ai/en/latest/features/disagg_prefill/) labels its integration experimental and separates phase tuning from a throughput promise. The [KV-transfer configuration](https://docs.vllm.ai/en/latest/api/vllm/config/kv_transfer/) identifies producer, consumer and transfer behavior. Preserve the selected connector, layout and actual ownership path. Identify where state waits after input processing and before useful decode, including sender buffers or a separate storage tier where applicable. Do not infer physical residence from a routing queue alone; keep unobservable owners explicitly unknown.

## Follow prepared requests into accepted decode

Use a fixed collection of long-input and relevant output tasks with a finite arrival schedule. Hold decode resources constant while changing only an eligible prefill allocation. Track prefill completion, state availability, transfer, decode admission and terminal acceptance per operation. Continue through drain or a declared observation limit. Preserve input state that is prepared but never consumed because of cancellation, failure or expiry. Such work remains a resource cost even when it does not appear in completed-answer token statistics.

## Measure residence and displaced service

Report outstanding prepared operations, known resident bytes and their lifetimes alongside pool consumption. Distinguish ready state from partially transferred state and state currently used by decode. Avoid summing the same logical blocks at several observation points without knowing whether physical copies coexist. Record neighboring decode latency and accepted completions. A lower prefill queue can coincide with a larger state reservoir, so compare the complete resource boundary rather than selecting whichever stage's queue makes the allocation look favorable.

## Test a slow consumer and cancellation

Create a bounded interval of reduced decode capacity in an isolated equivalent, then restore it. Observe whether prepared-state residence grows and drains under the declared policy. Cancel selected requests before downstream admission and verify eventual resource release. A configured pending-work limit is not evidence that it bounds the relevant bytes; correlate its behavior with observed owners. Include failed transfer and recomputation separately so the reservoir account does not count every prepared request as safely reusable state.

## State an expansion boundary

Save stage identities, residence evidence, cancellation outcomes and accepted service at each tested allocation. [Disaggregated architecture](/journal/vllm-prefill-decode-disaggregation-architecture/) explains the phase split; [transfer diagnosis](/journal/sglang-pd-kv-transfer-diagnosis/) localizes movement and waiting. This article adds ready-but-unconsumed state as a resource population. It supports an observed prefill expansion boundary, without a universal buffer cap or a claim that adding producers improves throughput when the consumer and its state budget remain the limiting service resources.
