gKSM: GPU Memory Deduplication at Driver Layer for Serverless LLM Inference
Shuheng Gao, Fan Guo, Yongkun Li, Ziye Yue, Yinlong Xu, John C. S. Lui
Key points
From the paper's conclusion- Under memory constrained workloads, gKSM improves aggregate throughput by 2.15X and supports five instances concurrently.
Abstract
In serverless LLM inference, cloud providers commonly locate multiple instances on a single GPU to improve utilization. However, each instance independently maintains its model weights and runtime state, making duplicate GPU memory the primary bottleneck. Memory deduplication is a widely-used technique for eliminating duplicate data in CPU systems, but extending it to GPU memory faces fundamental challenges. Effective GPU memory deduplication must avoid redundant data movement between CPU and GPU while preserving write isolation for shared pages without native copy-on-write (COW) support. This paper presents gKSM, a transparent GPU memory deduplication framework for serverless LLM inference. gKSM addresses these challenges through CPU-GPU collaborative hash management that offloads hash computation to GPU kernels, zero-copy model weight deduplication that eliminates duplication before model weight transfer, and a cross-privilege page fault handler that combines a lightweight kernel hook and CUDA Virtual Memory Management (VMM) remapping in the user space. gKSM also designs a stable page scanning algorithm and a reuse-aware placement policy in cluster scale. Experiments show that gKSM reduces GPU memory usage by 59.8% while maintaining high throughput compared to ServerlessLLM. Under memory constrained workloads, gKSM improves aggregate throughput by 2.15X and supports five instances concurrently. In cluster level simulation, gKSM achieves a service rate of 99.97%, compared to 78.2% for SLInfer and 26.9% for ServerlessLLM.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ModelLess: A Serverless System for Multi-Tier LLM Inference on Shared GPUsarXiv · 2026
- LLMs in Cloud: A Discussion on Architecture, Orchestration, and InferencearXiv · 2026
- To Keep or Not to Keep: Learning KV Cache Retention in Disaggregated LLM Serving SystemsarXiv · 2026
- Layer-wise CPU-GPU Scheduling for LLM Inference on Memory-Limited Consumer GPUsarXiv · 2026
- KVGuard: A KV Cache Safety Checker for LLM Serving SystemsarXiv · 2026
- HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV CachingarXiv · 2026