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

Merged
wrq2007 merged 1 commit from upstream-pr/2509 into main 2026-11-29 22:54:42 +00:00
wrq2007 commented 2026-11-29 13:45:34 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T13:45:34Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551315574 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2509). Originally posted by [wrq2007](https://github.com/wrq2007) on 2026-11-29T13:45:34Z. --- ## 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.
Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!2509
No description provided.