Repository navigation
Description
Operating system
Windows
Orca version
v1.4.97
Details
Summary
On Windows, Orca v1.4.97 emits recurring bursts of short-lived git.exe processes for workspace source-control refresh while Orca stays open, with no manual git action on my part. Each spawned git.exe is scanned by Windows Defender real-time protection, so the churn surfaces as periodic CPU on both Orca's process tree and MsMpEng.exe.
This is distinct from the lightweight ~3s git-status badge poll — these are the heavier refresh set (rev-parse @{upstream}, remote get-url, config, status --porcelain) fired across the open repos and not coalesced.
What I measured (Windows 10 Pro 19045, 8-core; 6 repos / 6 projects open)
Spawns are parented by Orca.exe, running git status --porcelain / git config / git rev-parse --abbrev-ref --symbolic-full-name <branch>@{upstream} / git remote get-url origin. The bursts are intermittent — they cluster during active use (in one window I captured ~6 bursts over ~6 minutes, peaking ~10 concurrent git.exe; a later 6-minute window showed 9 Orca.exe-parented spawns peaking at 6). During bursts, Windows Defender (MsMpEng.exe) rises in lockstep — near-0 when idle, up to ~15–22% of a single core (≈2–3% of total CPU on this 8-core box) as it scans each spawned process. (Measured via Win32_Process KernelModeTime+UserModeTime, since (Get-Process MsMpEng).CPU returns null for the PPL-protected process.)
Reproduce — paste in PowerShell while Orca is open with a few git repos. Run it for several minutes (the bursts are intermittent, so a 1-minute window can miss them):
$seen=@{}; $peak=0; $end=(Get-Date).AddMinutes(10)
while((Get-Date) -lt $end){
$g=@(Get-CimInstance Win32_Process -Filter "Name='git.exe'")
if($g.Count -gt $peak){ $peak=$g.Count }
if($g.Count){ $names=@{}; foreach($p in Get-Process){ $names[$p.Id]=$p.ProcessName }
foreach($x in $g){ if(-not $seen.ContainsKey([int]$x.ProcessId)){
$par = if($names.ContainsKey([int]$x.ParentProcessId)){ $names[[int]$x.ParentProcessId] } else { '?' }
$seen[[int]$x.ProcessId] = "$par | $($x.CommandLine)" } } }
Start-Sleep -Milliseconds 250
}
"git.exe spawns: $($seen.Count) peak concurrent: $peak"
$seen.Values | Group-Object | Sort-Object Count -Descending | Select-Object -First 20 |
ForEach-Object{ '{0,4} {1}' -f $_.Count, $_.Name }Expected: a handful of git invocations. Observed: recurring bursts, parented by Orca.exe, doing status/config/rev-parse/remote across the open repos.
Expected: background source-control refresh is throttled/coalesced so it doesn't spawn repeated git-process bursts for as long as Orca is open.
Actual: recurring git.exe spawn bursts during use, driving periodic CPU on Orca + Defender (which scans every spawn).
Context — this area is being actively tuned, but it persists:
- v1.4.94 changelog: "Reduce repeated git probes during worktree refresh"
- v1.4.95 changelog: "Reduce source-control background load during refreshes"
- Still reproduces on v1.4.97.
Not a duplicate of:
- High idle CPU/battery: Electron processes (GPU + renderer + main + daemon) each ~8–9% of a core while idle; 6 spawned Pi agents add more #5386 (closed as completed/fixed, macOS, v1.4.68) — "high idle CPU with many workspaces." That was fixed pre-1.4.94; I'm on v1.4.97 after the source-control-load tuning, on Windows, and it still reproduces with Defender amplification.
- Stale/unresolvable git worktree gitdir pointer triggers unbounded repos:changed + git-worktree reconcile storm (~25/sec) #5381 (closed
not_planned, macOS, v1.4.68) — a pathologicalgit worktreereconcile storm (~25/sec change-broadcasts / ~10/sec git subprocesses) caused by a stale/unresolvable gitdir pointer. My case is healthy repos doing steady-state polling, with a different command set (status/config/rev-parse upstream/remote get-url, notgit worktree).
Caveats / scope:
- Reproduces with several repos open; the per-repo refresh mechanism suggests the cost scales with the number of open repos (i.e. the refresh isn't coalesced across workspaces). Happy to run a single-repo comparison if that would help.
- I have not A/B-tested against an older build, so I'm not pinpointing a regression version — only reporting current v1.4.97 behavior.
- Scope: measurements isolate
git.exeparented byOrca.exe; other tools on the box also spawn git and are excluded by parent-PID filtering. Defender amplifies the cost, but the root here is Orca's spawn cadence — the same churn would tax any on-access AV.
Activity
brennanb2025 commentedon Jun 26, 2026
Thanks again for the detailed report and repro script.
We've merged several fixes for this source-control refresh churn since v1.4.97. The latest stable release, v1.4.101, includes the main reductions for Git refresh fanout, status refresh coalescing, duplicate worktree scans, and duplicate diff loading work.
One related fix landed after v1.4.101, though: #6413 reduces upstream/push-target polling churn, which is relevant to the
rev-parse @{upstream}/ remote/config side of what you measured. So I'd expect v1.4.101 to be materially better, but the more complete fix should be in the next release.If you still see recurring
git.exebursts after that next release, the same PowerShell output plus the number of open repos/projects would be very helpful. That would tell us whether another refresh path is still escaping the throttling/coalescing.taifunk commentedon Jun 28, 2026
Follow-up on v1.4.103 (Windows 10, after #6413 landed). Re-ran the same sampler for 10 minutes with 8 worktrees open, during normal use — switching tabs, reading terminal output — but with no file edits and nothing else writing to those worktrees. Filtered to
git.exeparented byOrca.exe, same as the original.The recurring bursts are gone. Peak concurrent Orca-parented git was 3 (was ~10 on v1.4.97). Orca spawned 37 git processes over the 10 minutes; 18 of them exited before my 250 ms poll could read their command line, so the counts below are floors.
What I could capture, by command:
diff --numstatx8,status --porcelainx7 — change/focus-driven refresh, expected as I moved between worktree tabs.rev-parse ...@{u}x2,config --get branch.main.pushRemotex1,remote get-url originx1 — the upstream/push-target set.So the upstream path is throttled but not gone — it fires a handful of times over 10 minutes instead of the recurring bursts I first reported. I can't attribute that to #6413 specifically: I updated past v1.4.101, so there's no clean A/B separating it from the earlier coalescing work. But next to v1.4.97 the burst pattern that drove the CPU is much smaller — lower peaks, no sustained bursts, and proportionally less of the per-spawn Defender scanning since that scales with spawn count.
Good enough to call resolved for the burst behaviour, from where I sit. The residual upstream/config probing is low-rate — up to you whether that's worth chasing or expected steady-state.
brennanb2025 commentedon Jun 29, 2026
Taking a look 👀