emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] git repository via http broken


From: Nick Dokos
Subject: Re: [O] git repository via http broken
Date: Fri, 29 Jun 2012 13:50:02 -0400

Jason Dunsmore <address@hidden> wrote:

> On Tue, Jun 26 2012, Nick Dokos wrote:
> 
> > PS BTW, I know that git gc is recommended on local repos, but is that
> >    applicable to the repo on orgmode.org? and would that help with the
> >    cloning time?  2.5 mins seems long to me. If not gc, is there
> >    something else that would help?
> 
> Hi Nick,
> 
> It looks like "git gc" was needed on the server.
> 
> Before git gc on server:
> 
> $ time git clone git://orgmode.org/org-mode.git
> Cloning into org-mode...
> remote: Counting objects: 62414, done.                     <- Server disk I/O 
> bottleneck
> remote: Compressing objects: 100% (18532/18532), done.     <- Server CPU 
> bottleneck
> remote: Total 62414 (delta 49455), reused 55032 (delta 43761)
> Receiving objects: 100% (62414/62414), 55.46 MiB | 1.16 MiB/s, done.  <- 
> Network bottleneck
> Resolving deltas: 100% (49455/49455), done.                <- Local CPU 
> bottleneck
> 
> real2m44.757s
> user0m11.269s
> sys0m0.740s
> 
> After git gc on server:
> 
> $ time git clone git://orgmode.org/org-mode.git
> Cloning into org-mode...
> remote: Counting objects: 62414, done.        
> remote: Compressing objects: 100% (12836/12836), done.        
> remote: Total 62414 (delta 49457), reused 62414 (delta 49457)        
> Receiving objects: 100% (62414/62414), 55.41 MiB | 1.12 MiB/s, done.
> Resolving deltas: 100% (49457/49457), done.
> 
> real0m59.071s
> user0m11.305s
> sys0m0.668s
> 

That's a pretty good speed-up! I tried the same with http just now and got:

$ time git clone http://orgmode.org/org-mode.git
Cloning into org-mode...

real    3m30.619s
user    0m10.970s
sys     0m0.750s

so it improved on the 5 mins I was getting before by roughly 35%.

My git time was pretty bad though (4.5 mins): I suspect clogging on the
link to my ISP, so both of these numbers are probably suspect. I'll try
again later tonight and see what I get.

> I've set up a weekly cron job to run "git gc" on the org-mode repo.
> 

Great!

Thanks,
Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]