Back to the Denominator: Capacity Governance for Large Model Inference

    When inference capacity becomes constrained, request volume is only part of the problem. This article presents a practical framework for governing the resource “denominator” behind large model inference: available compute, cache occupancy, scheduling efficiency, session lifecycle, and reclaimability. It covers admission control, quota management, workload isolation, context optimization, state persistence, observability, and capacity validation.

    Back to the Denominator: Capacity Governance for Large Model Inference

    A representative pattern has recently emerged across the industry: when inference capacity becomes constrained, some large model services impose limits on long-running sessions that have remained inactive for extended periods. Large-scale capital investment may follow soon afterward. However, resource alerts and capital deployment naturally operate on different timelines.

    This highlights an important lesson for engineering teams: when discussing insufficient compute, do not focus only on the numerator—the volume of incoming requests. Go back to the denominator. How much compute is actually available? Who is using it? Is utilization genuine? Can capacity be scheduled effectively? Can retained state be reclaimed?

    Using “back to the denominator” as the central idea, this article outlines a practical approach to capacity governance for large model inference services.

    1. The Core Problem: Why Long-Lived Sessions Expand the Resource Denominator

    The cost of large model inference is not determined by request count alone. It is shaped by the combination of request volume, context length, concurrency duration, and scheduling efficiency.

    Long-lived sessions are particularly likely to expand the resource denominator for three main reasons.

    1.1 Retained State

    During autoregressive inference, historical context is commonly retained in structures such as key-value caches to avoid repeated computation. The longer the context, the more cache capacity it consumes. The more active a session remains, the more difficult it is to release that cache promptly.

    When many sessions are inactive but not formally terminated, GPU memory and scheduling slots may remain occupied for long periods. This creates hidden capacity loss.

    1.2 Fragmentation and Scheduling Overhead

    Long-lived sessions often have different cache sizes, which can lead to GPU memory fragmentation. To preserve session continuity, the scheduler may need to retain state across multiple batches, reducing batching efficiency.

    GPU utilization may appear healthy on the surface, while effective throughput is being consumed by fragmentation and waiting time.

    1.3 The Tension Between User Experience and Capacity

    Immediately rejecting long-lived sessions harms the user experience, while retaining them indefinitely reduces the capacity available for new requests.

    Quota policies should therefore not be viewed simply as feature reduction. They are better understood as session lifecycle governance. TTLs, priorities, context compaction, hot-and-cold storage tiers, and asynchronous reclamation can turn uncontrolled residency into a resource ledger that is measurable, predictable, and reclaimable.

    2. A Capacity Governance Framework: Making the Denominator Real

    Capacity governance can be divided into four layers:

    1. Admission control and quotas
    2. Scheduling and isolation
    3. Context management
    4. Storage and reclamation

    2.1 Admission Control and Quotas: Calculate Before Admitting

    The admission layer needs to answer three questions:

    • Who is using the resources?
    • How much are they using?
    • How long may they use them?

    A three-level quota model is recommended:

    • Tenant-level quotas control the overall budget.
    • Session-level quotas control the residency of long-lived sessions.
    • Request-level quotas control the context and output length of individual requests.

    Rate limiting should not rely solely on QPS. It should also account for estimated token volume, context growth, and cache occupancy.

    A simplified example:

    1. def admit(request):
    2. estimated = estimate_tokens(request.context, request.output)
    3. if not tenant_bucket.try_acquire(estimated):
    4. return reject("tenant_quota_exceeded")
    5. if request.session_idle > session_ttl and not request.keepalive:
    6. return reject_or_compact("session_expired")
    7. if request.context_tokens > context_policy(request.tier):
    8. return require_compaction_or_summary()
    9. return schedule(request)

    TTL should not be treated as a fixed magic number. It should be adjusted according to session value, tenant tier, and current capacity levels.

    When capacity is constrained, the retention period for inactive sessions can be shortened. When capacity is available, it can be extended moderately. At the same time, services should provide fallback paths such as “continue after summarization” or “continue with retrieval augmentation” instead of applying a universal hard cutoff.

    2.2 Scheduling and Isolation: Make the Denominator Usable

    The scheduling layer addresses the problem of having GPUs that are technically available but not effectively utilized.

    Common techniques include continuous batching, priority queues, preemptive scheduling, separation of short and long requests, and cache-aware scheduling.

    Long-lived sessions should not compete indiscriminately with short requests in the same resource pool. Otherwise, the tail latency of short requests may be affected by long-running workloads.

    Resources can be divided according to service-level objectives, for example:

    • An interactive pool for short requests
    • A long-context pool
    • An offline batch-processing pool

    Quotas can then be used to lend capacity dynamically between pools.

    GPU memory fragmentation also requires attention. Unified cache allocation, paged memory management, periodic compaction, and reserved capacity can help reduce fragmentation. The scheduler should treat cache occupancy as a first-class metric rather than relying only on request queue length.

    2.3 Context Management: Reduce Unnecessary Denominator Consumption

    Context management is one of the most cost-effective ways to improve capacity efficiency.

    Practical techniques include:

    • Sliding context windows
    • Hierarchical summarization
    • Key information extraction
    • Retrieval-augmented generation
    • Cache reuse

    For long conversations, it is not always necessary to send the entire history to the model on every request. Stable facts can be compressed into summaries, while retrievable content can be stored externally and recalled when needed.

    Compression does introduce information loss. Its quality boundaries should therefore be validated through offline evaluations and online A/B testing. Capacity savings should not come at the cost of reliability for critical tasks.

    2.4 Storage and Reclamation: Turn Resident State into Movable State

    Session state should not remain indefinitely on inference nodes.

    Cold sessions can be persisted to object storage, asynchronous tasks can be placed in message queues, and hot sessions can remain in high-speed caches.

    Reclamation policies should clearly define:

    • When a session is moved to a colder tier
    • When it is summarized
    • When it is released
    • When the user is notified

    Logging and monitoring systems should record reclamation reasons and session recovery success rates. This helps prevent user experience problems caused by silent state loss.

    3. Observability: The Denominator Is Not a Static Report

    Capacity reviews should use consistent definitions for key metrics, including:

    • Available GPU-hours
    • Effective utilization
    • GPU memory occupancy
    • Cache hit rate
    • Long-lived session ratio
    • Quota-trigger rate
    • Time to first token
    • Time per token
    • Session recovery success rate
    • Cost per token

    A rough representation of capacity is:

    1. Effective denominator = cluster GPU-hours × schedulable ratio × effective utilization
    2. Load numerator = request count × average tokens × peak factor

    This formula is useful for directional analysis, but it cannot replace realistic load testing.

    Teams should conduct regular capacity regression tests by injecting workloads with different context lengths, concurrency levels, and session TTLs. They should then observe tail latency and reclamation behavior.

    A recommended review cycle is:

    1. Trigger an incident review
    2. Calculate the denominator
    3. Profile the workload
    4. Adjust policies
    5. Validate through load testing
    6. Release gradually
    7. Recheck the metrics

    4. Organization and Investment: Capital Does Not Equal Immediate Compute

    Capital investment can relieve long-term capacity constraints, but hardware procurement, data center power availability, cluster delivery, scheduler improvements, and inference optimization all require time.

    Capacity governance should therefore be treated as an ongoing engineering discipline rather than a one-time scaling exercise.

    From an organizational perspective, technical direction and resource investment need to remain consistent. Short-term performance targets should not crowd out long-term infrastructure work.

    For development teams, the most practical strategy is to first calculate the denominator accurately, then segment workloads, and finally use observability to validate every quota and scaling decision.

    5. Implementation Checklist

    1. Establish tenant-, session-, and request-level quotas. Base rate limiting on estimated token usage rather than QPS alone.
    2. Design dynamic TTLs, summary-based continuation, retrieval augmentation, and hot-and-cold storage tiers for long-lived sessions.
    3. Include cache occupancy in core scheduling metrics, and address GPU memory fragmentation and mixed workloads.
    4. Persist cold sessions in object storage and use message queues to absorb asynchronous workload peaks.
    5. Build a unified observability dashboard covering utilization, the ratio of long-lived sessions, quota-trigger rates, and recovery success rates.
    6. Run regression load tests after every capacity incident instead of scaling or imposing limits based on intuition alone.

    Going back to the denominator does not mean taking a purely restrictive approach. It means bringing the resource ledger, session lifecycle, and scheduling efficiency into a measurable framework.

    Only when the denominator is made explicit can scaling decisions be justified, quotas be given clear boundaries, and user experience, cost, and service-level objectives be managed together.