Skip to content

docs(audits): SPSC disk-commit channel utilization (#1081) - #3848

Merged
oferchen merged 1 commit into
masterfrom
docs/spsc-disk-commit-1081
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/spsc-disk-commit-1081

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit the SPSC channel that connects the network reader and disk writer threads (crates/transfer/src/pipeline/spsc.rs, crates/transfer/src/disk_commit/{mod,config,thread,process,writer}.rs).
  • Model producer vs consumer rates, capacity defaults (128 / capacity*2), and the spin-wait backpressure semantics with citations.
  • Propose 5 measurements + improvements: queue-depth telemetry, dynamic capacity sizing, batched write coalescing, fsync deferral / group-commit, and a guarded fallback away from pure spin.

Tracks #1081.

Test plan

  • No code change; doc-only.
  • Verified file path layout for crates/transfer/src/pipeline/spsc.rs and disk_commit submodules referenced in the audit.
  • Confirmed line count under the 350-line cap and no forbidden references.

Document the network -> disk SPSC pipeline (capacity, backpressure,
producer/consumer rates) and propose telemetry, dynamic capacity,
write-coalescing, fsync-deferral, and spin-wait-fallback measurements.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit d718dc8 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/spsc-disk-commit-1081 branch May 8, 2026 03:50
oferchen added a commit that referenced this pull request May 18, 2026
Document the network -> disk SPSC pipeline (capacity, backpressure,
producer/consumer rates) and propose telemetry, dynamic capacity,
write-coalescing, fsync-deferral, and spin-wait-fallback measurements.
oferchen added a commit that referenced this pull request Aug 24, 2026
Document the network -> disk SPSC pipeline (capacity, backpressure,
producer/consumer rates) and propose telemetry, dynamic capacity,
write-coalescing, fsync-deferral, and spin-wait-fallback measurements.
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