Skip to content

feat(daemon): add max verbosity parsing and enforcement - #2508

Merged
oferchen merged 1 commit into
masterfrom
feat/daemon-max-verbosity
Feb 27, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/daemon-max-verbosity

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add "max verbosity" directive to standalone rsyncd_config.rs parser (field, accessor, builder, default 1)
  • Add clamp_verbose_flags() to enforce max_verbosity by stripping excess v flags from the client's compact flag string
  • Wire enforcement into build_server_config() in module_access.rs
  • Upstream: clientserver.c — clamps verbose to lp_max_verbosity(i) after parsing client args

Test plan

  • Verify cargo fmt --all -- --check passes
  • Verify cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings passes
  • Verify cargo nextest run --workspace --all-features passes

@github-actions github-actions Bot added the enhancement New feature or request label Feb 27, 2026
- 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
oferchen force-pushed the feat/daemon-max-verbosity branch from 3ecb01c to b0b0222 Compare February 27, 2026 03:37
@oferchen
oferchen merged commit 9f9e43e into master Feb 27, 2026
8 checks passed
@oferchen
oferchen deleted the feat/daemon-max-verbosity branch February 27, 2026 09:46
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
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.
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.
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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant