docs(design): IORING_OP_SEND_ZC for network zero-copy (#1832)#3847
Merged
Conversation
Specifies graduating the io_uring socket writer from IORING_OP_SEND to IORING_OP_SEND_ZC on kernel >= 6.0: two-CQE completion model, pin-counted buffer pool for the user-page lifetime contract, kernel probe via IORING_REGISTER_PROBE with fallback, daemon TCP integration (#1876), and the throughput vs latency trade-off with the 16 KiB threshold rule.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Specifies graduating the io_uring socket writer from IORING_OP_SEND to IORING_OP_SEND_ZC on kernel >= 6.0: two-CQE completion model, pin-counted buffer pool for the user-page lifetime contract, kernel probe via IORING_REGISTER_PROBE with fallback, daemon TCP integration (#1876), and the throughput vs latency trade-off with the 16 KiB threshold rule.
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-send-zc.md(264 lines) covering how the io_uring socket writer atcrates/fast_io/src/io_uring/socket_writer.rswill graduate fromIORING_OP_SENDtoIORING_OP_SEND_ZCon kernel >= 6.0.IORING_REGISTER_PROBEwithIORING_OP_SENDfallback, daemon TCP integration via Ensure daemon fallback obeys disable overrides #1876, and the throughput vs latency threshold rule (16 KiB default).Test plan
crates/fast_io/src/io_uring/socket_writer.rs,batching.rs, andconfig.rsresolve to the described code.