{"thread":{"id":"17788","subject":"git-svn -- out of memory","startedAt":"2009-02-14T10:40:03Z","lastAt":"2009-02-16T00:38:35Z","messageCount":2,"participants":["Alfred M. Szmidt","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"104626","messageId":"1234608003.115771.3468.nullmailer@beryx.hq.kred","threadId":"17788","inReplyTo":null,"subject":"git-svn -- out of memory","fromName":"Alfred M. Szmidt","fromEmail":"ams@gnu.org","sentAt":"2009-02-14T10:40:03Z","receivedAt":"2009-02-14T10:40:03Z","isPatch":false,"sender":{"key":"ams@gnu.org","avatar":"https://gravatar.com/avatar/46825633bc1d168c418bbf90c7859b9f83888b45d7cc546a8544df495858df83?d=mp&s=160"},"body":"Hi,\n\nwhen doing a `git svn clone' on a subversion repository that contains\na large file (>1GiB), `git svn' dies with the following:\n\nams@trillian:~$ git svn clone REPO -T trunk -b branches -t tags\n[...]\nfatal: Out of memory? mmap failed: Cannot allocate memory\nhash-object -w --stdin-paths: command returned error: 128\n\nerror closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0\nerror closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0\n\nDoing a `git repack' doesn't help either.  Anyone got a clue how to\neither solve, or work around this?\n\ngit version 1.6.1.3\n\nCheers.\n"},{"id":"104869","messageId":"20090216003835.GA5687@untitled","threadId":"17788","inReplyTo":"1234608003.115771.3468.nullmailer@beryx.hq.kred","subject":"Re: git-svn -- out of memory","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-02-16T00:38:35Z","receivedAt":"2009-02-16T00:38:35Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"\"Alfred M. Szmidt\" <ams@gnu.org> wrote:\n> Hi,\n> \n> when doing a `git svn clone' on a subversion repository that contains\n> a large file (>1GiB), `git svn' dies with the following:\n> \n> ams@trillian:~$ git svn clone REPO -T trunk -b branches -t tags\n> [...]\n> fatal: Out of memory? mmap failed: Cannot allocate memory\n> hash-object -w --stdin-paths: command returned error: 128\n> \n> error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0\n> error closing pipe: Bad file descriptor at /usr/local/bin/libexec/git-core//git-svn line 0\n> \n> Doing a `git repack' doesn't help either.  Anyone got a clue how to\n> either solve, or work around this?\n> \n> git version 1.6.1.3\n\nHi Alfred,\n\nCore git requires objects to be able to fit into (virtual) memory.\nAdding more swap space should solve the problem for you, but this is not\nonly a git-svn problem.\n\nFwiw, git-svn itself has always had a pretty strict \"no slurping\"\npolicy.\n\n-- \nEric Wong\n"}]}