PagedAttention, inspired by OS virtual memory, segments the dynamic KV cache into fixed-size pages, virtually eliminating internal and external memory fragmentation and significantly improving GPU memory utilization for higher LLM serving throughput.