DirectStorage: a head read too big for staging lets the next lane start (VICTORY_DSTORAGE_STAGING_NEXT=1) #2332

Merged
101Leafy merged 1 commit from upstream-pr/2332 into main 2026-11-30 14:12:03 +00:00
101Leafy commented 2026-11-29 12:05:58 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T12:05:58Z.


When the head read of the lane picked by weight does not fit in the staging buffer, every worker waits for a finish, even when other lanes have reads that would fit. With VICTORY_DSTORAGE_STAGING_NEXT=1 the scheduler starts the next lane by weight whose head fits, and marks the start as starved so the left-behind head is tried again at the next finish.

The same switch gives a request's staging back once its source is read instead of when the whole request is done, so decoding (zlib, BCPack) no longer holds staging.

Off by default, so nothing changes unless it is set.

Tests: a_head_too_big_for_staging_lets_the_next_lane_start covers both settings, and the zlib failure test now checks that execute reports the source as read before zlib fails.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550535046 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2332). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T12:05:58Z. --- When the head read of the lane picked by weight does not fit in the staging buffer, every worker waits for a finish, even when other lanes have reads that would fit. With `VICTORY_DSTORAGE_STAGING_NEXT=1` the scheduler starts the next lane by weight whose head fits, and marks the start as starved so the left-behind head is tried again at the next finish. The same switch gives a request's staging back once its source is read instead of when the whole request is done, so decoding (zlib, BCPack) no longer holds staging. Off by default, so nothing changes unless it is set. Tests: `a_head_too_big_for_staging_lets_the_next_lane_start` covers both settings, and the zlib failure test now checks that `execute` reports the source as read before zlib fails.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2332
No description provided.