Re: [RFC] repack vs re-clone

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marco Costalba <mcostalba@...>
Cc: gi mailing list <git@...>
Date: Sunday, February 10, 2008 - 4:50 pm

On Sun, 10 Feb 2008, Marco Costalba wrote:


No.  I really doubt the public Linux repository is compressed with 
anything but the default repack settings.

And on my average PC by today's standards (P4 @ 3GHz with 1GB memory), 
repacking the Linux repo takes less than 6.5 minutes, and peak RSS is 
around 450MB.


Only if you're lucky to have a fast connection to the net with a high 
transfer quota.


If such is your case, why would you fully repack your repo in the first 
place?  Simply running 'git gc' should be quite good enough for people 
uninterested in the "advanced" stuff.  The repack that 'git gc' uses 
will happily reuse existing packed data from upstream.




You can already query the remote repository directory listing and figure 
it out.  For example:

lftp -c 'open http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack && ls'

And you'll note that even upstream isn't always fully packed in advance.


I think that would be a very bad idea.  Not only this is rather 
unnecessary (either you can aford to repack locally, or you live with 
the upstream provided packing and repack incrementally which is pretty 
good enough), but it is also really bad resource wise (that'll end up 
only wasting net bandwitdh and CPU cycles on the server).


Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] repack vs re-clone, Marco Costalba, (Sun Feb 10, 4:25 am)
Re: [RFC] repack vs re-clone, Jakub Narebski, (Mon Feb 11, 2:45 pm)
Re: [RFC] repack vs re-clone, Nicolas Pitre, (Mon Feb 11, 3:40 pm)
Re: [RFC] repack vs re-clone, Jakub Narebski, (Mon Feb 11, 3:53 pm)
Re: [RFC] repack vs re-clone, Marco Costalba, (Mon Feb 11, 3:20 pm)
Re: [RFC] repack vs re-clone, Jakub Narebski, (Mon Feb 11, 3:51 pm)
Re: [RFC] repack vs re-clone, Nicolas Pitre, (Mon Feb 11, 4:44 pm)
Re: [RFC] repack vs re-clone, Johannes Schindelin, (Mon Feb 11, 3:50 pm)
Re: [RFC] repack vs re-clone, Nicolas Pitre, (Sun Feb 10, 4:50 pm)