Account for requested bytes in speculative staging admission #309

Closed
github-bot wants to merge 581 commits from github-bot/gh-309 into main AGit
Owner

@⁠CandyyPL on GitHub · 2026-11-27 15:32 UTC · original
CandyyPL:fix/byte-aware-staging-16gb → main · +50604 −4324 · 196 files · 581 commits · closed without merging

Changes

  • Subtract requested allocation bytes from commit headroom before admitting optional staging growth, retaining existing reserves and cooldowns.
  • Charge new 64 MiB pool blocks, permit reuse and smaller standalone fallback, and keep required table/bake uploads separate from speculative work.
  • Separate early upload-ahead eligibility from actual growth; add boundary/reuse/classification tests.
  • Display read-only launch memory and effective overrides; add launch-free parsing/CIM-failure/precedence tests and document the 16 GB host evidence.

Verification

  • Incorporated upstream through 16edfec without discarding existing user work.
  • With VICTORY_THIN=0: complete serial and parallel GPU runs passed (491 passed, 43 ignored each). Unmodified upstream baseline passed (487 passed, 43 ignored).
  • An earlier combined parallel run failed two tests; both passed individually and in subsequent complete runs. That transient failure remains unexplained, not established as pre-existing. The earlier host-copy failure was separately explained by inherited thin mode, which has no host command list.
  • cargo build --locked --profile diag -p victory --features diagnostics passed at source revision b25e759; SHA-256 9BE540C215B1C85C6040658CF9FBC718F0D4864D01FA757134AAC0E20875FACF.
  • scripts/test-play.ps1 passed; corrected-path and one-variable launcher dry runs passed without starting the title.
  • git diff --check passed. Whole-file edition-2024 formatting also changes upstream baseline files; no unrelated formatting sweep was applied.

Remaining limits — not a startup crash fix

  • The original null read at +0xb5a5f8 remains unexplained. Historical low commit headroom does not establish a failed required allocation or causation; no speculative null workaround was added.
  • No real title launches, recorded visual runs, world loads, or image-quality/performance claims. Debugger/exception-context decoding, tested Agility deployment, full-session recording and an external low-memory stop are still required.
  • No page-file, watchdog, console identity or image-quality changes. The laptop preset was only dry-run checked; optional staging admission is sampled policy, not a hard system commit cap.
  • Original binary/symbols/dump/logs and test evidence are retained locally under ignored target/startup-memory-evidence-20261127, not uploaded.
  • My authenticated account has no upstream write/merge permission. Maintainer merge and a subsequent fetch/fast-forward of local main are outstanding.
**@⁠CandyyPL** on GitHub · 2026-11-27 15:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309) `CandyyPL:fix/byte-aware-staging-16gb` → `main` · +50604 −4324 · 196 files · 581 commits · closed without merging ### Changes - Subtract requested allocation bytes from commit headroom before admitting optional staging growth, retaining existing reserves and cooldowns. - Charge new 64 MiB pool blocks, permit reuse and smaller standalone fallback, and keep required table/bake uploads separate from speculative work. - Separate early upload-ahead eligibility from actual growth; add boundary/reuse/classification tests. - Display read-only launch memory and effective overrides; add launch-free parsing/CIM-failure/precedence tests and document the 16 GB host evidence. ### Verification - Incorporated upstream through `16edfec` without discarding existing user work. - With `VICTORY_THIN=0`: complete serial and parallel GPU runs passed (491 passed, 43 ignored each). Unmodified upstream baseline passed (487 passed, 43 ignored). - An earlier combined parallel run failed two tests; both passed individually and in subsequent complete runs. That transient failure remains unexplained, not established as pre-existing. The earlier host-copy failure was separately explained by inherited thin mode, which has no host command list. - `cargo build --locked --profile diag -p victory --features diagnostics` passed at source revision `b25e759`; SHA-256 `9BE540C215B1C85C6040658CF9FBC718F0D4864D01FA757134AAC0E20875FACF`. - `scripts/test-play.ps1` passed; corrected-path and one-variable launcher dry runs passed without starting the title. - `git diff --check` passed. Whole-file edition-2024 formatting also changes upstream baseline files; no unrelated formatting sweep was applied. ### Remaining limits — not a startup crash fix - The original null read at `+0xb5a5f8` remains unexplained. Historical low commit headroom does not establish a failed required allocation or causation; no speculative null workaround was added. - No real title launches, recorded visual runs, world loads, or image-quality/performance claims. Debugger/exception-context decoding, tested Agility deployment, full-session recording and an external low-memory stop are still required. - No page-file, watchdog, console identity or image-quality changes. The laptop preset was only dry-run checked; optional staging admission is sampled policy, not a hard system commit cap. - Original binary/symbols/dump/logs and test evidence are retained locally under ignored `target/startup-memory-evidence-20261127`, not uploaded. - My authenticated account has no upstream write/merge permission. Maintainer merge and a subsequent fetch/fast-forward of local main are outstanding.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:43:32 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 15:54 UTC · original

@⁠CandyyPL Charging the requested bytes and the full new pool block covers the boundary that matters. The required-upload and reuse tests give us a baseline for the policy. A 16 GB run on the same save can show how often staging is refused and how that changes frame time. Keep the original crash evidence local.

**@⁠TaynanGT** on GitHub · 2026-11-27 15:54 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7222618644) @⁠CandyyPL Charging the requested bytes and the full new pool block covers the boundary that matters. The required-upload and reuse tests give us a baseline for the policy. A 16 GB run on the same save can show how often staging is refused and how that changes frame time. Keep the original crash evidence local.
Author
Owner

@⁠CandyyPL on GitHub · 2026-11-27 16:36 UTC · original

Sorry bro, llm hallucination kicked in💀

**@⁠CandyyPL** on GitHub · 2026-11-27 16:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7223457490) Sorry bro, llm hallucination kicked in💀
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:58 UTC · original

@⁠CandyyPL All good. The requested-byte charge for optional staging and the reuse cases are the parts I’m using for the review.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:58 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7223889612) @⁠CandyyPL All good. The requested-byte charge for optional staging and the reuse cases are the parts I’m using for the review.
Author
Owner

@⁠akimfomin on GitHub · 2026-11-28 01:56 UTC · original

For c6466267, I compared the relevant behavior with xcl #3037. Separate speculative upload commitment, already requested bytes and useful headroom. Reject only the newly proposed speculative work when the budget becomes insufficient. This is a pinned source comparison; the suggested case still needs a receiving-side run.

**@⁠akimfomin** on GitHub · 2026-11-28 01:56 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7232018176) For `c6466267`, I compared the relevant behavior with [xcl #3037](https://github.com/xcl-dev/xcl/pull/3037). Separate speculative upload commitment, already requested bytes and useful headroom. Reject only the newly proposed speculative work when the budget becomes insufficient. This is a pinned source comparison; the suggested case still needs a receiving-side run.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:24 UTC · original

Thanks for the pinned comparison. Existing requested work should not be rejected just because a speculative upload would exceed the budget. A receiving-side test with nonzero requested bytes and insufficient speculative headroom would be useful.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:24 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7255085547) Thanks for the pinned comparison. Existing requested work should not be rejected just because a speculative upload would exceed the budget. A receiving-side test with nonzero requested bytes and insufficient speculative headroom would be useful.
github-bot closed this pull request 2026-11-30 17:14:53 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:12 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:12 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/309#issuecomment-7285879425) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.