git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Auto packing the repository - foreground or background in Windows?
@ 2022-12-01 12:25 Tao Klerks
  2022-12-06 18:03 ` Derrick Stolee
  0 siblings, 1 reply; 7+ messages in thread
From: Tao Klerks @ 2022-12-01 12:25 UTC (permalink / raw)
  To: git

Hi folks,

I came across a Windows user today whose "fetch" operations were
taking a long time, because their repository had passed some
persistent maintenance-triggering threshold *and* the resulting
auto-gc was running in the foreground (and not resolving the
maintenance-triggering condition automatically).

The user was seeing, at the end of their fetch, something like:

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Enumerating objects: 311322, done.
Nothing new to pack.
Checking connectivity: 1490123

Eventually, they noticed a subsequent recommendation to run "git
prune", after the connectivity check completed, and after they did the
git prune, they started getting "bad object" errors on fetch - so
there was clearly something else going wrong somewhere...

But my *question* is: Does anyone know where I could/should look to
understand why the GC was happening in the foreground, even though the
message says it will run in the background?

I don't know how to create the conditions for the auto-GC on demand
(how to create lots of loose objects??), so I don't know how to verify
whether it ever runs in the background on Windows, or what that might
depend on. I saw some discussions in 2016, but I can't tell what the
conclusion was; is it simply the case that git has been "lying" about
running GC in the background, on windows, for all these years? Or is
there something specific going on in this user's environment?

Any info welcome, thank you!

Tao

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-09 15:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-01 12:25 Auto packing the repository - foreground or background in Windows? Tao Klerks
2022-12-06 18:03 ` Derrick Stolee
2022-12-06 19:19   ` Ævar Arnfjörð Bjarmason
2022-12-06 22:41   ` Jeff Hostetler
2022-12-08 14:29     ` Tao Klerks
2022-12-08 14:52   ` Tao Klerks
2022-12-09 15:11     ` Derrick Stolee

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).