git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Huge pack file from small unpacked objects
       [not found] <404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net>
@ 2009-12-16 16:34 ` Nick Triantos
  2009-12-22  8:54   ` B Smith-Mannschott
  2009-12-22  6:19 ` Nick Triantos
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Triantos @ 2009-12-16 16:34 UTC (permalink / raw)
  To: 'git@vger.kernel.org'

Hi,

I recently created a repo from SVN via git-svn.  The bare repo was about ~600MB.  I cloned it, and on the clone, I added 2 small files (.gitignore and .gitattributes) to a branch, merged them to master, and pushed that back to the origin.  The cloned repo remains at about 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I found that it created a file in objects/pack which accounts for this huge size.

I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.

Any ideas why the pack file is so huge?  Anything I can do to shrink it?  My coworkers are understandably unhappy that the repo is so huge now (makes for very slow pulls)

thanks,
-Nick

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

* Huge pack file from small unpacked objects
       [not found] <404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net>
  2009-12-16 16:34 ` Huge pack file from small unpacked objects Nick Triantos
@ 2009-12-22  6:19 ` Nick Triantos
  2009-12-22 17:41   ` Nicolas Pitre
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Triantos @ 2009-12-22  6:19 UTC (permalink / raw)
  To: 'git@vger.kernel.org'

Hi,

(re-sending.. I'm not sure if my last send made it to the list, I got a bounce because it had HTML.)

I recently created a repo from SVN via git-svn.  The bare repo was about ~600MB.  I cloned it, and on the clone, I added 2 small files (.gitignore and .gitattributes) to a branch, merged them to master, and pushed that back to the origin.  The cloned repo remains at about 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I found that it created a file in objects/pack which accounts for this huge size.

I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.

Any ideas why the pack file is so huge?  Anything I can do to shrink it?  My coworkers are understandably unhappy that the repo is so huge now (makes for very slow pulls)

thanks,
-Nick

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

* Re: Huge pack file from small unpacked objects
  2009-12-16 16:34 ` Huge pack file from small unpacked objects Nick Triantos
@ 2009-12-22  8:54   ` B Smith-Mannschott
  2009-12-22 18:04     ` Nick Triantos
  0 siblings, 1 reply; 6+ messages in thread
From: B Smith-Mannschott @ 2009-12-22  8:54 UTC (permalink / raw)
  To: Nick Triantos; +Cc: git@vger.kernel.org

On Wed, Dec 16, 2009 at 17:34, Nick Triantos <nick@perceptivepixel.com> wrote:
> Hi,
>
> I recently created a repo from SVN via git-svn.  The bare repo was about ~600MB.  I cloned it, and on the clone, I added 2 small files (.gitignore and .gitattributes) to a branch, merged them to master, and pushed that back to the origin.  The cloned repo remains at about 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I found that it created a file in objects/pack which accounts for this huge size.
>
> I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.
>
> Any ideas why the pack file is so huge?  Anything I can do to shrink it?  My coworkers are understandably unhappy that the repo is so huge now (makes for very slow pulls)

Have you tried "git prune"?

// Ben

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

* Re: Huge pack file from small unpacked objects
  2009-12-22  6:19 ` Nick Triantos
@ 2009-12-22 17:41   ` Nicolas Pitre
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Pitre @ 2009-12-22 17:41 UTC (permalink / raw)
  To: Nick Triantos; +Cc: 'git@vger.kernel.org'

[-- Attachment #1: Type: TEXT/PLAIN, Size: 727 bytes --]

On Tue, 22 Dec 2009, Nick Triantos wrote:

> I recently created a repo from SVN via git-svn.  The bare repo was 
> about ~600MB.  I cloned it, and on the clone, I added 2 small files 
> (.gitignore and .gitattributes) to a branch, merged them to master, 
> and pushed that back to the origin.  The cloned repo remains at about 
> 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I 
> found that it created a file in objects/pack which accounts for this 
> huge size.
> 
> I've tried running 'git repack -a -d' but that didn't shrink the size 
> of this pack file.

This is rather weird.

Any chance the original repository could be downloaded somewhere in 
order to attempt reproducing this issue?


Nicolas

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

* RE: Huge pack file from small unpacked objects
  2009-12-22  8:54   ` B Smith-Mannschott
@ 2009-12-22 18:04     ` Nick Triantos
  2009-12-22 18:11       ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Triantos @ 2009-12-22 18:04 UTC (permalink / raw)
  To: B Smith-Mannschott; +Cc: git@vger.kernel.org

I've tried running 'git gc' (which should be pruning) and that hasn't helped.

Is there an easy way to unpack the pack file and see what's inside (including sizes)?

thanks,
-Nick

-----Original Message-----
From: B Smith-Mannschott [mailto:bsmith.occs@gmail.com] 
Sent: Tuesday, December 22, 2009 12:55 AM
To: Nick Triantos
Cc: git@vger.kernel.org
Subject: Re: Huge pack file from small unpacked objects

On Wed, Dec 16, 2009 at 17:34, Nick Triantos <nick@perceptivepixel.com> wrote:
> Hi,
>
> I recently created a repo from SVN via git-svn.  The bare repo was about ~600MB.  I cloned it, and on the clone, I added 2 small files (.gitignore and .gitattributes) to a branch, merged them to master, and pushed that back to the origin.  The cloned repo remains at about 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I found that it created a file in objects/pack which accounts for this huge size.
>
> I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.
>
> Any ideas why the pack file is so huge?  Anything I can do to shrink it?  My coworkers are understandably unhappy that the repo is so huge now (makes for very slow pulls)

Have you tried "git prune"?

// Ben

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

* Re: Huge pack file from small unpacked objects
  2009-12-22 18:04     ` Nick Triantos
@ 2009-12-22 18:11       ` Junio C Hamano
  0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2009-12-22 18:11 UTC (permalink / raw)
  To: Nick Triantos; +Cc: B Smith-Mannschott, git@vger.kernel.org

Nick Triantos <nick@perceptivepixel.com> writes:

> Is there an easy way to unpack the pack file and see what's inside (including sizes)?

Unpack?

    (mkdir /var/tmp/junk &&
     cd /var/tmp/junk &&
     git init && git unpack-objects) <.git/objects/pack/pack-$that_one.pack

It might also be interesting to see

    git verify-pack -v .git/objects/pack/pack-$that_one.pack

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

end of thread, other threads:[~2009-12-22 18:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net>
2009-12-16 16:34 ` Huge pack file from small unpacked objects Nick Triantos
2009-12-22  8:54   ` B Smith-Mannschott
2009-12-22 18:04     ` Nick Triantos
2009-12-22 18:11       ` Junio C Hamano
2009-12-22  6:19 ` Nick Triantos
2009-12-22 17:41   ` Nicolas Pitre

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