Skip to content

docs(audits): profile stdlib sync channel overhead in transfer hot path (#1592) - #3885

Merged
oferchen merged 1 commit into
masterfrom
audits/sync-channel-overhead
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
audits/sync-channel-overhead

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit remaining std::sync::mpsc / sync_channel sites in the transfer/engine hot path and note already-migrated crossbeam paths in concurrent_delta/work_queue/.
  • Identify suspected overhead (park/unpark wakeups, allocator contention, cursor false sharing) and outline a criterion microbench plus perf c2c plan.
  • Decide per-site: migrate the two production hot SPSCs (checksums pipelined reader, delta consumer output) to crossbeam_channel::bounded; accept stdlib for test-only and IOCP one-shot sites.

Test plan

  • Land the audit (no code changes).
  • Implement the criterion microbench under crates/engine/benches/spsc_channel.rs in a follow-up PR and capture ns/msg + allocator deltas.
  • Run perf c2c inside rsync-profile to confirm HITM drop after migration.
  • Validate with scripts/benchmark_hyperfine.sh on a 100k small-file tree.

Refs #1592.

…th (#1592)

Document remaining std::sync::mpsc and sync_channel sites in the
transfer/engine hot path, suspected sources of overhead (parking
wakeups, allocator contention, cursor false sharing), a criterion
plus perf c2c profile plan, and a per-site migration decision.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 0624c2c into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the audits/sync-channel-overhead branch May 8, 2026 03:52
oferchen added a commit that referenced this pull request May 18, 2026
…th (#1592) (#3885)

Document remaining std::sync::mpsc and sync_channel sites in the
transfer/engine hot path, suspected sources of overhead (parking
wakeups, allocator contention, cursor false sharing), a criterion
plus perf c2c profile plan, and a per-site migration decision.
oferchen added a commit that referenced this pull request Aug 24, 2026
…th (#1592) (#3885)

Document remaining std::sync::mpsc and sync_channel sites in the
transfer/engine hot path, suspected sources of overhead (parking
wakeups, allocator contention, cursor false sharing), a criterion
plus perf c2c profile plan, and a per-site migration decision.
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