Repository navigation
feat(daemon): add max verbosity parsing and enforcement - #2508
Merged
Merged
Conversation
- Add "max verbosity" directive to standalone rsyncd_config.rs parser with field, accessor, builder support, and default of 1 - Add clamp_verbose_flags() to enforce max_verbosity by stripping excess 'v' flags from the client's flag string - Wire enforcement into build_server_config() in module_access.rs - Upstream: clientserver.c — clamps verbose to lp_max_verbosity(i)
oferchen
force-pushed
the
feat/daemon-max-verbosity
branch
from
February 27, 2026 03:37
3ecb01c to
b0b0222
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
feat(daemon): add max verbosity parsing and enforcement
oferchen
added a commit
that referenced
this pull request
May 5, 2026
feat(daemon): add max verbosity parsing and enforcement
1 of 2 tasks
oferchen
added a commit
that referenced
this pull request
May 21, 2026
Discharges the ABW-1 audit's recommendation (PR #4670, section 4) to skip the pipelined verify/write design for apply_batch_parallel until bench evidence shows verify and write costs within 2x of each other on a production-relevant workload cell. - Recaps the ABW-1 quantified speedup table (1.13x balanced, 1.50x CPU-bound, 1.03x I/O-bound, ~0x single-file). - Documents why deferring the design (not just the implementation) is the right call: peak benefit is workload-dependent, complexity-to- payoff is poor in the measured cells, and the PIP-3+5 dispatch heuristic (PR #4666) already gates the degenerate single-file case out of parallel-receive-delta. - Names BR-3j.f (#2508) as the gating re-bench task and lifts the audit's decision gate verbatim. - Preserves the option: per-file Mutex is the real bottleneck; a future multi-threaded-per-file writer or a CPU-bound verify regime would re-open ABW-2.
3 tasks done
oferchen
added a commit
that referenced
this pull request
May 21, 2026
…-2 rename (#4676) RJN-2 (PR #4660, merged) chose the rename path over the fanout-refactor path, discharging the RJN-1 audit (PR #4656, merged) with apply_chunk_parallel -> apply_one_chunk plus a rustdoc redirect to apply_batch_parallel. RJN-3 (implement fanout) and RJN-4 (bench scheduler shape) were the "if RJN-2 chose refactor" branch that did not get taken; this doc closes both. - RJN-3 stays closed: zero production callers of apply_one_chunk; the real multi-chunk win sits in apply_batch_parallel, where ABW-1 (PR #4670) already recommended deferring per its quantified 1.03x-1.50x speedup range; the ABW-2/3/4 closure doc defers that track pending BR-3j.f (#2508) bench data. - RJN-4 is N/A: with RJN-3 deferred there is no "after" cell to measure; the production-weighted scheduler-shape bench effort belongs in parallel_receive_delta_perf via BR-3j.f, not at the per-chunk entry point. - Re-open conditions: a production caller of apply_one_chunk ships AND profiling shows the per-chunk path is hot. Project memory references project_rayon_join_per_chunk_noop.md and project_apply_batch_write_serial.md - both observations remain accurate under the renamed function.
3 tasks
oferchen
added a commit
that referenced
this pull request
May 21, 2026
Adds the end-to-end production-path bench harness for the parallel- receive-delta promotion chain. PIP-6 is the third bench in the sequence after BR-3i.f (#2502, apply-loop) and BR-3j.f (#2508, post-DashMap re-bench). Scope: drives a real oc-rsync client against a real oc-rsync daemon over rsync:// loopback, on workload shapes calibrated to the Path B dispatch boundary (file_count > 100 || total_size > 64 MiB) that PIP-3+5 (PR #4666) wired into ReceiverContext::dispatch_receiver_strategy. Comparison shape: same workload, two oc-rsync binaries (default-features build vs --no-default-features --features 'zstd lz4 xattr iconv'). The no-parallel build trips the parallel_unavailable fallback path in crates/transfer/src/receiver/mod.rs and always picks sequential. Workload matrix: - single_large_file (1x1 GiB, parallel by byte threshold) - many_small_files (10_000x4 KiB, parallel by count) - boundary_under (50 files, 32 MiB, sequential control) - boundary_over (200 files, 32 MiB, parallel above count) - mixed_directory (1_000 files, ~600 MiB, parallel) Decision criteria: - Win on >= 2 of 5 shapes (parallel_wall / sequential_wall <= 0.9) - No shape regresses by more than 5% - boundary_under within +/-3% (harness control) Bench compiles; numbers capture is the follow-up. The section-4 table in docs/design/parallel-receive-delta-default-on.md is the target for the wall-clock data.
3 tasks done
oferchen
added a commit
that referenced
this pull request
May 21, 2026
…#4679) Adds the end-to-end production-path bench harness for the parallel- receive-delta promotion chain. PIP-6 is the third bench in the sequence after BR-3i.f (#2502, apply-loop) and BR-3j.f (#2508, post-DashMap re-bench). Scope: drives a real oc-rsync client against a real oc-rsync daemon over rsync:// loopback, on workload shapes calibrated to the Path B dispatch boundary (file_count > 100 || total_size > 64 MiB) that PIP-3+5 (PR #4666) wired into ReceiverContext::dispatch_receiver_strategy. Comparison shape: same workload, two oc-rsync binaries (default-features build vs --no-default-features --features 'zstd lz4 xattr iconv'). The no-parallel build trips the parallel_unavailable fallback path in crates/transfer/src/receiver/mod.rs and always picks sequential. Workload matrix: - single_large_file (1x1 GiB, parallel by byte threshold) - many_small_files (10_000x4 KiB, parallel by count) - boundary_under (50 files, 32 MiB, sequential control) - boundary_over (200 files, 32 MiB, parallel above count) - mixed_directory (1_000 files, ~600 MiB, parallel) Decision criteria: - Win on >= 2 of 5 shapes (parallel_wall / sequential_wall <= 0.9) - No shape regresses by more than 5% - boundary_under within +/-3% (harness control) Bench compiles; numbers capture is the follow-up. The section-4 table in docs/design/parallel-receive-delta-default-on.md is the target for the wall-clock data.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Discharges the ABW-1 audit's recommendation (PR #4670, section 4) to skip the pipelined verify/write design for apply_batch_parallel until bench evidence shows verify and write costs within 2x of each other on a production-relevant workload cell. - Recaps the ABW-1 quantified speedup table (1.13x balanced, 1.50x CPU-bound, 1.03x I/O-bound, ~0x single-file). - Documents why deferring the design (not just the implementation) is the right call: peak benefit is workload-dependent, complexity-to- payoff is poor in the measured cells, and the PIP-3+5 dispatch heuristic (PR #4666) already gates the degenerate single-file case out of parallel-receive-delta. - Names BR-3j.f (#2508) as the gating re-bench task and lifts the audit's decision gate verbatim. - Preserves the option: per-file Mutex is the real bottleneck; a future multi-threaded-per-file writer or a CPU-bound verify regime would re-open ABW-2.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…-2 rename (#4676) RJN-2 (PR #4660, merged) chose the rename path over the fanout-refactor path, discharging the RJN-1 audit (PR #4656, merged) with apply_chunk_parallel -> apply_one_chunk plus a rustdoc redirect to apply_batch_parallel. RJN-3 (implement fanout) and RJN-4 (bench scheduler shape) were the "if RJN-2 chose refactor" branch that did not get taken; this doc closes both. - RJN-3 stays closed: zero production callers of apply_one_chunk; the real multi-chunk win sits in apply_batch_parallel, where ABW-1 (PR #4670) already recommended deferring per its quantified 1.03x-1.50x speedup range; the ABW-2/3/4 closure doc defers that track pending BR-3j.f (#2508) bench data. - RJN-4 is N/A: with RJN-3 deferred there is no "after" cell to measure; the production-weighted scheduler-shape bench effort belongs in parallel_receive_delta_perf via BR-3j.f, not at the per-chunk entry point. - Re-open conditions: a production caller of apply_one_chunk ships AND profiling shows the per-chunk path is hot. Project memory references project_rayon_join_per_chunk_noop.md and project_apply_batch_write_serial.md - both observations remain accurate under the renamed function.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#4679) Adds the end-to-end production-path bench harness for the parallel- receive-delta promotion chain. PIP-6 is the third bench in the sequence after BR-3i.f (#2502, apply-loop) and BR-3j.f (#2508, post-DashMap re-bench). Scope: drives a real oc-rsync client against a real oc-rsync daemon over rsync:// loopback, on workload shapes calibrated to the Path B dispatch boundary (file_count > 100 || total_size > 64 MiB) that PIP-3+5 (PR #4666) wired into ReceiverContext::dispatch_receiver_strategy. Comparison shape: same workload, two oc-rsync binaries (default-features build vs --no-default-features --features 'zstd lz4 xattr iconv'). The no-parallel build trips the parallel_unavailable fallback path in crates/transfer/src/receiver/mod.rs and always picks sequential. Workload matrix: - single_large_file (1x1 GiB, parallel by byte threshold) - many_small_files (10_000x4 KiB, parallel by count) - boundary_under (50 files, 32 MiB, sequential control) - boundary_over (200 files, 32 MiB, parallel above count) - mixed_directory (1_000 files, ~600 MiB, parallel) Decision criteria: - Win on >= 2 of 5 shapes (parallel_wall / sequential_wall <= 0.9) - No shape regresses by more than 5% - boundary_under within +/-3% (harness control) Bench compiles; numbers capture is the follow-up. The section-4 table in docs/design/parallel-receive-delta-default-on.md is the target for the wall-clock data.
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
rsyncd_config.rsparser (field, accessor, builder, default 1)clamp_verbose_flags()to enforce max_verbosity by stripping excessvflags from the client's compact flag stringbuild_server_config()inmodule_access.rsclientserver.c— clampsverbosetolp_max_verbosity(i)after parsing client argsTest plan
cargo fmt --all -- --checkpassescargo clippy --workspace --all-targets --all-features --no-deps -- -D warningspassescargo nextest run --workspace --all-featurespasses