* git-svn clone -- runs out of memory
@ 2010-05-19 5:51 Jack Moore
2010-05-19 16:33 ` Ævar Arnfjörð Bjarmason
0 siblings, 1 reply; 2+ messages in thread
From: Jack Moore @ 2010-05-19 5:51 UTC (permalink / raw)
To: git; +Cc: Jack Moore
I'm trying to transition from subversion to git. I have a very poorly structured subversion repository. It has multiple (dozens) copies of many (thousands) of binary files that don't change from version to version. When I "git-svn clone" the repository it takes about 30 hour (yes hours) to (appears to) retrieve the files. Then git goes into either a packing or garbage collecting phase and eventually runs out of memory. I get an error relating to "mmap ... out of memory". When it runs out of memory the "cloned" repository is ~2.4 GBi.
I don't know what files it's failing on. I've tried excluding the directories that contain the binary files. Does anyone have suggestions on isolating the problem or working around the memory limitation?
Thanks
Jack
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git-svn clone -- runs out of memory
2010-05-19 5:51 git-svn clone -- runs out of memory Jack Moore
@ 2010-05-19 16:33 ` Ævar Arnfjörð Bjarmason
0 siblings, 0 replies; 2+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-05-19 16:33 UTC (permalink / raw)
To: Jack Moore; +Cc: git
On Wed, May 19, 2010 at 05:51, Jack Moore <jhmoore719@verizon.net> wrote:
> When I "git-svn clone" the repository it takes about 30 hour (yes
> hours) to (appears to) retrieve the files.
That's relatively short actually with git-svn. I've taken 3 weeks to
clone one large (~70k revisions + lots of branches) repository, and
that was via local file:// access.
> Then git goes into either a packing or garbage collecting phase and
> eventually runs out of memory. I get an error relating to "mmap
> ... out of memory". When it runs out of memory the "cloned"
> repository is ~2.4 GBi.
This could be one of a few things:
* git-svn leaks *lots* of memory.
The solution is to just kill it and restart it every few
hours. After it's killed run `git svn fetch`. You should be doing
this anyway on any clone that takes >1 hour, aside from leaking
memory it gets a lot slower.
* The known problem with some git utilities doing things in-memory.
If that's the case the solution is to just add lots of swap (or
patch the core).
* Something I'm forgetting
In any case, run it with GIT_TRACE=1 so you can see what command is
the one that failed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-19 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19 5:51 git-svn clone -- runs out of memory Jack Moore
2010-05-19 16:33 ` Ævar Arnfjörð Bjarmason
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).