From: David Bryson <david@statichacks.org>
To: Jean-Luc Herren <jlh@gmx.ch>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Bad git status performance
Date: Thu, 20 Nov 2008 16:42:42 -0800 [thread overview]
Message-ID: <20081121004242.GD6458@eratosthenes.cryptobackpack.org> (raw)
In-Reply-To: <4926009E.4040203@gmx.ch>
Hi,
On Fri, Nov 21, 2008 at 01:28:14AM +0100 or thereabouts, Jean-Luc Herren wrote:
> Hi list!
>
> I'm getting bad performance on 'git status' when I have staged
> many changes to big files. For example, consider this:
>
[snip]
> $ time git status
> # On branch master
> # Changes to be committed:
> # (use "git reset HEAD <file>..." to unstage)
> #
> # modified: 1
> # modified: 10
> ...
> # modified: 98
> # modified: 99
> #
>
> real 0m16.291s
> user 0m16.054s
> sys 0m0.221s
>
> The first 'git status' shows the same difference as the second,
> just the second time it's staged instead of unstaged. Why does it
> take 16 seconds the second time when it's instant the first time?
I had similar problems with a repository that contained several tarballs
of gcc and the linux kernel(don't ask me why it was not my repository).
Some weeks ago I mentioned this on IRC, and the problem really was not
necessarily git. The way it was explained to me(and please correct or
clairify where I am wrong) is that git asked linux for the status of
those files and being that they are so large they were swapped out of
memory.
The result is the kernel reading those large files back in to see if
they have changed at all. My impression is that this is not a git bug
but a cache-tuning problem.
Dave
next prev parent reply other threads:[~2008-11-21 0:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 0:28 Bad git status performance Jean-Luc Herren
2008-11-21 0:42 ` David Bryson [this message]
[not found] ` <c9e534200811201711y887ddd2t33013ec4a7db3c9a@mail.gmail.com>
2008-11-21 12:46 ` Jean-Luc Herren
2008-11-21 15:19 ` Michael J Gruber
2008-11-21 20:07 ` Jean-Luc Herren
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=20081121004242.GD6458@eratosthenes.cryptobackpack.org \
--to=david@statichacks.org \
--cc=git@vger.kernel.org \
--cc=jlh@gmx.ch \
/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).