docs(audits): profile parallel signature computation scaling (#1085)#3943
Merged
Conversation
Replace the prior scaling audit with a concise plan focused on empirically locating the parallel signature path's thread-count ceiling. Document the parallel.rs entry points, frame the compute-bound versus memory-bandwidth-bound question, specify a criterion bench across 1/2/4/8/16 threads with 4K/8K/16K block sizes, predict saturation around 8 threads on commodity DDR4, and recommend capping rayon workers and renaming the threshold env override to PARALLEL_SIGNATURE_THRESHOLD.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…3943) Replace the prior scaling audit with a concise plan focused on empirically locating the parallel signature path's thread-count ceiling. Document the parallel.rs entry points, frame the compute-bound versus memory-bandwidth-bound question, specify a criterion bench across 1/2/4/8/16 threads with 4K/8K/16K block sizes, predict saturation around 8 threads on commodity DDR4, and recommend capping rayon workers and renaming the threshold env override to PARALLEL_SIGNATURE_THRESHOLD.
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
crates/signature/src/(parallel.rs, layout.rs, block_size.rs) and cross-reference the SIMD batching landed under Rename local copy partial directory setter #1024.MAX_SIGNATURE_THREADSplus renaming the env override toPARALLEL_SIGNATURE_THRESHOLD.Test plan
crates/signature/benches/parallel_scaling.rsand run it inside thersync-profilepodman container withtaskset -c 0-15.perf stat -e cycles,instructions,cache-misses,LLC-loads,LLC-load-missesper thread count for Md5 and Xxh3.MAX_SIGNATURE_THREADS/PARALLEL_SIGNATURE_THRESHOLDaccordingly.