git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Since gc.autodetach=1 you can end up with auto-gc on every command with no user notification
@ 2015-07-08 12:28 Ævar Arnfjörð Bjarmason
  2015-07-08 12:47 ` Duy Nguyen
  0 siblings, 1 reply; 17+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2015-07-08 12:28 UTC (permalink / raw)
  To: Git; +Cc: Nguyễn Thái Ngọc Duy, Junio C Hamano

Someone at work came to me with the problem that they were getting the
"Auto packing the repository in background for optimum performance"
notice on every Git command that they ran.

This problem is a combination of two things:

 * Since Nguyễn's v1.9-rc0-2-g9f673f9 where we started running "git
gc" in the background the user hasn't seen the "There are too many
unreachable loose objects" message added back in v1.5.3.1-27-ga087cc9

 * The checkout has a lot of loose objects. So even after "git prune
--expire=2.week.ago" the .git/objects/17 directory has 317 objects.
More than 27 in that directory trigger "git gc --auto".

So it's partly a UI issue. Since the repacking is happening in the
background the user never sees the message suggesting that they run
"git prune".

But perhaps the heuristic of "are there more than 27 objects in
.git/objects/17" could be improved, but I don't know with what
exactly.

But having something fork a gc to the background on every fetch (and
similar object-modifying operations) is quite sub-optimal.

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

end of thread, other threads:[~2015-09-21 16:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-08 12:28 Since gc.autodetach=1 you can end up with auto-gc on every command with no user notification Ævar Arnfjörð Bjarmason
2015-07-08 12:47 ` Duy Nguyen
2015-08-22  2:12   ` [PATCH v3] gc: save log from daemonized gc --auto and print it next time Nguyễn Thái Ngọc Duy
2015-08-25 17:49     ` Junio C Hamano
2015-08-31 10:17       ` Duy Nguyen
2015-09-13  1:36     ` [PATCH v4] " Nguyễn Thái Ngọc Duy
2015-09-14 17:24       ` Junio C Hamano
2015-09-14 17:37         ` Junio C Hamano
2015-09-16  9:28           ` Michael Haggerty
2015-09-16 16:00             ` Junio C Hamano
2015-09-17  9:40               ` Michael Haggerty
2015-09-17 13:08               ` Duy Nguyen
2015-09-17 14:48                 ` Junio C Hamano
2015-09-19  5:13       ` [PATCH v5] " Nguyễn Thái Ngọc Duy
2015-09-21 16:43         ` Junio C Hamano
2015-09-19  5:14       ` [Alt. PATCH " Nguyễn Thái Ngọc Duy
2015-09-21 16:19         ` Junio C Hamano

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