git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git keeps recreating packs, exploding backup increments
@ 2025-02-19  9:38 Pierre Ossman
  2025-02-20  3:03 ` [External] " Han Young
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Ossman @ 2025-02-19  9:38 UTC (permalink / raw)
  To: git

Hi,

I'm trying to understand git's repacking behaviour, as the observed 
behaviour doesn't match how I read the documentation or the code.

The problem we see is excessive backup increments for developer 
directories. The cause is that pack files keep getting regenerated for 
large repositories.

Users are not running 'git gc' manually, so the assumption is that this 
is caused by 'git gc --auto' being run implicitly.

 From what I can see in the code, and the documentation, it should only 
pack up objects not already found in existing packs. Or at the very 
least, not the objects found in the largest existing pack.

(at least not until gc.autoPackLimit is hit)

But this isn't happening. Old packs are constantly being replaced by new 
ones. Despite most of the objects being old and stable.

We tried gc.bigPackThreshold in the hope it would force it to reuse 
packs better. But all we got instead was duplication. It still creates 
new packs with everything. It just stopped removing the old ones.

Some guidance would be appreciated. I cannot find anything in the code 
or documentation that explains the current behaviour.

Regads,
-- 
Pierre Ossman           Software Development
Cendio AB               https://cendio.com
Teknikringen 8          https://twitter.com/ThinLinc
583 30 Linköping        https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [External] git keeps recreating packs, exploding backup increments
@ 2025-05-11 18:03 OryAkerbay
  0 siblings, 0 replies; 7+ messages in thread
From: OryAkerbay @ 2025-05-11 18:03 UTC (permalink / raw)
  To: ossman; +Cc: git, hanyang.tony, ps


Sent from my iPhone

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

end of thread, other threads:[~2025-05-11 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19  9:38 git keeps recreating packs, exploding backup increments Pierre Ossman
2025-02-20  3:03 ` [External] " Han Young
2025-02-20  8:26   ` Pierre Ossman
2025-02-21  8:16     ` Patrick Steinhardt
2025-02-24  9:10       ` Pierre Ossman
2025-05-09 10:27         ` Pierre Ossman
  -- strict thread matches above, loose matches on Subject: below --
2025-05-11 18:03 OryAkerbay

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).