docs(fast_io): audit SEND_ZC equivalent on Windows (WPG-8)#4777
Merged
Conversation
Audit-only design doc that ratifies TransmitFile as the primary Windows zero-copy socket-send primitive. Maps each rsync sender producer to its recommended Win32 API, defers RIOSend until a producer with a registered-slab source materialises, and rejects TransmitPackets as redundant. Restates the SEND_ZC dual-CQE contract from the Linux reference implementation, walks the cost model (per-send overhead, throughput estimate, CPU reduction estimate), and lists open subtasks WPG-8.a through WPG-8.f that own the implementation surface if any get filed.
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/wpg-8-send-zc-windows-equivalent.mdratifyingTransmitFileas the primary Windows zero-copy socket-send primitive, withRIOSenddeferred andTransmitPacketsrejected.TransmitFilefor every file-sourced byte.iocp::pump,lpTransmitBuffers.Headenvelope wiring,PlatformSendFiletrait, AV warmup probe, CLI flag surface, RIO deferred behind WPG-9).Inputs and lineage
docs/design/wpg-7-iouring-opcode-inventory.md(docs(fast_io): inventory io_uring opcodes (WPG-7.a) #4755): SEND_ZC is feature-gated and floored at 4 KiB.docs/design/wpg-7b-iouring-iocp-mapping.md(docs(fast_io): map io_uring opcodes to IOCP equivalents (WPG-7.b) #4760): SEND_ZC has a viable IOCP path with a different notification shape.docs/design/wpg-7c-iocp-gap-list.md(docs(fast_io): prioritised IOCP gap list (WPG-7.c) #4765): SEND_ZC is P3, deferred to WPG-8 for the feasibility decision.windows-transmitfile.md(Refine cross-platform packaging workflows #2130 API survey),windows-transmitfile-zerocopy.md(Refine cross-platform packaging workflows #2130 integration plan),iouring-send-zc.md(Linux design).crates/fast_io/src/iocp/transmit_file.rssynchronous shim plusIocpSocketWriter::try_transmit_file_pathfallback wiring.Test plan
windows-transmitfile*.md,iouring-send-zc.md).