Repository navigation
feat: add --aes/--no-aes CLI flags for SSH cipher control - #2364
Merged
Merged
Conversation
Wire --aes and --no-aes options through CLI parsing, config builder, and client config to control AES-GCM cipher preference for SSH connections. Hardware-accelerated AES-GCM can significantly outperform ChaCha20-Poly1305 on CPUs with AES-NI or ARMv8 crypto extensions.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Wire --aes and --no-aes options through CLI parsing, config builder, and client config to control AES-GCM cipher preference for SSH connections. Hardware-accelerated AES-GCM can significantly outperform ChaCha20-Poly1305 on CPUs with AES-NI or ARMv8 crypto extensions.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Wire --aes and --no-aes options through CLI parsing, config builder, and client config to control AES-GCM cipher preference for SSH connections. Hardware-accelerated AES-GCM can significantly outperform ChaCha20-Poly1305 on CPUs with AES-NI or ARMv8 crypto extensions.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
1 task
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Add a Linux-only Criterion bench that quantifies the headroom the iouring-data-writes cutover would close on a real NVMe mount. Two cells exercise the same 10 x 1 GiB workload through the production write paths: - stdlib_write: today's Writer::Buffered fallback (BufWriter, 256 KiB, one flush + sync_all at end-of-file). - iouring_write_fixed: IORING_OP_WRITE_FIXED against a four-slot registered-buffer pool of 1 MiB page-aligned buffers, followed by IORING_OP_FSYNC, matching the production IoUringDiskBatch::commit_file placement. Gated by OC_RSYNC_BENCH_NVME_DATA_PATH=1 because each iteration writes 10 GiB to disk. OC_RSYNC_BENCH_NVME_PATH optionally pins the scratch dir to a real NVMe mount; falls back to the default TempDir location (typically a ramdisk on CI) so the bench still produces a ring-lifecycle and submission-cost number when no NVMe is available. The bench is cfg-gated on target_os = "linux" + feature = "io_uring"; macOS, Windows, and feature-off builds compile to a stub main that prints a skip line. perf stat instructions are documented in the module doc rather than wired into the bench so Criterion's wall-time and throughput reporting stays clean.
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
--aesand--no-aesCLI arguments for controlling SSH AES-GCM cipher preferenceprefer_aes_gcmthroughParsedArgs,ConfigInputs,ClientConfigBuilder, andClientConfigTest plan
cargo clippy -p cli -p core --no-deps -- -D warningspassescargo check -p clicompiles cleanly