Repository navigation
Fix RPM artifact paths and cargo xtask alias - #1899
Merged
Merged
Conversation
oferchen
added a commit
that referenced
this pull request
May 1, 2026
This was referenced May 1, 2026
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Add CompletionPump: a shared completion-port driver that owns a worker thread looping on GetQueuedCompletionStatusEx and dispatches each completion entry to a per-operation handler keyed by the OVERLAPPED pointer. This is the Windows analogue of an io_uring CQE drain and is the foundational building block for the upcoming batched-write API (#1898), the concurrent file/socket paths (#1928-#1932), and the IOCP benchmark harness (#1899). Existing IocpReader/IocpWriter create a private port and inline-call GetQueuedCompletionStatus per operation, so the pump introduces a process-wide proactor without disturbing those single-op paths. Cross-platform: real implementation lives behind #[cfg(all(target_os = "windows", feature = "iocp"))]; non-Windows targets get an Unsupported-returning stub so the crate still compiles on Linux and macOS. All unsafe stays inside fast_io per the workspace unsafe-code policy.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Add CompletionPump: a shared completion-port driver that owns a worker thread looping on GetQueuedCompletionStatusEx and dispatches each completion entry to a per-operation handler keyed by the OVERLAPPED pointer. This is the Windows analogue of an io_uring CQE drain and is the foundational building block for the upcoming batched-write API (#1898), the concurrent file/socket paths (#1928-#1932), and the IOCP benchmark harness (#1899). Existing IocpReader/IocpWriter create a private port and inline-call GetQueuedCompletionStatus per operation, so the pump introduces a process-wide proactor without disturbing those single-op paths. Cross-platform: real implementation lives behind #[cfg(all(target_os = "windows", feature = "iocp"))]; non-Windows targets get an Unsupported-returning stub so the crate still compiles on Linux and macOS. All unsafe stays inside fast_io per the workspace unsafe-code policy.
3 tasks
oferchen
added a commit
that referenced
this pull request
May 7, 2026
Adds a focused plan for benchmarking the IOCP file I/O path (crates/fast_io/src/iocp/, #1717-#1721) against synchronous std::fs::File writes. Covers small (4K-64K) and large (1M-100M) file workloads with 1/4/16/64 concurrent streams, cross-references matched io_uring workloads (#1868), specifies the windows-latest runner with --features iocp via xtask windows-bench, and defines seven decision criteria gating the flip of IocpPolicy::Auto to IOCP-as-default. Refs: #1899, #1868, #1717-#1721
3 tasks
oferchen
added a commit
that referenced
this pull request
May 7, 2026
…3871) Document the 10000-file / 32-thread stress workload, completion-port queue-depth and latency metrics, and disk-full / ENOMEM failure injection cases that gate the Windows IOCP disk-commit path before it is declared production-ready. Cites the #1899 IOCP benchmark and the in-flight #1929 / #1930 hardening work.
This was referenced May 14, 2026
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Adds a Criterion bench that compares the Windows IOCP writer path (IocpDiskBatch) against std::fs and BufWriter baselines across 4 KiB, 64 KiB, and 1 MiB payloads. Closes the "wired but never measured" gap from #1868 with repeatable data on whether the IOCP path actually helps under typical and high-concurrency loads. Four cells per payload size: - iocp_default: IocpDiskBatch with default concurrent_ops (4) - iocp_concurrent_ops_8: IocpDiskBatch with concurrent_ops = 8 - stdfs: std::fs::File::create + write_all baseline - bufwriter_64k: BufWriter<File> with a 64 KiB buffer The bench is cfg-gated to target_os = "windows" + iocp feature; on Linux and macOS the file compiles to a stub main that prints a skip line, so cargo bench -p fast_io is cheap on every other host.
oferchen
added a commit
that referenced
this pull request
May 17, 2026
) Adds a Criterion bench that compares the Windows IOCP writer path (IocpDiskBatch) against std::fs and BufWriter baselines across 4 KiB, 64 KiB, and 1 MiB payloads. Closes the "wired but never measured" gap from #1868 with repeatable data on whether the IOCP path actually helps under typical and high-concurrency loads. Four cells per payload size: - iocp_default: IocpDiskBatch with default concurrent_ops (4) - iocp_concurrent_ops_8: IocpDiskBatch with concurrent_ops = 8 - stdfs: std::fs::File::create + write_all baseline - bufwriter_64k: BufWriter<File> with a 64 KiB buffer The bench is cfg-gated to target_os = "windows" + iocp feature; on Linux and macOS the file compiles to a stub main that prints a skip line, so cargo bench -p fast_io is cheap on every other host.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a focused plan for benchmarking the IOCP file I/O path (crates/fast_io/src/iocp/, #1717-#1721) against synchronous std::fs::File writes. Covers small (4K-64K) and large (1M-100M) file workloads with 1/4/16/64 concurrent streams, cross-references matched io_uring workloads (#1868), specifies the windows-latest runner with --features iocp via xtask windows-bench, and defines seven decision criteria gating the flip of IocpPolicy::Auto to IOCP-as-default. Refs: #1899, #1868, #1717-#1721
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…3871) Document the 10000-file / 32-thread stress workload, completion-port queue-depth and latency metrics, and disk-full / ENOMEM failure injection cases that gate the Windows IOCP disk-commit path before it is declared production-ready. Cites the #1899 IOCP benchmark and the in-flight #1929 / #1930 hardening work.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Adds a Criterion bench that compares the Windows IOCP writer path (IocpDiskBatch) against std::fs and BufWriter baselines across 4 KiB, 64 KiB, and 1 MiB payloads. Closes the "wired but never measured" gap from #1868 with repeatable data on whether the IOCP path actually helps under typical and high-concurrency loads. Four cells per payload size: - iocp_default: IocpDiskBatch with default concurrent_ops (4) - iocp_concurrent_ops_8: IocpDiskBatch with concurrent_ops = 8 - stdfs: std::fs::File::create + write_all baseline - bufwriter_64k: BufWriter<File> with a 64 KiB buffer The bench is cfg-gated to target_os = "windows" + iocp feature; on Linux and macOS the file compiles to a stub main that prints a skip line, so cargo bench -p fast_io is cheap on every other host.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Adds a Criterion bench that compares the Windows IOCP writer path (IocpDiskBatch) against std::fs and BufWriter baselines across 4 KiB, 64 KiB, and 1 MiB payloads. Closes the "wired but never measured" gap from #1868 with repeatable data on whether the IOCP path actually helps under typical and high-concurrency loads. Four cells per payload size: - iocp_default: IocpDiskBatch with default concurrent_ops (4) - iocp_concurrent_ops_8: IocpDiskBatch with concurrent_ops = 8 - stdfs: std::fs::File::create + write_all baseline - bufwriter_64k: BufWriter<File> with a 64 KiB buffer The bench is cfg-gated to target_os = "windows" + iocp feature; on Linux and macOS the file compiles to a stub main that prints a skip line, so cargo bench -p fast_io is cheap on every other host.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds a focused plan for benchmarking the IOCP file I/O path (crates/fast_io/src/iocp/, #1717-#1721) against synchronous std::fs::File writes. Covers small (4K-64K) and large (1M-100M) file workloads with 1/4/16/64 concurrent streams, cross-references matched io_uring workloads (#1868), specifies the windows-latest runner with --features iocp via xtask windows-bench, and defines seven decision criteria gating the flip of IocpPolicy::Auto to IOCP-as-default. Refs: #1899, #1868, #1717-#1721
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…3871) Document the 10000-file / 32-thread stress workload, completion-port queue-depth and latency metrics, and disk-full / ENOMEM failure injection cases that gate the Windows IOCP disk-commit path before it is declared production-ready. Cites the #1899 IOCP benchmark and the in-flight #1929 / #1930 hardening work.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) Adds a Criterion bench that compares the Windows IOCP writer path (IocpDiskBatch) against std::fs and BufWriter baselines across 4 KiB, 64 KiB, and 1 MiB payloads. Closes the "wired but never measured" gap from #1868 with repeatable data on whether the IOCP path actually helps under typical and high-concurrency loads. Four cells per payload size: - iocp_default: IocpDiskBatch with default concurrent_ops (4) - iocp_concurrent_ops_8: IocpDiskBatch with concurrent_ops = 8 - stdfs: std::fs::File::create + write_all baseline - bufwriter_64k: BufWriter<File> with a 64 KiB buffer The bench is cfg-gated to target_os = "windows" + iocp feature; on Linux and macOS the file compiles to a stub main that prints a skip line, so cargo bench -p fast_io is cheap on every other host.
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
Testing