Skip to content

docs(audits): daemon thread-per-connection scalability audit (#1673) - #3705

Merged
oferchen merged 1 commit into
masterfrom
docs/daemon-tpc-scalability-1673
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/daemon-tpc-scalability-1673

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Static analysis of the daemon's thread-per-connection model: accept loop, per-connection resource cost, hard / soft limits, lock contention surface.
  • Maps the connection lifecycle (accept, spawn, greeting, auth, module dispatch, transfer, close) with file:LINE citations.
  • Frames the migration sequencing against the async listener RFC (Accept quoted fallback override values #1934) and the upcoming benchmark (Optimize rolling checksum bulk rolls #1933).

Test plan

Tracking: oc-rsync task #1673.

Static analysis of the daemon's accept loop, per-connection resource
cost, hard and soft limits, lock contention surface, and the migration
sequencing against the async listener RFC. Frames the empirical
follow-up benchmark at 100, 1000, and 10000 concurrent connections.

Tracking: oc-rsync task #1673.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
oferchen added a commit that referenced this pull request May 5, 2026
Defines the empirical benchmark harness, workloads (100 / 1k / 10k
concurrent clients), metrics, soft-limit triggers, comparison oracle
against upstream rsync 3.4.1, and the decision criteria that gate the
async listener migration tracked under #1935. Frames the active-counter
fix from the parent audit (#1673, PR #3705) as a strict precondition.

Tracking: oc-rsync task #1933.
@oferchen
oferchen merged commit b08226e into master May 5, 2026
8 checks passed
oferchen added a commit that referenced this pull request May 5, 2026
)

Defines the empirical benchmark harness, workloads (100 / 1k / 10k
concurrent clients), metrics, soft-limit triggers, comparison oracle
against upstream rsync 3.4.1, and the decision criteria that gate the
async listener migration tracked under #1935. Frames the active-counter
fix from the parent audit (#1673, PR #3705) as a strict precondition.

Tracking: oc-rsync task #1933.
@oferchen
oferchen deleted the docs/daemon-tpc-scalability-1673 branch May 6, 2026 18:57
oferchen added a commit that referenced this pull request May 18, 2026
Static analysis of the daemon's accept loop, per-connection resource
cost, hard and soft limits, lock contention surface, and the migration
sequencing against the async listener RFC. Frames the empirical
follow-up benchmark at 100, 1000, and 10000 concurrent connections.

Tracking: oc-rsync task #1673.
oferchen added a commit that referenced this pull request May 18, 2026
)

Defines the empirical benchmark harness, workloads (100 / 1k / 10k
concurrent clients), metrics, soft-limit triggers, comparison oracle
against upstream rsync 3.4.1, and the decision criteria that gate the
async listener migration tracked under #1935. Frames the active-counter
fix from the parent audit (#1673, PR #3705) as a strict precondition.

Tracking: oc-rsync task #1933.
oferchen added a commit that referenced this pull request Aug 24, 2026
Static analysis of the daemon's accept loop, per-connection resource
cost, hard and soft limits, lock contention surface, and the migration
sequencing against the async listener RFC. Frames the empirical
follow-up benchmark at 100, 1000, and 10000 concurrent connections.

Tracking: oc-rsync task #1673.
oferchen added a commit that referenced this pull request Aug 24, 2026
)

Defines the empirical benchmark harness, workloads (100 / 1k / 10k
concurrent clients), metrics, soft-limit triggers, comparison oracle
against upstream rsync 3.4.1, and the decision criteria that gate the
async listener migration tracked under #1935. Frames the active-counter
fix from the parent audit (#1673, PR #3705) as a strict precondition.

Tracking: oc-rsync task #1933.
oferchen added a commit that referenced this pull request Aug 24, 2026
Closes the rsync_io-crate gap identified by WCI-1
(docs/audits/wci-1-windows-nextest-coverage-gap.md section 4.2): the
required Windows (stable) cell never links rsync_io, so the
`user_pattern_case_insensitive_on_windows` ssh_config parser test
never executes on Windows. The new nightly workflow runs the full
rsync_io crate on windows-latest at 08:00 UTC (offset from the
existing WCI-2 IOCP at 05:00, WCI-3 daemon at 06:00, and WCI-7
long-path at 07:00 cells) to keep the Windows runner pool spread
across the nightly schedule.

Status: non-required, informational. Promotion to required-on-PR is
gated on a 14-day green bake window per WCI-11 (#3705). Actions are
SHA-pinned per CII-4 hardening.
oferchen added a commit that referenced this pull request Aug 24, 2026
Adds a nightly workflow that isolates the FindFirstStreamW /
FindNextStreamW ADS round-trip path by running the metadata-crate
integration tests in `crates/metadata/tests/windows_ads_xattrs_roundtrip.rs`
under `--features xattr` (no `acl`). Also runs the CLI preflight
smoke test that asserts `--xattrs` on Windows reaches the ADS
backend cleanly.

Closes the WCI-1 audit gap (PR #5639, docs/audits/wci-1-windows-nextest-coverage-gap.md
section 4.2) where the combined `Windows ACL/xattr` cell can mask
xattr_windows.rs regressions under acl,xattr feature union.

Non-required (informational). Promotion to required-on-PR is gated
on a 14-day green bake window per WCI-11 #3705.
oferchen added a commit that referenced this pull request Aug 24, 2026
The required `Windows` cell in ci.yml runs nextest against `core`,
`engine`, and `cli`, and the `Windows ACL/xattr` cell runs
`-p metadata --features acl,xattr` with a workspace-scoped filter
limited to `acl`/`xattr`/`ads`/`stream` test substrings. The
reparse-point classifier tests under `crates/metadata/src/windows/
reparse.rs`, the `mklink` fixture tests in `crates/metadata/tests/
windows_reparse_classify_path.rs` + `windows_reparse_fixtures.rs` +
`windows_symlink_junction_transfer.rs`, and the
`absolutize_returns_absolute_path_unchanged_windows` test in
`crates/flist/src/file_list_walker.rs` (named in the WCI-1 audit)
do not match those filters and never execute on Windows today.

The reparse classifier is load-bearing for every Windows source
that crosses a directory symlink, junction, or volume mount point.
A regression silently corrupts symlink target wire bytes and turns
junctions into broken destination directories.

This adds a nightly workflow at 11:00 UTC (offset from WCI-2 at
05:00, WCI-3 at 06:00, WCI-7 at 07:00 UTC) that runs the metadata
crate filtered to `test(reparse) or test(symlink) or test(junction)
or test(mount_point)` plus the flist crate filtered to
`test(absolutize)`. The mklink/DefineDosDevice fixtures require
Developer Mode or Administrator privileges that GitHub-hosted
`windows-latest` runners do not provide; per the WCI-8 task spec,
fail-loud at fixture-setup is acceptable for the nightly cell and
the workflow YAML documents that constraint inline. The synthetic-
buffer unit tests in `reparse.rs` and the classify-path integration
tests do not require elevation and surface any classifier-logic
regression independently.

Non-required (informational); promotion to required-on-PR is gated
on the 14-day green bake window tracked under WCI-11 (#3705).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant