TECHNOLOGY

Queue age and starvation: retain waiting membership, not only queue count

In this article
THE QUICK TAKE

A stable queue count can conceal old requests that never advance; age needs a defined admission and exit boundary.

The diagnostic situation

A serving queue holds roughly the same number of requests throughout an incident. New short requests complete while an older long request remains waiting. Count-only monitoring suggests stable pressure, but the waiting population is turning over unevenly. Diagnosing starvation requires evidence about the age and progression of retained work, not just the size of the latest queue snapshot.

Why the observation changes meaning

Queue count describes membership at an observation point; waiting age relates each member to its admission boundary. A histogram recorded only when requests leave the queue can omit the oldest still-waiting item. Completed queue-time metrics therefore complement rather than replace live age observations. Their populations and reporting cutoffs must be stated before comparing them.

Define the instrumentation contract

Define when waiting begins, including transfers between gateway and engine queues. Specify whether requeueing preserves original age or starts a new stage age, and retain both if needed. Use bounded workload cohorts for aggregates and safe individual identifiers only in controlled diagnostics. Do not reset logical age automatically because a scheduler placed the same work into another internal list.

A bounded verification procedure

Construct a bounded fixture that keeps an older synthetic request waiting while newer eligible requests progress. Record admissions, requeues, starts, cancellations and the live membership snapshot. Compare queue count, oldest observed age and completed-wait distribution over the same window. End the fixture with a defined timeout so the diagnostic does not create indefinite work or a production starvation experiment.

Evidence required for acceptance

Acceptance evidence includes the event inventory and a manually reconstructed age table for each snapshot. Show requests that are still waiting at cutoff separately from completed samples. Verify that cancellation removes membership without inventing a successful execution. A falling completed-wait percentile alongside rising live age should remain visible as a possible selection effect rather than a contradictory metric to discard.

Failure cases and limits

Old age alone does not prove unfair scheduling: eligibility, dependencies, reserved classes or a paused consumer can explain it. Preserve reason categories and effective scheduler policy before assigning cause. This protocol tests whether starvation can become observable in the chosen path. It does not guarantee fairness, predict completion time from a count or establish a universal oldest-age metric in every serving engine.

A stable queue count can conceal old requests that never advance; age needs a defined admission and exit boundary. vLLM metrics design; OpenTelemetry metrics data model.

The proposed investigation of queue age starvation membership is not an executed deployment benchmark. Related reading: Bound vLLM request queues and prefill token backlogs; Provider admission control: bound the queue before latency grows.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles