Skip to content

docs(design): io_uring socket daemon TCP wiring readiness audit (#1876) - #4285

Merged
oferchen merged 1 commit into
masterfrom
docs/iouring-socket-daemon-tcp-readiness-1876
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/iouring-socket-daemon-tcp-readiness-1876

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Adds docs/design/iouring-socket-daemon-tcp-readiness.md covering the readiness state of #1876 (io_uring socket I/O on the daemon TCP path) now that the upstream prerequisites have landed.

Code surface missing for #1876 to be actionable:

  • IoUringSocketReader::with_pooled_ring / writer mirror (no constructor accepts a leased RingLease today).
  • Daemon plumbing for SessionRingPool (no --io-uring-listener flag, no pool constructed at daemon start).
  • Sync worker swap in serve_connections.
  • tokio::io::AsyncRead/AsyncWrite adapter for the async session path.
  • IORING_OP_LINK_TIMEOUT integration to replace the socket timeout setsockopts.
  • IORING_OP_ASYNC_CANCEL discipline for buffer-lifetime safety on the async path.

Recommendation: split #1876 into five subtasks (a-e) so the sync path lands and benchmarks first, with the async adapter last. Trigger conditions and a five-step implementation plan are spelled out.

Test plan

  • Docs-only change; cargo fmt --all -- --check clean.
  • No code modified, no runtime behaviour change.

Audits whether prerequisites for #1876 have landed and proposes
splitting the work into reviewable subtasks (#1876-a through e).

- #1874 (shared ring + POLL_ADD) shipped via PR #3553.
- #1937 (session ring pool) shipped via PR #4275.
- #1935 (hybrid tokio listener) shipped via PR #4278.
- No io_uring task carries id #1875; the original dependency note
  most plausibly meant the session-pool and listener work above.

Missing surface enumerated: pooled-ring constructors on the socket
adapters, daemon plumbing for SessionRingPool, sync and async worker
swaps, IORING_OP_LINK_TIMEOUT integration, and async-cancel
discipline. Trigger conditions (kernel >= 5.6, io_uring feature,
opt-in flag) and a five-step implementation plan included.
@oferchen
oferchen merged commit 5035627 into master May 17, 2026
8 checks passed
@oferchen
oferchen deleted the docs/iouring-socket-daemon-tcp-readiness-1876 branch May 17, 2026 20:55
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
oferchen added a commit that referenced this pull request May 18, 2026
… (#4285)

Audits whether prerequisites for #1876 have landed and proposes
splitting the work into reviewable subtasks (#1876-a through e).

- #1874 (shared ring + POLL_ADD) shipped via PR #3553.
- #1937 (session ring pool) shipped via PR #4275.
- #1935 (hybrid tokio listener) shipped via PR #4278.
- No io_uring task carries id #1875; the original dependency note
  most plausibly meant the session-pool and listener work above.

Missing surface enumerated: pooled-ring constructors on the socket
adapters, daemon plumbing for SessionRingPool, sync and async worker
swaps, IORING_OP_LINK_TIMEOUT integration, and async-cancel
discipline. Trigger conditions (kernel >= 5.6, io_uring feature,
opt-in flag) and a five-step implementation plan included.
oferchen added a commit that referenced this pull request May 18, 2026
… (#4285)

Audits whether prerequisites for #1876 have landed and proposes
splitting the work into reviewable subtasks (#1876-a through e).

- #1874 (shared ring + POLL_ADD) shipped via PR #3553.
- #1937 (session ring pool) shipped via PR #4275.
- #1935 (hybrid tokio listener) shipped via PR #4278.
- No io_uring task carries id #1875; the original dependency note
  most plausibly meant the session-pool and listener work above.

Missing surface enumerated: pooled-ring constructors on the socket
adapters, daemon plumbing for SessionRingPool, sync and async worker
swaps, IORING_OP_LINK_TIMEOUT integration, and async-cancel
discipline. Trigger conditions (kernel >= 5.6, io_uring feature,
opt-in flag) and a five-step implementation plan included.
oferchen added a commit that referenced this pull request Aug 24, 2026
… (#4285)

Audits whether prerequisites for #1876 have landed and proposes
splitting the work into reviewable subtasks (#1876-a through e).

- #1874 (shared ring + POLL_ADD) shipped via PR #3553.
- #1937 (session ring pool) shipped via PR #4275.
- #1935 (hybrid tokio listener) shipped via PR #4278.
- No io_uring task carries id #1875; the original dependency note
  most plausibly meant the session-pool and listener work above.

Missing surface enumerated: pooled-ring constructors on the socket
adapters, daemon plumbing for SessionRingPool, sync and async worker
swaps, IORING_OP_LINK_TIMEOUT integration, and async-cancel
discipline. Trigger conditions (kernel >= 5.6, io_uring feature,
opt-in flag) and a five-step implementation plan included.
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