git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hg-to-git performance on big repos
@ 2008-03-22 13:34 Fedor V. Sergeev
  2008-03-22 14:27 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Fedor V. Sergeev @ 2008-03-22 13:34 UTC (permalink / raw)
  To: git

Folks,

I'm trying to convert a relatively big Mercurial repo (70K commits) into Git using
contrib/hg-to-git.
It initially goes fine but starts to slow down nearly exponentially as the
number of converted changesets goes up.

git-fast-import seems to just hang around, while all the work (100% cpu)
is spent in that python thing. It does not eat up memory, pstack looks
fine, but after some 10K commits it just crawls.

It did not finish in 2 days and after that machine got a power down :(

Can anybody tell me is this normal or what?

thanks in advance,
  Fedor.
P.S. Yeah, if that does matter I'm doing it on OpenSolaris ;)

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

* Re: hg-to-git performance on big repos
  2008-03-22 13:34 hg-to-git performance on big repos Fedor V. Sergeev
@ 2008-03-22 14:27 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2008-03-22 14:27 UTC (permalink / raw)
  To: Fedor V. Sergeev; +Cc: git

On Sat, Mar 22, 2008 at 04:34:22PM +0300, Fedor V. Sergeev wrote:
> Folks,
> 
> I'm trying to convert a relatively big Mercurial repo (70K commits)
> into Git using contrib/hg-to-git.  It initially goes fine but starts
> to slow down nearly exponentially as the number of converted
> changesets goes up.
> 
> git-fast-import seems to just hang around, while all the work (100% cpu)
> is spent in that python thing. It does not eat up memory, pstack looks
> fine, but after some 10K commits it just crawls.

I don't know if it will be better, but at the time when I needed to
convert e2fsprogs, I liked the results of hg-fast-export, found at:

        url = git://repo.or.cz/fast-export.git

You might hg-fast-import and see if it does any better for your repo.

Does it have a large number of branches or tags, by any chance?

     	       	     	       		   	 - Ted

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

end of thread, other threads:[~2008-03-22 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-22 13:34 hg-to-git performance on big repos Fedor V. Sergeev
2008-03-22 14:27 ` Theodore Tso

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).