Re: git-svnimport failed and now git-repack hates me
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Jan 7, 2007, 00:36 UTC
- Message-ID
- <20070107003654.GA12551@localdomain>
- In-Reply-To
- <Pine.LNX.4.64.0701051414140.14017@blackbox.fnordora.org>
alan <alan@clueserver.org> wrote:
Show 10 quoted lines
> I am trying to import a subversion repository and have yet to be able to > suck down the whole thing without segfaulting. It is a large repository. > Works fine until about the last 10% and then runs out of memory. > > open3: fork failed: Cannot allocate memory at /usr/bin/git-svn line 2711 > 512 at /usr/bin/git-svn line 446 > main::fetch_lib() called at /usr/bin/git-svn line 314 > main::fetch() called at /usr/bin/git-svn line 173 > > I need to try the "partial download" script and see if that helps.
Which version of git-svn is this? If it's a public repository I'd like to have a look.
git-svn memory usage should be bounded by: max(max(commit-message size), max(number of files changed per revision))
I'm not sure if the size of the files changed per-revision or if the size of the deltas is an issue with git-svn. But if you have a repo with big files and big changes to them, let me know so I can take a look.
Can you also try lowering $inc in git-svn to something lower (perhaps 100)? (my $inc = 1000; in the fetch_lib function) and see if that helps things? Thanks.
-- Eric Wong