Re: [git-users] Out of memory while cloning large (cca. 48000 commits) SVN repo

2014-04-29 Thread Dale R. Worley
> Do you have insanely huge files somewhere in those commits?
> I'm speculating that the sole number of commits should not affect Git
> that much but huge files *could* -- due to it using the xdelta
> compression when packing files (which, in turn, in typical builds uses
> memory mapping).

You might want to check the various config parameters to see if that
reduces memory usage.  I've used pack.packSizeLimit = 1g.

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Out of memory while cloning large (cca. 48000 commits) SVN repo

2014-04-29 Thread Gergely Polonkai
No files this big (I have 8GB of RAM, about 5 available at the time), nor
close. To be somewhat precise, the biggest file I found is below 100MB,
although this is the current (latest) version. I will check the commit that
resulted in the error if that may contain one, and come back with the
result in the evening (CEST).
On 29 Apr 2014 12:32, "Konstantin Khomoutov" 
wrote:

> On Mon, 28 Apr 2014 21:16:40 +0200
> Gergely Polonkai  wrote:
>
> > I’m trying to clone an SVN repository with around 48000 revisions,
> > several branches and tags (svn://svn.zabbix.com). After a few
> > thousands commits, Git failed (complaining something about sed, I
> > haven’t wrote that down), so I svnrdumped the whole repository onto my
> > filesystem.
> >
> > After that, I used this command:
> >
> > git svn clone -s --prefix=origin/ file://`pwd`/zabbix-svn zabbix-git/
> >
> > to dump all the repo into a new Git repository. It ran for around 24
> > hours to report an Out of memory error at the end. Although I realised
> > since then that this is a somewhat bad idea, but I still don’t think
> > it should happen this way. Or should it?
>
> Do you have insanely huge files somewhere in those commits?
> I'm speculating that the sole number of commits should not affect Git
> that much but huge files *could* -- due to it using the xdelta
> compression when packing files (which, in turn, in typical builds uses
> memory mapping).
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Out of memory while cloning large (cca. 48000 commits) SVN repo

2014-04-29 Thread Konstantin Khomoutov
On Mon, 28 Apr 2014 21:16:40 +0200
Gergely Polonkai  wrote:

> I’m trying to clone an SVN repository with around 48000 revisions,
> several branches and tags (svn://svn.zabbix.com). After a few
> thousands commits, Git failed (complaining something about sed, I
> haven’t wrote that down), so I svnrdumped the whole repository onto my
> filesystem.
> 
> After that, I used this command:
> 
> git svn clone -s --prefix=origin/ file://`pwd`/zabbix-svn zabbix-git/
> 
> to dump all the repo into a new Git repository. It ran for around 24
> hours to report an Out of memory error at the end. Although I realised
> since then that this is a somewhat bad idea, but I still don’t think
> it should happen this way. Or should it?

Do you have insanely huge files somewhere in those commits?
I'm speculating that the sole number of commits should not affect Git
that much but huge files *could* -- due to it using the xdelta
compression when packing files (which, in turn, in typical builds uses
memory mapping).

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Out of memory while cloning large (cca. 48000 commits) SVN repo

2014-04-28 Thread Dale R. Worley
> From: Gergely Polonkai 

> to dump all the repo into a new Git repository. It ran for around 24
> hours to report an Out of memory error at the end. Although I realised
> since then that this is a somewhat bad idea, but I still don’t think
> it should happen this way. Or should it?

It looks like some data structure is kept in memory, and that data
structure grows very large when cloning/converting your repository.

In a perfect world, the Git code would be improved to allow the data
structure to be put on disk.  But in order to finish your task, the
fastest solution is probably to add a large swap file/partition to
your system temporarily, and then run the process again.

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Out of memory while cloning large (cca. 48000 commits) SVN repo

2014-04-28 Thread Gergely Polonkai
Hello,

I’m trying to clone an SVN repository with around 48000 revisions,
several branches and tags (svn://svn.zabbix.com). After a few
thousands commits, Git failed (complaining something about sed, I
haven’t wrote that down), so I svnrdumped the whole repository onto my
filesystem.

After that, I used this command:

git svn clone -s --prefix=origin/ file://`pwd`/zabbix-svn zabbix-git/

to dump all the repo into a new Git repository. It ran for around 24
hours to report an Out of memory error at the end. Although I realised
since then that this is a somewhat bad idea, but I still don’t think
it should happen this way. Or should it?

Best,
Gergely

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.