git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: git-svn -- out of memory
@ 2009-02-16  9:37 Alfred M. Szmidt
  2009-02-16 10:05 ` Junio C Hamano
  0 siblings, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2009-02-16  9:37 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

   > when doing a `git svn clone' on a subversion repository that contains
   > a large file (>1GiB), `git svn' dies with the following:
   > 
   > ams@trillian:~$ git svn clone REPO -T trunk -b branches -t tags
   > [...]
   > fatal: Out of memory? mmap failed: Cannot allocate memory
   > hash-object -w --stdin-paths: command returned error: 128
   > 
   > error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0
   > error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0
   > 
   > Doing a `git repack' doesn't help either.  Anyone got a clue how to
   > either solve, or work around this?
   > 
   > git version 1.6.1.3

   Hi Alfred,

   Core git requires objects to be able to fit into (virtual) memory.
   Adding more swap space should solve the problem for you, but this is not
   only a git-svn problem.

In this case, the machine has 32G RAM, including ~20G swap.  So I do
not think that this is the case, it could be I suppose...

Cheers.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: git-svn -- out of memory
@ 2009-02-16 14:52 Alfred M. Szmidt
  2009-02-16 14:57 ` Sverre Rabbelier
  2009-02-16 15:39 ` Jeff King
  0 siblings, 2 replies; 10+ messages in thread
From: Alfred M. Szmidt @ 2009-02-16 14:52 UTC (permalink / raw)
  To: Jeff King; +Cc: gitster, normalperson, git

Added an extra 20G of swap, still the same error.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: git-svn -- out of memory
@ 2009-02-16 14:23 Alfred M. Szmidt
  2009-02-16 15:37 ` Jeff King
  0 siblings, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2009-02-16 14:23 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: normalperson, git, peff

   >    > when doing a `git svn clone' on a subversion repository that contains
   >    > a large file (>1GiB), `git svn' dies with the following:
   >    > 
   >    > ams@trillian:~$ git svn clone REPO -T trunk -b branches -t tags
   >    > [...]
   >    > fatal: Out of memory? mmap failed: Cannot allocate memory
   >    > hash-object -w --stdin-paths: command returned error: 128

   Ding...

   >    > git version 1.6.1.3
   >
   >    Core git requires objects to be able to fit into (virtual) memory.
   >    Adding more swap space should solve the problem for you, but this is not
   >    only a git-svn problem.
   >
   > In this case, the machine has 32G RAM, including ~20G swap.  So I do
   > not think that this is the case, it could be I suppose...

   The hash-object error message sounds like the issue that was fixed with
   915308b (avoid 31-bit truncation in write_loose_object, 2009-01-29).  Does
   v1.6.2-rc1 help?

ams@trillian:~/# git --version
git version 1.6.2.rc1
ams@trillian:~/# git svn clone REPO -T trunk -b branches -t tags
[...]
fatal: Out of memory? mmap failed: Cannot allocate memory
hash-object -w --stdin-paths: command returned error: 128

Nope, behaves the same way.

I'll try adding more swap and see what happens...

Thanks for the help.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* git-svn -- out of memory
@ 2009-02-14 10:40 Alfred M. Szmidt
  2009-02-16  0:38 ` Eric Wong
  0 siblings, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2009-02-14 10:40 UTC (permalink / raw)
  To: git

Hi,

when doing a `git svn clone' on a subversion repository that contains
a large file (>1GiB), `git svn' dies with the following:

ams@trillian:~$ git svn clone REPO -T trunk -b branches -t tags
[...]
fatal: Out of memory? mmap failed: Cannot allocate memory
hash-object -w --stdin-paths: command returned error: 128

error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0
error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0

Doing a `git repack' doesn't help either.  Anyone got a clue how to
either solve, or work around this?

git version 1.6.1.3

Cheers.

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

end of thread, other threads:[~2009-02-16 15:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16  9:37 git-svn -- out of memory Alfred M. Szmidt
2009-02-16 10:05 ` Junio C Hamano
2009-02-16 13:45   ` Jeff King
  -- strict thread matches above, loose matches on Subject: below --
2009-02-16 14:52 Alfred M. Szmidt
2009-02-16 14:57 ` Sverre Rabbelier
2009-02-16 15:39 ` Jeff King
2009-02-16 14:23 Alfred M. Szmidt
2009-02-16 15:37 ` Jeff King
2009-02-14 10:40 Alfred M. Szmidt
2009-02-16  0:38 ` Eric Wong

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