{"thread":{"id":"21969","subject":"RE: Huge pack file from small unpacked objects","startedAt":"2009-12-16T16:34:43Z","lastAt":"2009-12-22T18:11:15Z","messageCount":6,"participants":["Nick Triantos","B Smith-Mannschott","Nicolas Pitre","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"129993","messageId":"75B8C0BEE0AE2A44AA971D218D9FE99E3DD8C61C@VMBX125.ihostexchange.net","threadId":"21969","inReplyTo":"404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net","subject":"RE: Huge pack file from small unpacked objects","fromName":"Nick Triantos","fromEmail":"nick@perceptivepixel.com","sentAt":"2009-12-16T16:34:43Z","receivedAt":"2009-12-16T16:34:43Z","isPatch":false,"sender":{"key":"nick@perceptivepixel.com","avatar":null},"body":"Hi,\n\nI 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.\n\nI've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.\n\nAny 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)\n\nthanks,\n-Nick\n"},{"id":"130229","messageId":"75B8C0BEE0AE2A44AA971D218D9FE99E6B06F030@VMBX125.ihostexchange.net","threadId":"21969","inReplyTo":"404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net","subject":"Huge pack file from small unpacked objects","fromName":"Nick Triantos","fromEmail":"nick@perceptivepixel.com","sentAt":"2009-12-22T06:19:39Z","receivedAt":"2009-12-22T06:19:39Z","isPatch":false,"sender":{"key":"nick@perceptivepixel.com","avatar":null},"body":"Hi,\n\n(re-sending.. I'm not sure if my last send made it to the list, I got a bounce because it had HTML.)\n\nI 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.\n\nI've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.\n\nAny 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)\n\nthanks,\n-Nick\n"},{"id":"130234","messageId":"28c656e20912220054qc7b6497t79e135c913865c22@mail.gmail.com","threadId":"21969","inReplyTo":"75B8C0BEE0AE2A44AA971D218D9FE99E3DD8C61C@VMBX125.ihostexchange.net","subject":"Re: Huge pack file from small unpacked objects","fromName":"B Smith-Mannschott","fromEmail":"bsmith.occs@gmail.com","sentAt":"2009-12-22T08:54:40Z","receivedAt":"2009-12-22T08:54:40Z","isPatch":false,"sender":{"key":"bsmith.occs@gmail.com","avatar":"https://gravatar.com/avatar/46449e07c27bb8a30e4d50c08859f7210d47f6e84526b0a3b903641231dfc1bd?d=mp&s=160"},"body":"On Wed, Dec 16, 2009 at 17:34, Nick Triantos <nick@perceptivepixel.com> wrote:\n> Hi,\n>\n> 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.\n>\n> I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.\n>\n> 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)\n\nHave you tried \"git prune\"?\n\n// Ben\n"},{"id":"130245","messageId":"alpine.LFD.2.00.0912221238180.28241@xanadu.home","threadId":"21969","inReplyTo":"75B8C0BEE0AE2A44AA971D218D9FE99E6B06F030@VMBX125.ihostexchange.net","subject":"Re: Huge pack file from small unpacked objects","fromName":"Nicolas Pitre","fromEmail":"nico@fluxnic.net","sentAt":"2009-12-22T17:41:07Z","receivedAt":"2009-12-22T17:41:07Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Tue, 22 Dec 2009, Nick Triantos wrote:\n\n> I recently created a repo from SVN via git-svn.  The bare repo was \n> about ~600MB.  I cloned it, and on the clone, I added 2 small files \n> (.gitignore and .gitattributes) to a branch, merged them to master, \n> and pushed that back to the origin.  The cloned repo remains at about \n> 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I \n> found that it created a file in objects/pack which accounts for this \n> huge size.\n> \n> I've tried running 'git repack -a -d' but that didn't shrink the size \n> of this pack file.\n\nThis is rather weird.\n\nAny chance the original repository could be downloaded somewhere in \norder to attempt reproducing this issue?\n\n\nNicolas\n"},{"id":"130246","messageId":"75B8C0BEE0AE2A44AA971D218D9FE99E6B06F111@VMBX125.ihostexchange.net","threadId":"21969","inReplyTo":"28c656e20912220054qc7b6497t79e135c913865c22@mail.gmail.com","subject":"RE: Huge pack file from small unpacked objects","fromName":"Nick Triantos","fromEmail":"nick@perceptivepixel.com","sentAt":"2009-12-22T18:04:10Z","receivedAt":"2009-12-22T18:04:10Z","isPatch":false,"sender":{"key":"nick@perceptivepixel.com","avatar":null},"body":"I've tried running 'git gc' (which should be pruning) and that hasn't helped.\n\nIs there an easy way to unpack the pack file and see what's inside (including sizes)?\n\nthanks,\n-Nick\n\n-----Original Message-----\nFrom: B Smith-Mannschott [mailto:bsmith.occs@gmail.com] \nSent: Tuesday, December 22, 2009 12:55 AM\nTo: Nick Triantos\nCc: git@vger.kernel.org\nSubject: Re: Huge pack file from small unpacked objects\n\nOn Wed, Dec 16, 2009 at 17:34, Nick Triantos <nick@perceptivepixel.com> wrote:\n> Hi,\n>\n> 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.\n>\n> I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.\n>\n> 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)\n\nHave you tried \"git prune\"?\n\n// Ben\n"},{"id":"130248","messageId":"7veimm3mm4.fsf@alter.siamese.dyndns.org","threadId":"21969","inReplyTo":"75B8C0BEE0AE2A44AA971D218D9FE99E6B06F111@VMBX125.ihostexchange.net","subject":"Re: Huge pack file from small unpacked objects","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-12-22T18:11:15Z","receivedAt":"2009-12-22T18:11:15Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nick Triantos <nick@perceptivepixel.com> writes:\n\n> Is there an easy way to unpack the pack file and see what's inside (including sizes)?\n\nUnpack?\n\n    (mkdir /var/tmp/junk &&\n     cd /var/tmp/junk &&\n     git init && git unpack-objects) <.git/objects/pack/pack-$that_one.pack\n\nIt might also be interesting to see\n\n    git verify-pack -v .git/objects/pack/pack-$that_one.pack\n"}]}