Repository navigation
docs(engine): audit parallel rolling-hash fan-out on the delta sender (#2048) - #3520
Merged
Merged
Conversation
…#2048) Investigation only - documents the current sender model, wire-ordering constraints from upstream rsync 3.4.1, existing reorder/workqueue infrastructure, a sketched fan-out design, a benchmark plan for the rsync-profile container, and risks. Recommends prototyping behind a feature flag with a benchmark gate before any wire-emitting code is touched. Distinct from #1023 (intra-file) and #1079 (receiver-side).
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…#2048) (#3520) Investigation only - documents the current sender model, wire-ordering constraints from upstream rsync 3.4.1, existing reorder/workqueue infrastructure, a sketched fan-out design, a benchmark plan for the rsync-profile container, and risks. Recommends prototyping behind a feature flag with a benchmark gate before any wire-emitting code is touched. Distinct from #1023 (intra-file) and #1079 (receiver-side).
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
Audit-only PR for tracker #2048: investigates parallel rolling-hash
fan-out across files on the delta sender. Reads the current sender model
in
crates/transfer/src/generator/transfer.rs,crates/transfer/src/generator/delta.rs,crates/match/src/generator.rs,crates/checksums/src/rolling/, andcrates/checksums/src/strong/,cross-references upstream
sender.c:send_files(),match.c:match_sums(),and
receiver.c:recv_files()intarget/interop/upstream-src/rsync-3.4.1/,and lays out a sketch design plus benchmark plan that reuses the existing
BoundedReorderBuffer,WorkQueue, anddrain_parallelinfrastructure.Headline conclusion: per-file wire ordering is not strict at the
protocol level - records are self-identified by NDX, the receiver pulls
NDXs and the sender answers. Fan-out is feasible, the building blocks
exist, but the head-of-line risk for heavy-tailed file sizes plus the
per-session compression-context constraint mean the right next step is a
prototype behind
OC_RSYNC_SENDER_PARALLEL=1plus a benchmark gate onboth 100K small-file and 1K medium-file workloads in the
rsync-profilepodman container, not a master change.
Distinct from sibling tasks
across workers). Orthogonal to this audit.
audit is the sender mirror.
completed). This audit reuses the same pattern.
pipeline. Symmetric concern called out in section 4.3.
Test plan
macOS, Linux musl, and interop checks should pass trivially.
—/–); hyphens only per internal docs style rule.path:linecitations verified against the worktree atcommit
ab3867f9and againsttarget/interop/upstream-src/rsync-3.4.1/.