Repository navigation
docs(design): io_uring per-thread rings + work stealing (#2243) - #4225
Merged
Merged
Conversation
Records the per-thread rings + work-stealing design space and recommends deferring implementation until the per-file vs shared ring bench harness exposes a shared+Mutex baseline row. Captures why cross-ring SQE stealing is not feasible without demoting to the unregistered fast path or reintroducing the mutex the design is meant to avoid.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Records the per-thread rings + work-stealing design space and recommends deferring implementation until the per-file vs shared ring bench harness exposes a shared+Mutex baseline row. Captures why cross-ring SQE stealing is not feasible without demoting to the unregistered fast path or reintroducing the mutex the design is meant to avoid.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Records the per-thread rings + work-stealing design space and recommends deferring implementation until the per-file vs shared ring bench harness exposes a shared+Mutex baseline row. Captures why cross-ring SQE stealing is not feasible without demoting to the unregistered fast path or reintroducing the mutex the design is meant to avoid.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Records the per-thread rings + work-stealing design space and recommends deferring implementation until the per-file vs shared ring bench harness exposes a shared+Mutex baseline row. Captures why cross-ring SQE stealing is not feasible without demoting to the unregistered fast path or reintroducing the mutex the design is meant to avoid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/design/iouring-per-thread-rings.mdfor task Guard env mutations in fallback tests #2243.shared+Mutex<RawIoUring>baseline row that proves the mutex (not ring construction) is the actual bottleneck.Key findings
Arc<Mutex<...>>over a single shared ring that Guard env mutations in fallback tests #2243 is asking to replace does not exist in tree today; it is a proposed design atdocs/design/iouring-session-ring-pool.md:37-59. The actual shipping serialization is per-file ring construction, not lock contention.docs/audits/per-file-vs-shared-uring-ring.md:230-237is >= 25% throughput uplift on the tiny-file shape; per-thread rings can only meet this if shared-ring mutex contention >= 20%, which is currently unmeasured.Test plan
cargo fmt --all(no Rust changes; docs only).crates/fast_io/src/io_uring/.