All of lore.kernel.org
 help / color / mirror / Atom feed
* very slow "git gc --aggressive" in GIT-1.6.4.4
@ 2009-09-18 19:23 Leo Razoumov
  2009-09-18 19:56 ` Michael Andreen
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Razoumov @ 2009-09-18 19:23 UTC (permalink / raw)
  To: Git Mailing List

I noticed that "git gc --agressive" takes 5 times longer with
git-1.6.4.4 than with git-1.6.2.5.

Below are benchmarks on my Linux Ubuntu-9.04 laptop (Core2 Duo 2.54GHz).
As a test repo I use a mirror of the official GIT upstream.

GIT-v1.6.4.4
-----------------
git.upstream> time git gc --agressive
Counting objects: 105217, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (103507/103507), done.
Writing objects: 100% (105217/105217), done.
Total 105217 (delta 77228), reused 0 (delta 0)
git gc --aggressive  168.31s user 0.58s system 180% cpu 1:33.52 total

GIT-1.6.2.5.LR1
---------------------
git.upstream> time git gc --aggressive
Counting objects: 105217, done.
Delta compression using 2 threads.
Compressing objects: 100% (103507/103507), done.
Writing objects: 100% (105217/105217), done.
Total 105217 (delta 76235), reused 0 (delta 0)
git gc --aggressive  30.97s user 0.48s system 141% cpu 22.177 total
==========================================

168 seconds for git-1.6.4.4 versus 22 seconds for git-1.6.2.5.

What gives?

--Leo--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: very slow "git gc --aggressive" in GIT-1.6.4.4
  2009-09-18 19:23 very slow "git gc --aggressive" in GIT-1.6.4.4 Leo Razoumov
@ 2009-09-18 19:56 ` Michael Andreen
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Andreen @ 2009-09-18 19:56 UTC (permalink / raw)
  To: SLONIK.AZ; +Cc: Git Mailing List

On Friday 18 September 2009 21:23:59 Leo Razoumov wrote:
> I noticed that "git gc --agressive" takes 5 times longer with
> git-1.6.4.4 than with git-1.6.2.5.
> 
> Below are benchmarks on my Linux Ubuntu-9.04 laptop (Core2 Duo 2.54GHz).
> As a test repo I use a mirror of the official GIT upstream.

git-1.6.3 and later changed the settings for --aggressive to window=250 and 
depth=250, which produces a tighter pack. The earlier setting wasn't really 
aggressive.

/Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-18 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 19:23 very slow "git gc --aggressive" in GIT-1.6.4.4 Leo Razoumov
2009-09-18 19:56 ` Michael Andreen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.