Skip to content

docs(daemon): record where the SIGNAL_CHECK_INTERVAL accept poll went - #7745

Merged
oferchen merged 1 commit into
masterfrom
docs/signal-check-interval-drift
Sep 8, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/signal-check-interval-drift

Conversation

@oferchen

@oferchen oferchen commented Sep 8, 2026

Copy link
Copy Markdown
Owner

What

Eleven docs cite SIGNAL_CHECK_INTERVAL. All were line-accurate when written; the code then moved twice: PR #5908 lowered the single-listener WouldBlock sleep 500ms -> 50ms and deleted the constant, and PR #7681 removed accept-side sleep-polling entirely — PollAcceptEngine parks in one poll(2) over every listener fd (READINESS_WAIT_MILLIS: u16 = 50, accept_engine.rs:60), and the opt-in macos-kqueue engine parks in kevent(2) with a 100ms timeout (accept_engine.rs:331). The acceptor threads and the dual-stack MPSC fan-in are gone.

Per-site classification, not a blanket sweep

Each of the 11 files was classified before editing:

One correction of substance: the docs implied the kqueue accept path is live on macOS. It is behind the default-off macos-kqueue feature (crates/daemon/Cargo.toml default = []); the default macOS build uses PollAcceptEngine. The updated rows say so explicitly.

Gates

Docs-only (zero .rs files touched). Whole-tree rustfmt via tools/ci/check_rustfmt_all.py on the pinned 1.88.0 toolchain: clean.

The eleven docs that cite SIGNAL_CHECK_INTERVAL were line-accurate when
written, but the code moved twice since: PR #5908 lowered the
single-listener WouldBlock sleep from 500ms to 50ms and deleted the
constant, and PR #7681 replaced accept-side sleep-polling with a
readiness wait (poll(2) in PollAcceptEngine, kevent(2) behind the
opt-in macos-kqueue feature in KqueueAcceptEngine) in
server_runtime/accept_engine.rs.

Bring the living documents back in line with the tree:

- kqueue-pipeline-audit: mark the two daemon-accept surface rows
  migrated (KQ-S.1 landed via #6217/#7681) instead of describing the
  deleted sleep-poll loops as the current implementation.
- daemon-tpc-benchmark-plan: bound SIGTERM-to-drain latency by the
  accept engine's 50ms/100ms signal-check cadence, and mark tracker
  #1683 completed.
- daemon-event-loop-multiplexing: add a status note to the follow-up
  list and tick #1683, which #5908/#7681 closed.
- daemon-thread-per-connection-scalability: mark tracker #1683
  completed in the references list.
- dis-4a, dis-3, daemon-coldstart-profile, daemon-coldstart-rebench:
  record that DIS-4.a R1 has since landed, next to the sections that
  rank it as the top open bottleneck; retarget the DIS-2 file index
  entry that still pointed the constant at listener.rs.

The audit bodies keep their historical line citations: they describe
the tree that was measured. daemon-thread-per-connection.md,
async-daemon-listener.md (pinned 'Last verified: 2026-05-01'), and
daemon-async-listener-rfc.md are left untouched as dated snapshots.
@oferchen
oferchen enabled auto-merge (squash) September 8, 2026 00:02
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 8, 2026
@oferchen
oferchen merged commit 940aabc into master Sep 8, 2026
66 checks passed
@oferchen
oferchen deleted the docs/signal-check-interval-drift branch September 8, 2026 03:01
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