Skip to content

docs(fast_io): design shared io_uring instance (#1408) - #3521

Merged
oferchen merged 1 commit into
masterfrom
docs/shared-iouring-session-1408
May 1, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/shared-iouring-session-1408

Conversation

@oferchen

@oferchen oferchen commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add docs/audits/shared-iouring-session-instance.md: a code-cited audit of every io_uring construction site in crates/fast_io/, identifying per-file rings on the receiver write path (writer_from_file at crates/transfer/src/transfer_ops/response.rs:108) and the generator read path (reader_from_path at crates/transfer/src/generator/mod.rs:728) that should share infrastructure with the existing session-scoped IoUringDiskBatch.
  • Compares four design options - global ring, per-thread ring, bounded session pool, and the reader+writer merge tracked under Align packaging with side-by-side installs and amd64 tarball naming #1874 - and recommends a bounded session pool of N rings with a lease/return contract modeled on IoUringDiskBatch (Document oc release branding and enforce README validation #1409 prior art) and the existing BufferPool / PooledBuffer pattern.
  • Documents the constraints any sharing scheme must respect: per-ring bgid namespace (Remove outdated golden CLI version test #2044), RegisteredBufferGroup Drop ordering, the IoUringPolicy::{Auto,Enabled,Disabled} fallback chain, and protocol neutrality (zero io_uring references in crates/protocol/src/).

Closes #1408

Verification

Docs-only change. No .rs, no Cargo.toml. No cargo invocations needed.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 1, 2026
@oferchen
oferchen merged commit 3207f70 into master May 1, 2026
12 checks passed
@oferchen
oferchen deleted the docs/shared-iouring-session-1408 branch May 1, 2026 21:07
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