startup-runtime: DirectStorage status lines show done=0 while compressed requests complete #2816

Closed
opened 2026-11-27 01:24:48 +00:00 by github-bot · 1 comment
Owner

@⁠tedin7 on GitHub · 2026-11-26 11:16 UTC · original

Part of #1198

Problem. The DirectStorage stand-in status lines (Queue::EnqueueStatus ... (requests done=%ld inflated=%ld failed=%ld) and the heartbeat requests done=%ld inflated=%ld failed=%ld ... in src/startup_stubs/xcrdapi.cpp) print done= from requests_done, which is only incremented for uncompressed requests (xcrdapi.cpp, the else branch after the zlib || bcpack case). Compressed requests count in inflated= instead.

A title whose requests are all compressed therefore shows requests done=0 for the whole run while thousands complete. On a long run this reads like storage is stuck, which is the opposite of what happened.

Proposal.

  • Keep the existing inflated=%ld failed=%ld text exactly, because tools/startup/live_view.py parses it.
  • Rename the misleading field to say what it counts (for example raw= for uncompressed copies) and add an explicit completed= total (raw + inflated + bcpack-blank), so the line answers "is storage progressing?" at a glance.
  • Update live_view.py and the docs that quote the line, if any.

Tests. Extend an existing startup_storage_* stand-in check so a run with only zlib requests asserts completed= equals the number of finished requests while raw=0, plus a Linux check that live_view.py still parses old and new lines.

**@⁠tedin7** on GitHub · 2026-11-26 11:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2816) Part of #1198 **Problem.** The DirectStorage stand-in status lines (`Queue::EnqueueStatus ... (requests done=%ld inflated=%ld failed=%ld)` and the heartbeat `requests done=%ld inflated=%ld failed=%ld ...` in `src/startup_stubs/xcrdapi.cpp`) print `done=` from `requests_done`, which is only incremented for uncompressed requests (xcrdapi.cpp, the `else` branch after the `zlib || bcpack` case). Compressed requests count in `inflated=` instead. A title whose requests are all compressed therefore shows `requests done=0` for the whole run while thousands complete. On a long run this reads like storage is stuck, which is the opposite of what happened. **Proposal.** - Keep the existing `inflated=%ld failed=%ld` text exactly, because `tools/startup/live_view.py` parses it. - Rename the misleading field to say what it counts (for example `raw=` for uncompressed copies) and add an explicit `completed=` total (raw + inflated + bcpack-blank), so the line answers "is storage progressing?" at a glance. - Update `live_view.py` and the docs that quote the line, if any. **Tests.** Extend an existing `startup_storage_*` stand-in check so a run with only zlib requests asserts `completed=` equals the number of finished requests while `raw=0`, plus a Linux check that `live_view.py` still parses old and new lines.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:24:48 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 11:16 UTC · original

Taking this one; a Draft PR will follow.

**@⁠tedin7** on GitHub · 2026-11-26 11:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2816#issuecomment-7190523645) Taking this one; a Draft PR will follow.
This discussion has been locked. Commenting is limited to contributors.
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/R0Y00--Xbox2Windows#2816
No description provided.