perf(host): parallelize many small copy runs #2509

Manually merged
github merged 1 commit from github-bot/gh-2509 into gh-pr/2509/base 2026-11-29 22:59:48 +00:00 AGit
Owner

@⁠wrq2007 on GitHub · 2026-11-29 13:45 UTC · original
wrq2007:perf/parallel-small-host-copies → main · +42 −3 · 1 files · 1 commits · merged 2026-11-29 22:54 UTC

Summary

  • Allow submission-owned long copy runs to use workers when there are at least 64 runs and enough bytes to create multiple tasks.
  • Keep the existing scatter-work and large-copy thresholds unchanged.
  • Avoid waking workers for a byte total that would still produce only one task.
  • Add boundary tests for run count, byte count, scatter work, and the beside path.

Test plan

  • cargo test --locked -p victory-gpu --lib -- --test-threads=1 (the known global-state card-steps test was also rerun individually)
  • cargo clippy --locked -p victory-gpu --all-targets
  • cargo xtask policy --staged

No game assets, screenshots, logs, executables, or local paths are included.

**@⁠wrq2007** on GitHub · 2026-11-29 13:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2509) `wrq2007:perf/parallel-small-host-copies` → `main` · +42 −3 · 1 files · 1 commits · merged 2026-11-29 22:54 UTC ## Summary - Allow submission-owned long copy runs to use workers when there are at least 64 runs and enough bytes to create multiple tasks. - Keep the existing scatter-work and large-copy thresholds unchanged. - Avoid waking workers for a byte total that would still produce only one task. - Add boundary tests for run count, byte count, scatter work, and the beside path. ## Test plan - [x] `cargo test --locked -p victory-gpu --lib -- --test-threads=1` (the known global-state card-steps test was also rerun individually) - [x] `cargo clippy --locked -p victory-gpu --all-targets` - [x] `cargo xtask policy --staged` No game assets, screenshots, logs, executables, or local paths are included.
Wake copy workers for at least 64 runs only when the byte total can produce multiple tasks, avoiding a parallel path that still executes on one task.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 13:50:06 +00:00
github-bot changed target branch from main to gh-pr/2509/base 2026-11-29 22:58:22 +00:00
github manually merged commit abf4fe079b into gh-pr/2509/base 2026-11-29 22:58:23 +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!2509
No description provided.