git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Poor performance of auto gc
@ 2013-04-08 12:54 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2013-04-08 12:54 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

I routinely experience very poor behaviour of the auto garbage
collection both on the command line and especially with git gui (which
appears to have a much lower threashold).  I have a kernel git
repository I do most of my work in which includes a bunch of trees
including -next and which has some frequently rebased branches.  This
does garbage collection (or for git gui prompts me to do garbage
collection) far too frequently.  Previous analysis has shown that the
issue is that garbage collection leaves a bunch of unreferenced items
lying around as loose objects rather than in a pack waiting to age out
of the tree.  This is especially bad towards the end of the release
cycle when the trees in -next get bigger, right now the gc *always*
triggers.

It seems to me that it should be possible to trigger garbage collection
based on proportions of the number of objects in the repository rather
than on absolute numbers; some sort of time/object count increase based
holdoff might be useful to prevent things retriggering too soon.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-08 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08 12:54 Poor performance of auto gc Mark Brown

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 NNTP newsgroup(s).