Let DirectStorage fill spare staging space across queues #885
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/886"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by Lkxex on 2026-11-25T11:47:33Z.
Problem
DirectStorage admission currently picks a queue head before checking staging capacity. If the selected read needs more staging than is free, the workers wait even while another queue has a read that fits. This can serialize independent streaming requests behind a large read.
Change
Allow one already-accounted, fitting read from another queue to use the available staging budget. Reserve the next eligible admission for the blocked read to prevent a stream of small requests from continually taking its capacity. Queue-local FIFO, completion status ordering, and the existing oversized-request rule stay in place. The fallback uses the same staging accounting as ordinary dispatch.
The synthetic regression starts with 60 of 100 staging units in use. An 80-unit request is next, and a separate queue has a 20-unit request. Before the change the idle worker cannot take it. After the change it can run that request while the 80-unit read waits. A second 20-unit request cannot bypass the same blocked read.
Validation
cargo test --locked -p victory-hleandgit diff --check.AI-assisted change.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.