perf(svar2): rebalance sharded VCF worker budget - #140
Draft
bschilder wants to merge 1 commit into
Draft
Conversation
d-laub
added a commit
that referenced
this pull request
Jul 29, 2026
Adds a reproducible sweep over the sub-contig sharded VCF reader budget (reader_workers x per-shard HTSlib threads x OVERSHARD_FACTOR) to evaluate PR #140, plus BENCH-ONLY env hooks in orchestrator.rs so one build covers the whole space (GENORAY_READER_WORKERS / GENORAY_SHARD_HTSLIB / GENORAY_OVERSHARD). Unset, they leave the planner untouched. Every configuration is gated by a whole-store byte-identity oracle; all 60+ swept configurations matched, confirming sharding does not perturb output at any worker count. Findings are written up in scripts/bench_sharded_vcf/README.md. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reader_workersallocation for indexed/sharded VCF conversionMotivation
A real single-contig AoU chr22 conversion on a 16-CPU VM consistently used only ~299% CPU. The existing planner produced 8 HTSlib threads plus 3
processing_threads, but the sharded VCF branch uses onlyprocessing_threadsas its shard-worker count and does not use the separately reserved 8-thread monolithic HTSlib pool.With this change, the same 16-core/one-contig budget becomes:
The allocation is per concurrent contig, so the multi-contig case remains bounded (for example, 65 cores / 10 active contigs yields 2 readers per contig and 60 planned sharded-path threads total).
Verification
cargo test --no-default-features --features conversion— 310 unit tests plus all Rust E2E suites passprek run --all-files --show-diff-on-failurepasses, including fmt, check, Clippy (-D warnings), and Pyreflycargo check --no-default-featurespassesThe active Verily run was not interrupted; runtime benchmarking of this branch can follow after CI.