Commit Graph
3 Commits
Author SHA1 Message Date
Brennan Benson 222718cf46 perf(git): bound eligible route selection 2026-08-27 16:54:10 -07:00
Brennan Benson d1fb05a9a7 perf(git): keep admission queue drains linear 2026-08-27 16:11:55 -07:00
Brennan Benson 6a71077316 perf(git): bound git subprocess execution with an atomic admission scheduler
Field traces (#16038, #11363) show Windows freeze storms driven by unbounded
concurrent git children (12+ at once, 50-65s status convoys for 25+ minutes).
Admit every main-process git child against atomic per-budget base+headroom
counters (general / network / per-route), with reserved interactive capacity,
ordering-only aging, close-bound permit release, a 120s fail-safe read timeout
that feeds scheduler backoff, tier plumbing through every option carrier, and
coalesced+jittered visibility pollers. Killswitch: ORCA_GIT_ADMISSION_DISABLED=1.

Storm harness A/B: max concurrent children 65 -> 6, interactive p95 791ms -> 88ms;
output-parity battery byte-identical with admission on vs off.
2026-08-27 14:53:31 -07:00