Abstract
Inference servers for large language models (LLMs) execute requests in batches whose size is limited by the free key–value cache, and they often fill quiet periods with background jobs. Motivated by this practice, we study a single-server queue with a finite waiting room and batch Poisson arrivals whose rate depends on the server state. A service starts only when at least a customers wait and removes the smaller of the queue length and a random capacity Y ; its duration depends on the batch size and on the number of customers left behind. When fewer than a customers wait, the server takes at most M vacations whose lengths depend on their order and on the queue length at their start, and then stays dormant until the threshold is reached. We describe the system by a piecewise-deterministic Markov process, write its extended generator and derive the Kolmogorov differential–difference equations. An embedded Markov chain at service and vacation completions, combined with the supplementary variable technique, gives the joint distribution of the queue length and the server state at arbitrary, departure and arrival epochs. Marginal distributions, blocking probabilities and mean performance measures follow in closed form or as explicit finite sums. Classical finite and infinite queues are recovered as special cases. A cost function that charges latency, rejection, energy and switching, and credits background work, is minimised over the threshold, the number of vacations, the vacation length and the size of the waiting room.

This publication has 35 references indexed in Scilit: