Skip to content

docs(engine): audit parallel rolling-hash fan-out on the delta sender (#2048) - #3520

Merged
oferchen merged 2 commits into
masterfrom
docs/delta-sender-parallel-rolling-hash-2048
May 1, 2026
Merged

oferchen merged 2 commits into
masterfrom
docs/delta-sender-parallel-rolling-hash-2048

Conversation

@oferchen

@oferchen oferchen commented May 1, 2026 •

Copy link
Copy Markdown
Owner

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/, and crates/checksums/src/strong/,
cross-references upstream sender.c:send_files(), match.c:match_sums(),
and receiver.c:recv_files() in target/interop/upstream-src/rsync-3.4.1/,
and lays out a sketch design plus benchmark plan that reuses the existing
BoundedReorderBuffer, WorkQueue, and drain_parallel infrastructure.

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=1 plus a benchmark gate on
both 100K small-file and 1K medium-file workloads in the rsync-profile
podman container, not a master change.

Distinct from sibling tasks

Test plan

  • Doc-only change. No code touched. fmt+clippy, nextest, Windows,
    macOS, Linux musl, and interop checks should pass trivially.
  • No em-dashes (—/–); hyphens only per internal docs style rule.
  • All path:line citations verified against the worktree at
    commit ab3867f9 and against target/interop/upstream-src/rsync-3.4.1/.

…#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).
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 1, 2026
@oferchen
oferchen merged commit 96ccf97 into master May 1, 2026
11 checks passed
@oferchen
oferchen deleted the docs/delta-sender-parallel-rolling-hash-2048 branch May 1, 2026 21:07
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant