eLLM: Elastic Memory Management Framework for Efficient LLM Serving

Jiale Xu, Rui Zhang, Yi Xiong, Cong Guo, Zihan Liu, Yangjie Zhou, Weiming Hu, Hao Wu, Changxu Shao, Ziqing Wang, Yongjie Yuan, Junping Zhao, Minyi Guo, Jingwen Leng · DOI

Summary: eLLM is a novel memory management framework that eliminates the rigid isolation between activation memory and KV caches in Large Language Model (LLM) serving. By implementing an OS-inspired "memory ballooning" mechanism, it creates a unified, elastic memory pool that dynamically reallocates resources based on real-time demand, resulting in up to 2.32× higher throughput and supporting 3× larger batch sizes for long-context workloads.

Introduction

Serving Large Language Models (LLMs) in production environments requires a delicate balance of GPU memory resources. Traditionally, this memory is partitioned into three distinct silos: static model weights, dynamic activations generated during computation, and the Key-Value (KV) cache used to store past tokens for faster generation.

Current state-of-the-art systems, such as vLLM, utilize "PagedAttention" to manage KV caches dynamically. However, they still treat activation memory as a static allocation based on the maximum possible request length. This rigid isolation creates significant inefficiencies. During the decoding phase, activation requirements are minimal, yet a large portion of memory remains reserved and idle. Conversely, during the prefill phase, activation needs spike, often starving the KV cache. This "silo" effect leads to GPU underutilization and limits batch sizes, particularly for modern long-context models (128K+ tokens) where memory pressure is extreme.

Memory composition shifts significantly with context length expansion and architectural innovations.

The eLLM Framework

To address these limitations, the authors introduce eLLM, an elastic memory management framework that breaks down the barriers between activation memory and KV caches. eLLM treats GPU memory as a unified, elastic pool that can be dynamically reallocated in real-time.

The framework is built upon four key innovations:

  1. Virtual Tensor Abstraction (eTensor): Inspired by Virtual Memory Management (VMM) in operating systems, eTensor decouples a tensor's virtual address space from physical GPU memory chunks. This allows the system to manage all available GPU memory as a single physical pool.
  2. Elastic Memory Mechanism (Ballooning): eLLM implements "inflation" and "deflation" operations. When the KV cache needs more room, it "inflates" by borrowing idle physical chunks from the activation pool. When a new request requires more activation space, the KV cache "deflates" to return those chunks. This ownership transfer is a metadata update, requiring zero data copying.
  3. GPU-CPU Offloading & Fetching: To further alleviate pressure, eLLM uses CPU RAM as an extensible buffer. It proactively offloads KV caches not immediately needed for the current decoding step and fetches them back just-in-time.
  4. SLO-Aware Scheduling: A lightweight scheduler monitors Service Level Objectives (SLOs), specifically Time To First Token (TTFT) and Time Per Output Token (TPOT), to balance the trade-off between starting new requests quickly and maintaining fast generation speeds.
Tensor breakdown and memory snapshot comparison between vLLM (isolated) and eLLM (elastic).

Key Insights

A primary observation of this work is that the memory bottleneck in LLM serving has shifted. In newer architectures like Jamba or those employing Grouped-Query Attention, the KV cache is becoming more compressed. This makes activation memory the primary constraint, rendering old "KV-centric" management approaches obsolete.

eLLM is the first framework to fully exploit the phase asymmetry between compute-heavy, activation-intensive prefill and memory-bound, activation-light decoding. By using a unified physical chunk pool, eLLM can repurpose memory from an activation tensor to a KV cache block without moving a single byte of data—it simply updates the mapping in the GPU's page table.

Evaluation and Results

The framework was evaluated using the ShareGPT dataset and various synthetic workloads designed to stress-test long-context performance.

  • Throughput Gains: eLLM achieved up to 2.32× higher decoding throughput compared to state-of-the-art systems like vLLM.
  • Long-Context Support: For 128K-token inputs, eLLM supported 3× larger batch sizes, effectively utilizing memory that would otherwise be wasted.
  • Latency Reduction: In online serving scenarios, eLLM reduced the Time to First Token (TTFT) by up to 295× in specific long-context workloads by using CPU offloading to bypass the "memory admission barrier."
  • Ablation Success: The combination of intra-GPU elasticity (ballooning) and GPU-CPU elasticity (offloading) provided a 1.5× improvement in throughput and a 2.5× improvement in "goodput" (requests meeting SLOs) over baseline vLLM.

Conclusion and Future Work

eLLM demonstrates that breaking memory silos is essential for efficient LLM serving, especially as context lengths grow. While CPU offloading is currently limited by PCIe bandwidth, future work aims to include model weights in the elastic pool to support multi-model serving or dynamic LoRA adapter swapping. The authors also plan to incorporate dynamic parameters to support more adaptive and efficient learning-while-serving environments.

Summary updated

BibTeX
@misc{xu2025ellm,
  author = {Jiale Xu and Rui Zhang and Yi Xiong and Cong Guo and Zihan Liu and Yangjie Zhou and Weiming Hu and Hao Wu and Changxu Shao and Ziqing Wang and Yongjie Yuan and Junping Zhao and Minyi Guo and Jingwen Leng},
  title = {{eLLM: Elastic Memory Management Framework for Efficient LLM Serving}},
  year = {2025},
  eprint = {2506.15155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.15155},
}
Figure