Upload memory: switches for the spare scratch chunks and send buffers kept (unset as before) #373
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!373
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-373"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Esteban-V on GitHub · 2026-11-26 22:50 UTC · original
Esteban-V:perf/upload-spare-caps→a-publier· +82 −6 · 2 files · 1 commits · openIdle upload memory is kept with no way to lower it: up to 1 GiB of scratch chunks (
SPARE_KEPT,crates/victory-gpu/src/host.rs:2030, withkeep_freedunlesslimited_host_ram) and 768 MiB of send buffers (kept(),host/send.rs:122; 256 MiB withVICTORY_SEND_BAR). This adds two overrides, unset by default.VICTORY_SCRATCH_SPARE_MBreplaces the limit ingive_chunks.VICTORY_SEND_SPARE_MBreplaceskept()inhost/send.rs.0keeps nothing. The only effect is that the existing "over the limit, free at give-back" branch runs more often; give-back still happens at list reset, after the bury lag.spare_limit,kept_for), with tests that unset reproduces today's values.keep_freedretention is a deliberate mitigation), andtrim_spare_chunksis untouched.To A/B:
VICTORY_SCRATCH_SPARE_MB=128 VICTORY_SEND_SPARE_MB=256with the memory line.Already merged in DoubleGhosty/cool_fox (39318a8). Related: #335 adds a pressure-driven
send::trim()and touchessend.rstoo.Testing
windows-latest): Clippy, default tests and diagnostics tests pass (run).x86_64-pc-windows-msvcon a macOS host (cargo clippy --workspace --all-targets -- -D warnings, default features and--all-features).spare_limit_is_as_before_unless_askedandkept_is_as_before_unless_askedadded.@MamaLeVrai on GitHub · 2026-11-27 00:22 UTC · original
Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release, at
374af2f:cargo test --release -p victory-gpu --lib398 passed, 0 failed, 34 ignored.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.