From: Nick Dokos <nicholas.dokos@hp.com>
To: Jason Dunsmore <jasondunsmore@gmail.com>
Cc: Bernt Hansen <bernt@norang.ca>, emacs-orgmode@gnu.org
Subject: Re: git repository via http broken
Date: Fri, 29 Jun 2012 13:50:02 -0400 [thread overview]
Message-ID: <17195.1340992202@alphaville> (raw)
In-Reply-To: Message from Jason Dunsmore <jasondunsmore@gmail.com> of "Fri, 29 Jun 2012 11:49:45 CDT." <87k3yqvz9y.fsf@riotcharge.dunsmor.com>
Jason Dunsmore <jasondunsmore@gmail.com> 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
next prev parent reply other threads:[~2012-06-29 17:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 12:24 git repository via http broken Jakob Lombacher
2012-06-26 15:14 ` Bernt Hansen
2012-06-26 15:20 ` Bernt Hansen
2012-06-26 15:47 ` suvayu ali
2012-06-26 21:30 ` Jakob Lombacher
2012-06-26 22:05 ` Nick Dokos
2012-06-27 0:46 ` Nick Dokos
2012-06-27 6:12 ` Jakob Lombacher
2012-06-29 16:49 ` Jason Dunsmore
2012-06-29 17:50 ` Nick Dokos [this message]
2012-06-26 23:37 ` Bernt Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17195.1340992202@alphaville \
--to=nicholas.dokos@hp.com \
--cc=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=jasondunsmore@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).