All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: git gc expanding packed data?
@ 2009-08-08  1:11 Andreas Schwab
  2009-08-08 13:05 ` Hin-Tak Leung
  2009-08-09  2:56 ` Nicolas Pitre
  0 siblings, 2 replies; 33+ messages in thread
From: Andreas Schwab @ 2009-08-08  1:11 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Hin-Tak Leung, git

Nicolas Pitre <nico@cam.org> writes:

> It appears that the git installation serving clone requests for
> git://gcc.gnu.org/git/gcc.git generates lots of unreferenced objects. I
> just cloned it and the pack I was sent contains 1383356 objects (can be
> determined with 'git show-index < .git/objects/pack/*.idx | wc -l').
> However, there are only 978501 actually referenced objects in that
> cloned repository ( 'git rev-list --all --objects | wc -l').  That makes
> for 404855 useless objects in the cloned repository.

Those objects are not useless.  They are referenced by the remote refs
on the remote side, which are not fetched by default.  If you clone a
mirror of the repository you'll see no unreferenced objects.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 33+ messages in thread
* git gc expanding packed data?
@ 2009-08-04 20:25 Hin-Tak Leung
  2009-08-05 22:39 ` Nicolas Pitre
  0 siblings, 1 reply; 33+ messages in thread
From: Hin-Tak Leung @ 2009-08-04 20:25 UTC (permalink / raw)
  To: git

I cloned gcc's git about a week ago to work on some problems I have
with gcc on minor platforms, just plain 'git clone
git://gcc.gnu.org/git/gcc.git gcc' .and ran gcc fetch about daily, and
'git rebase origin' from time to time. I don't have local changes,
just following and monitoring what's going on in gcc. So after a week,
I thought I'd do a git gc . Then it goes very bizarre.

Before I start 'git gc', .The whole of .git was about 700MB and
git/objects/pack was a bit under 600MB, with a few other directories
under .git/objects at 10's of K's and a few 30000-40000K's, and the
checkout was, well, the size of gcc source code. But after I started
git gc, the message stays in the 'counting objects' at about 900,000
for a long time, while a lot of directories under .git/objects/ gets a
bit large, and .git blows up to at least 7GB with a lot of small files
under .git/objects/*/, before seeing as I will run out of disk space,
I kill the whole lot and ran git clone again, since I don't have any
local change and there is nothing to lose.

I am running git version 1.6.2.5 (fedora 11). Is there any reason why
'git gc' does that?

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

end of thread, other threads:[~2009-09-28  4:18 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-08  1:11 git gc expanding packed data? Andreas Schwab
2009-08-08 13:05 ` Hin-Tak Leung
2009-08-08 13:25   ` Andreas Schwab
2009-08-09  2:56 ` Nicolas Pitre
2009-08-09  7:43   ` Andreas Schwab
2009-09-25 18:05     ` git clone sending unneeded objects (was : git gc expanding packed data?) Jason Merrill
2009-09-25 19:34       ` git clone sending unneeded objects Matthieu Moy
2009-09-25 19:43         ` Jason Merrill
2009-09-25 19:53         ` Nicolas Pitre
2009-09-25 20:20           ` Jason Merrill
2009-09-25 20:47             ` Nicolas Pitre
2009-09-25 23:17               ` Jason Merrill
2009-09-26  0:49                 ` Nicolas Pitre
2009-09-26  3:54                   ` [PATCH] make 'git clone' ask the remote only for objects it cares about Nicolas Pitre
2009-09-26  7:21                     ` Andreas Schwab
2009-09-26 19:50                     ` Shawn O. Pearce
2009-09-27  0:26                       ` Nicolas Pitre
2009-09-26  4:44                 ` git clone sending unneeded objects Jason Merrill
2009-09-26 13:33                   ` Jason Merrill
2009-09-27  2:26                     ` Nicolas Pitre
2009-09-27  1:27                   ` Nicolas Pitre
2009-09-27  2:04                     ` Shawn O. Pearce
2009-09-27  2:31                       ` Nicolas Pitre
2009-09-27  4:35                       ` Jason Merrill
2009-09-28  4:18                         ` Nicolas Pitre
2009-09-26  0:43             ` Hin-Tak Leung
  -- strict thread matches above, loose matches on Subject: below --
2009-08-04 20:25 git gc expanding packed data? Hin-Tak Leung
2009-08-05 22:39 ` Nicolas Pitre
2009-08-11 10:17   ` Hin-Tak Leung
2009-08-11 21:33     ` Nicolas Pitre
2009-08-12 14:45       ` Hin-Tak Leung
2009-08-12 15:35         ` Nicolas Pitre
2009-08-13 17:31           ` Hin-Tak Leung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.