Model Serving · Software component

Paged KV Cache Allocator

Software componentModel ServingModelsarc:PagedKVCacheAllocator

A KV-cache allocator that assigns fixed-size, possibly non-contiguous pages on demand from a free pool and maps them through a page table.

Responsibility. Allocates KV-cache memory in on-demand fixed-size pages.

Also known as: Paged Attention, Paged KV cache, PagedAttention

Variant of KV Cache Allocator abstract

When to choose. Choose by default for production serving, especially workloads with high variance in generation length; benefit is minimal for fixed-length outputs.

deployed onis invoked byspecializesis target of alternativeToLLM Generation Backend: deployed onLLM Generation BackendIn-Flight Batch Scheduler: is invoked byIn-Flight Batch SchedulerKV Cache Allocator: specializesKV Cache AllocatorContiguous KV Cache Allocator: is target of alternativeToContiguous KV Cache Allo…
Direct neighbourhood (hover for relationship types)

Relationships

deployed on structural

is invoked by dependency

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Virtual-memory-style pagingCross-request prefix page sharingVirtual-memory paging of KV cacheBlock indirection table
Technologies
vLLMTensorRT-LLMNVIDIA NIM
Risks mitigated
KV-cache fragmentationPeriodic stalls from cache reallocation

Sources

  1. Ch4.4: T. Nguyen, "Performance Profiling and Optimization," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 4.4. ISBN: 9798244538229.
  2. Ch7.4: T. Nguyen, "TensorRT-LLM Fundamentals and Quantization," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 7.4. ISBN: 9798244538229.
  3. Ref7.05: S. Verma and N. Vaidya, "Mastering LLM Techniques: Inference Optimization," NVIDIA Technical Blog, Nov. 17, 2023. [Online]. Available: https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/
  4. Ref7.15: "Advanced Agentic AI Optimization Techniques," unpublished reference note (15-Advanced-Agentic-Optimization.md), Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam supplementary materials, 2026. unpublished note