From: Gelonida N <gelonida@gmail.com>
To: git@vger.kernel.org
Subject: Re: git slow over https
Date: Fri, 28 Oct 2011 22:07:48 +0200 [thread overview]
Message-ID: <j8f22l$b2h$1@dough.gmane.org> (raw)
In-Reply-To: <CAOs=hR+K_YZcjdAUq_jaz0wc9k8BRQ2-ny7A=GFaNL4R-W0UBw@mail.gmail.com>
On 10/28/2011 05:28 PM, Mika Fischer wrote:
> Hi,
>
> I have an apache server that serves git repositories over https. I
> have the problem that git is very slow when accessing it, as in 3
> seconds for a "git pull" that does nothing.
>
> I tracked the problem down to git sleeping for 50ms using select from
> time to time while downloading the response of the server. In my case
> this really hurts performance (see attached strace). However, with a
> different https server things work quite fine.
>
> If I remove the select in http.c:673 (in run_active_slot), then things
> are fast also with my server.
>
> So my questions are:
> 1) What's the purpose of the select in http.c:673? Can it be removed?
> 2) If it serves a useful purpose, what can be the reason that it hurts
> performance so much in my case?
>
Do you edperience the same delay if you ssh to the server?
If yes, then try to add following line to the slow https server's config
file.
UseDNS no
The config file should have a name similair to
/etc/ssh/sshd_config
Is it getting any faster?
prev parent reply other threads:[~2011-10-28 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 15:28 git slow over https Mika Fischer
2011-10-28 18:28 ` Daniel Stenberg
2011-10-29 15:15 ` Mika Fischer
2011-10-28 20:07 ` Gelonida N [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='j8f22l$b2h$1@dough.gmane.org' \
--to=gelonida@gmail.com \
--cc=git@vger.kernel.org \
/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.
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).