Repository navigation
Profile many-worlds command latency components - #12471
Conversation
…d-latency-breakdown-20261122
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a23803cbad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let input_started = Instant::now(); | ||
| let wake_lateness = input_started.saturating_duration_since(deadline); |
There was a problem hiding this comment.
Separate command backlog from scheduler wake lateness
When an input acknowledgement takes longer than the 50 ms submission interval, this per-world loop does not register the next timer until that acknowledgement completes. For example, a 500 ms first acknowledgement makes the next sample report roughly 450 ms of wake_lateness even if Tokio schedules every ready task immediately. The new metric therefore includes backlog from earlier input calls, not just scheduler wake delay, so it cannot support the committed baseline's conclusion that the tail is attributable to late task wake-up. Track that backlog separately from timer wake delay, or label the metric and diagnostic conclusion as submission lateness rather than scheduler latency.
Useful? React with 👍 / 👎.
| # many_worlds wake/input profile measured 2026-11-22 on the same reference machine | ||
| # (rustc 1.99.0, Linux 6.18.60); shared fleet build activity, build-lock slot 1/2. | ||
| # Diagnostic only: wake lateness dominates this run's end-to-end tail. See BASELINES.md. | ||
| bench many_worlds unit=ms_per_command median=885.541 min=5.341 reps=1 p50_ms=885.541 p95_ms=4760.759 p99_ms=6142.516 wake_p50_ms=829.994 wake_p95_ms=4710.759 wake_p99_ms=6092.517 input_ack_p50_ms=10.283 input_ack_p95_ms=194.474 input_ack_p99_ms=379.032 target_p99_ms=50 target_met=false idle_worlds=1000 active_worlds=100 events_per_second=20 duration_secs=10 commands=20000 load_elapsed_secs=12.941 completed_events_per_second=1545.5 checkpoint_triggers=100 checkpoints=100 evicted=100 reopened=100 |
There was a problem hiding this comment.
Keep only one active many-worlds baseline record
Appending this record leaves two bench many_worlds lines in baseline.txt, with the existing measurement still at line 17. The parser in .github/scripts/id-bench-compare.sh:219-224 explicitly marks duplicate benchmark names as malformed, and lines 264-273 then report the benchmark as incomparable instead of calculating a regression. Since .github/workflows/id-bench.yml:109 passes this file directly to the comparison script, every successful benchmark run now loses its many-worlds regression signal. Keep exactly one active baseline record and retain the historical or diagnostic measurement in BASELINES.md or a comment.
Useful? React with 👍 / 👎.
Summary
many_worlds.BASELINES.mdandbaseline.txt; add a focused checker for the profile fields and sample count.Evidence
~/tools/fleet-build-lock cargo bench --bench world_bench -- --only many_worlds— passed; 20,000 commands and 100 checkpoint/eviction/reopen assertions completed.python3 scripts/test_world_bench_profile.py— passed.git diff --check— passed.rustfmt --edition 2024 --check pkgs/id/benches/world_bench.rs— passed.Merge Danger
Low. Benchmark instrumentation and evidence only; no runtime behavior changes. The profile was captured under shared build load and is not an unloaded performance comparison.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.