Queuing for Inference: Dynamic Memory Footprints and Costly Preemption
Abstract
Modeling inference workloads for transformer-based neural networks poses unique challenges due to their dynamic memory footprints, head-of-line blocking caused by heavy-tailed request distributions, and memory-dependent preemption overhead arising from the need to load/unload cache state. In this paper, we introduce a new queuing model that captures the impacts of these features on system stability and scheduling design. We show that the Gittins-index policy, which minimizes mean response time in the standard M/G/1 setting, can incur substantial preemption overhead in our model. Motivated by this limitation, we propose the Multi-Level-Priority-Threshold (MLPT) policy, that limits preemption while preserving priority for short jobs. We characterize the mean response time under MLPT and provide empirical rules-of-thumb to solve the resulting threshold-optimization problem. Our key observation is that optimal scheduling is a balance between reducing the response times of shorter jobs and limiting the overhead incurred when preemption occurs. These results provide a theoretical framework for understanding scheduling in memory constrained queuing systems for inference tasks.
Create a lesson
Related papers
Characterization of Request and Token Energy Costs for LLM Inference Workloads on GPU Platforms
Shared title terminology · Prabhu Vellaisamy, Vanessa Lam, Shawn Blanton et al.
A Photonic-CXL Memory Appliance for Scalable KV Cache Management in LLM Inference
Shared title terminology · Jing Ding, Yash Nishant, Chandrish Ambati et al.
Edge-Inference Governors Need Memory-Clock State
Shared title terminology · Jaehoon Kang
One Million Tokens in 20GB: Calibration-Free 2-Bit SRFT KV-Cache Compression for Looped MoE Inference on Apple Silicon
Shared title terminology · Mohamed Amine Bergach
Memory-Access Profiling for Early Multicore Interference Awareness in Embedded Systems
Shared title terminology · Jean-Baptiste Lefoul, Ahmad Shahnejat Bushehri, Alaric Chan Lock et al.
Understanding the Energy Cost of Quantized Agents on Shared GPUs
Shared title terminology · Stephen Abkin, Alex Flesher, Aldric Yang et al.