Manuscript Offprint

arXiv:2610.40305

Rimuru: Unified Memory Management for Modern LLM Serving via Elastic Expert Offloading

Zhiyuan Fang, Dingyang Li, Jianfeng Zhong, Bin Wang, Weixi Zhu, Cunshu Ni, Zicong Hong, Wuhui Chen, Zibin Zheng

Zhiyuan Fang

Sun Yat-sen University

Zhuhai, China

fangzhy27@mail2.sysu.edu.cn

Bin Wang

Independent Researcher

Shanghai, China

bw373717@gmail.com

Zicong Hong

EPFL

Lausanne, Switzerland

zicong.hong@epfl.ch

Dingyang Li

Sun Yat-sen University

Zhuhai, China

lidy63@mail2.sysu.edu.cn

Weixi Zhu

Independent Researcher

Shanghai, China

weixi.zhu@openeuler.sh

Wuhui Chen

Sun Yat-sen University

Zhuhai, China

Peng Cheng Laboratory

Shenzhen, China

chenwuh@mail.sysu.edu.cn

Jianfeng Zhong

Sun Yat-sen University

Zhuhai, China

zhongjf25@mail2.sysu.edu.cn

Cunshu Ni

Independent Researcher

Hangzhou, China

cunshuni200@gmail.com

Zibin Zheng

Sun Yat-sen University

Zhuhai, China

zhzibin@mail.sysu.edu.cn

Abstract

Modern LLMs strain device memory through large model weights and attention states, particularly in resource-constrained scenarios. Existing systems separately provision memory for model weights and attention states, imposing fixed fixed boundaries that cannot adapt to the changing memory demands of workloads. Under heavy workloads, insufficient state capacity limits request concurrency and reduces throughput; under light workloads, idle memory in one region cannot be reallocated to another, wasting device memory. Meanwhile, modern LLM architectures introduce heterogeneous tensors with diverse layouts and lifetimes, further complicating memory management. These problems motivate unified memory management for heterogeneous tensors. However, a shared pool alone does not make memory directly reusable across tensors with different allocation granularities and execution layouts.

This paper presents Rimuru, a modern LLM serving system that unifies memory management through elastic expert offloading. Rimuru establishes a shared page pool to enables elastic memory sharing across heterogeneous tensors. To accommodate different allocation granularities, Rimuru introduces memory views that allow each tensor type to interpret the shared memory space using its own page size and page table. Furthermore, Rimuru combines huge-page alignment with a multi-level page allocator that splits and merges pages on demand, enabling cross-type capacity reuse while minimizing fragmentation. A page-table-aware fused MoE kernel directly accesses non-contiguous expert weights, avoiding copies into contiguous execution buffers. Building on these mechanisms, Rimuru employs a workload-aware adjuster that dynamically reallocates pages across tensor types according to runtime demands, while coordinating changes in expert residency with the prefetching and execution pipeline. Implemented on top of vLLM, Rimuru remains compatible with modern LLMs. Evaluations show that Rimuru achieves up to 19.03×19.03\times baseline throughput and reduces TTFT by 98.1% on average.

Keywords

LLM Serving; Memory Management; MoE; Offloading