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

Manually merged
github merged 1 commit from github-bot/gh-2332 into main 2026-11-30 14:16:58 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 12:05 UTC · original
101Leafy:nv/dstorage-staging-next → main · +100 −6 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

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.

**@⁠101Leafy** on GitHub · 2026-11-29 12:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2332) `101Leafy:nv/dstorage-staging-next` → `main` · +100 −6 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:10:50 +00:00
github manually merged commit 3dcbb398d2 into main 2026-11-30 14:16:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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