﻿# Estimate the capacity reserve required by narrower cache-sharing groups

Plan the resource reserve for narrower prefix-cache sharing boundaries using repeated within-group and cross-group inputs under the same acceptance contract.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-cache-trust-group-capacity-reserve/
Language: en

## A shared prefix is not a sharing permission

A service separates departmental assistants into narrower trust groups. Their instruction text remains identical, but previously common cache state is no longer eligible for reuse across groups. Capacity planning must account for the resulting repeated computation. The question is how much reserve the authorized policy needs, not whether the operator should weaken the boundary for a better benchmark. An apparently efficient configuration outside the permitted sharing policy is not an eligible alternative in this comparison.

## Establish the implemented boundary

[vLLM's cache design](https://docs.vllm.ai/en/latest/design/prefix_caching/) documents optional per-request cache salting: a salt participates in the first block's hash and restricts reuse to matching salts. This is a specific reuse mechanism, not a complete tenant security model. The [automatic prefix-caching guide](https://docs.vllm.ai/en/latest/features/automatic_prefix_caching/) explains that reuse primarily avoids prefill work. Preserve the application's trust-group mapping and verify that the intended server path receives the correct boundary. Do not infer authorization merely from matching visible text or a model name.

## Construct an eligible comparison

Use synthetic contexts that contain no departmental secrets. Build a workload with repeated requests within each group and matching text across different groups. Preserve group frequencies, arrival order, output requirements and cache capacity. Compare the proposed narrower policy against an explicitly authorized baseline in an isolated equivalent. If a broader baseline cannot be run under the applicable rules, estimate only the measured narrower policy and mark the counterfactual unavailable. A hypothetical permissive run is not historical evidence of capacity.

## Separate recomputation from retention

Measure first-use prefill, later within-group reuse, cache eviction and accepted completions. The narrower boundary can require duplicate state and repeated computation, but the exact consequence depends on traffic and finite cache behavior. Record occupied cache blocks or available equivalent evidence alongside pool resource use. Do not multiply a single warm request's saving by every tenant and call that the required reserve. Requests overlap, groups differ in activity and some cached prefixes may never receive another eligible visit.

## Replay concentration and fragmentation

First replay a concentrated workload where each group receives sustained repeated traffic. Then replay a fragmented schedule with many intermittently active groups under the same overall offered collection. Keep these as separate scenarios rather than claiming their proportions represent actual demand. Observe whether repeated cold processing or state eviction constrains timely accepted work. Include unrelated short requests to identify displacement. The reserve should protect the declared service portfolio, not only the departments with the most reusable contexts.

## Examine the policy failure case

An accidentally shared or unstable salt can produce a favorable performance result while violating the intended experiment. Verify group mapping before interpreting speed, and include fixtures that change only the group while preserving text. Conversely, a fresh salt for every request can eliminate intended within-group reuse. A zero reuse rate therefore needs diagnosis rather than an automatic conclusion that isolation is intrinsically expensive. The test must establish that the implemented policy matches the policy whose resource requirement is being estimated.

## Record a constrained capacity decision

Report measured timely completions, recomputed input, state occupation and the uncertainty of shared-resource allocation. Choose any additional reserve within the demonstrated workload envelope; do not claim a universal isolation multiplier or a financial saving from cache hits alone. [Persistent cache invalidation](/journal/persistent-kv-cache-invalidation/) covers state identity and ownership, while [capacity reporting](/journal/capacity-reporting/) covers resource records. The economic addition is a reserve estimate whose feasible alternatives already respect the authorized cache-sharing boundary.
