---
title: "Efficient Memory Management for Large Language Model Serving with PagedAttention"
description: "An LLM server can run out of room for requests while most of its KV cache memory holds nothing. Follow the three kinds of reservation waste, the block table that places 16-token blocks anywhere on the GPU, copy-on-write sharing, and the batch-size evidence behind vLLM's 2 to 4 times throughput."
canonical_url: "https://fanout.sh/daily/2026-07-21-pagedattention"
md_url: "https://fanout.sh/daily/2026-07-21-pagedattention.md"
last_updated: "2026-07-21"
access: "public"
---

# Efficient Memory Management for Large Language Model Serving with PagedAttention

An LLM server can run out of room for requests while most of its KV cache memory holds nothing. Follow the three kinds of reservation waste, the block table that places 16-token blocks anywhere on the GPU, copy-on-write sharing, and the batch-size evidence behind vLLM's 2 to 4 times throughput.

## Paper details

- Authors: Woosuk Kwon et al.

- Venue: SOSP 2023

- Track: Inference

- Difficulty: Hard

- Reading time: 16 min

- Original paper: https://arxiv.org/abs/2309.06180v1

## What you will learn

- Why contiguous worst-case reservation left only 20.4 to 38.2 percent of KV cache memory holding tokens in the paper's baselines.

- How a per-request block table, on-demand blocks, and reference-counted copy-on-write bound waste to the last block and share prompts across samples.

- Why a 20 to 26 percent slower attention kernel still serves 2 to 4 times more requests, and where the reimplemented baselines limit the claim.

## Continue exploring

[Read the Orca Daily](https://fanout.sh/daily/2026-08-04-orca-continuous-batching): Iteration-level scheduling decides which requests run each step; PagedAttention decides how much memory each one may waste while it runs.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
