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

Closed
opened 2026-11-26 11:16:47 +00:00 by tedin7 · 1 comment
tedin7 commented 2026-11-26 11:16:47 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:16:47Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6625483507 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2816). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T11:16:47Z. --- 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 commented 2026-11-26 12:04:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:16:54Z.


Taking this one; a Draft PR will follow.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7190523645 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2816#issuecomment-7190523645). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T11:16:54Z. --- Taking this one; a Draft PR will follow.
Sign in to join this conversation.
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
R0Y00/Xbox2Windows#2808
No description provided.