Add regression tests for invalid bandwidth limit formats#1832
Merged
Conversation
4 tasks
oferchen
added a commit
that referenced
this pull request
May 7, 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.
1 task
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Restructure the SEND_ZC design doc around the explicit 7-section scope: current send path with file:line citations across daemon, transfer, and rsync_io; SEND_ZC semantics with the two-CQE notification model; registered-buffer ownership; kernel-6.0 runtime probe via IORING_REGISTER_PROBE; loopback + small-file bench plan; recommendation to defer until the daemon TCP wiring (#1876) lands; and cross-references to #4217 / #4218 / #4220 / #2243.
oferchen
added a commit
that referenced
this pull request
May 17, 2026
…4301) Adds `crates/fast_io/src/io_uring/send_zc.rs` exposing `try_send_zc(ring, fd, buf, user_data)` that submits an `IORING_OP_SEND_ZC` SQE, drains both the transfer CQE (`IORING_CQE_F_MORE`) and the notification CQE (`IORING_CQE_F_NOTIF`), and returns the byte count sent. Kernel support is probed via `IORING_REGISTER_PROBE` on first call and cached in a process-wide atomic; unsupported kernels surface `io::ErrorKind::Unsupported` so callers can fall back transparently. `IoUringSocketWriter::submit_send` now attempts SEND_ZC first when `IoUringConfig::allow_send_zc()` is true and the payload is at least 16 KiB (per the workload-B regression guard in `docs/design/iouring-send-zc.md` section 5), falling back to the existing `IORING_OP_SEND` batch path on `Unsupported`. A matching stub module on non-Linux returns `Unsupported` so cross-platform callers compile without `cfg`-gating. Unit tests cover the classify-CQE state machine, the empty-buffer rejection, and a 64 KiB loopback round-trip that succeeds only once the notification CQE has been observed.
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.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Restructure the SEND_ZC design doc around the explicit 7-section scope: current send path with file:line citations across daemon, transfer, and rsync_io; SEND_ZC semantics with the two-CQE notification model; registered-buffer ownership; kernel-6.0 runtime probe via IORING_REGISTER_PROBE; loopback + small-file bench plan; recommendation to defer until the daemon TCP wiring (#1876) lands; and cross-references to #4217 / #4218 / #4220 / #2243.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4301) Adds `crates/fast_io/src/io_uring/send_zc.rs` exposing `try_send_zc(ring, fd, buf, user_data)` that submits an `IORING_OP_SEND_ZC` SQE, drains both the transfer CQE (`IORING_CQE_F_MORE`) and the notification CQE (`IORING_CQE_F_NOTIF`), and returns the byte count sent. Kernel support is probed via `IORING_REGISTER_PROBE` on first call and cached in a process-wide atomic; unsupported kernels surface `io::ErrorKind::Unsupported` so callers can fall back transparently. `IoUringSocketWriter::submit_send` now attempts SEND_ZC first when `IoUringConfig::allow_send_zc()` is true and the payload is at least 16 KiB (per the workload-B regression guard in `docs/design/iouring-send-zc.md` section 5), falling back to the existing `IORING_OP_SEND` batch path on `Unsupported`. A matching stub module on non-Linux returns `Unsupported` so cross-platform callers compile without `cfg`-gating. Unit tests cover the classify-CQE state machine, the empty-buffer rejection, and a 64 KiB loopback round-trip that succeeds only once the notification CQE has been observed.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Restructure the SEND_ZC design doc around the explicit 7-section scope: current send path with file:line citations across daemon, transfer, and rsync_io; SEND_ZC semantics with the two-CQE notification model; registered-buffer ownership; kernel-6.0 runtime probe via IORING_REGISTER_PROBE; loopback + small-file bench plan; recommendation to defer until the daemon TCP wiring (#1876) lands; and cross-references to #4217 / #4218 / #4220 / #2243.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4301) Adds `crates/fast_io/src/io_uring/send_zc.rs` exposing `try_send_zc(ring, fd, buf, user_data)` that submits an `IORING_OP_SEND_ZC` SQE, drains both the transfer CQE (`IORING_CQE_F_MORE`) and the notification CQE (`IORING_CQE_F_NOTIF`), and returns the byte count sent. Kernel support is probed via `IORING_REGISTER_PROBE` on first call and cached in a process-wide atomic; unsupported kernels surface `io::ErrorKind::Unsupported` so callers can fall back transparently. `IoUringSocketWriter::submit_send` now attempts SEND_ZC first when `IoUringConfig::allow_send_zc()` is true and the payload is at least 16 KiB (per the workload-B regression guard in `docs/design/iouring-send-zc.md` section 5), falling back to the existing `IORING_OP_SEND` batch path on `Unsupported`. A matching stub module on non-Linux returns `Unsupported` so cross-platform callers compile without `cfg`-gating. Unit tests cover the classify-CQE state machine, the empty-buffer rejection, and a 64 KiB loopback round-trip that succeeds only once the notification CQE has been observed.
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
TooLargeTesting
https://chatgpt.com/codex/tasks/task_e_69055dc0a3dc83239a074928bd5561fa