TECHNOLOGY

Kueue prevents a negative partial reservation from blocking another preemption

In this article
THE QUICK TAKE

Partial preemption reservations must stay nonnegative even above quota and borrowing limits, so one failed candidate search does not corrupt another decision.

The November Kueue patch fixes an internal capacity reservation becoming negative when a preempting workload finds no candidates. The problematic queue is already above nominal quota plus its borrowing limit. That invalid reservation could stop another workload from preempting the queue’s workloads in the same cycle. The repair concerns intermediate scheduler accounting, so a final queue-usage snapshot alone is insufficient to establish the result.

Over-limit usage is the required starting state

PR 18618 names a ClusterQueue above nominal quota plus borrowing limit. Testing only usage within the borrowing allowance misses the arithmetic boundary. A qualification fixture should record nominal quota, borrowing limit and actual usage explicitly before triggering preemption. The patch does not explain why every deployment might enter that state, so a report should not invent a universal cause. Its contract is that scheduler accounting remains valid when the stated condition exists.

No candidates must not create negative capacity

The release identifies the reservation made when the first preempting workload finds no candidates. A failed search still changes bookkeeping, and that change must not create an impossible negative reservation. A proposed unit-level assertion inspects this intermediate amount directly. An end-to-end test that merely observes no eviction by the first workload would be incomplete, because no eviction is expected in the no-candidate case and says nothing about the reservation left behind.

The second workload demonstrates the consequence

The documented side effect is another workload being prevented from preempting the same ClusterQueue during that cycle. A meaningful fixture therefore needs a second workload whose candidate search is otherwise eligible. Compare its result with and without the first no-candidate attempt while preserving the rest of the queue state. This isolates corrupted partial reservation from ordinary preemption-policy rejection, priority rules or genuinely insufficient reclaimable resources.

A fix is not a broader eviction entitlement

Nonnegative accounting restores the intended decision inputs. It does not grant every waiting workload permission to preempt or guarantee a particular victim set. Operational summaries should report the accounting invariant and the qualified second decision, retaining applicable priority and borrowing policies. The release offers a correctness repair, not measured fairness or utilization gains. Those broader outcomes require a workload study with the relevant queue mix and cannot be derived from the existence of this arithmetic fix.

Sources

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