Repository navigation
docs(design): macOS kqueue-based fast I/O path - #3813
Merged
Merged
Conversation
Tight-scope design note for #1385: surveys current macOS I/O paths in fast_io, scopes the kqueue surface to vnode/socket/timer events, identifies disk-commit and daemon socket I/O as the candidate sites, contrasts kqueue's notification-only role with io_uring's submission plus completion model, and recommends kqueue (not dispatch_io) as the macOS implementation of the AsyncFileWriter trait from #1655.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Tight-scope design note for #1385: surveys current macOS I/O paths in fast_io, scopes the kqueue surface to vnode/socket/timer events, identifies disk-commit and daemon socket I/O as the candidate sites, contrasts kqueue's notification-only role with io_uring's submission plus completion model, and recommends kqueue (not dispatch_io) as the macOS implementation of the AsyncFileWriter trait from #1655.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Tight-scope design note for #1385: surveys current macOS I/O paths in fast_io, scopes the kqueue surface to vnode/socket/timer events, identifies disk-commit and daemon socket I/O as the candidate sites, contrasts kqueue's notification-only role with io_uring's submission plus completion model, and recommends kqueue (not dispatch_io) as the macOS implementation of the AsyncFileWriter trait from #1655.
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
crates/fast_io/src/(clonefile, fcopyfile, sendfile fallback, missing async disk path).EVFILT_READ/WRITE/VNODE/TIMER/USER) and records that it is a notification-only primitive, not an I/O submission interface.write(2); daemon listener as a secondary multiplex candidate; rejects directory walk and SSH stdio.dispatch_io) as the macOS implementation of theAsyncFileWritertrait from Refactor module list client into modular structure #1655, and treatsF_NOCACHEpluswritev(Fix IPv6 zone identifier parsing in module list requests #1657) as a complement rather than an alternative.This replaces the prior, longer note with a leaner version focused on the five points above.
Test plan
cargo fmt --all -- --checkdocs/design/,docs/audits/, andcrates/fast_io/src/.