Let DirectStorage fill spare staging space across queues #886
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!886
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Lkxex on GitHub · 2026-11-25 11:47 UTC · original
Lkxex:fix/dstorage-staging-head-of-line→main· +107 −18 · 1 files · 1 commits · openProblem
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.