On Fri, 12 Aug 2011 09:26:21 -0700 (PDT)
troyh <the...@gmail.com> wrote:
> I'm trying to use a low memory, 512MB, host for my reote git repo. The
> problem is the system is in an OpenVZ container and only has ~ 390MB
> free on average. There is no way for me to create any swap space and I
> can't change the overcommit sysctl on the system. There are no large
> files in my repo and it is blowing up trying to do a 4.14 MiB push! I
> would think that 390MB free memory would be more than sufficient for
> fatal: Out of memory, malloc failed (tried to allocate 402763777
> error: unpack failed: unpack-objects abnormal exit
> To ssh://remote.org//home/troyh/git/repo.git
> ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to
> 'ssh://remote.org//home/troyh/git/ repo.git'
> It fails the malloc request of 400+ MB since only 390MB are available.
> I have
> already done a "git gc" on the local side before the push and that
> does not
> help. Does anyone have any suggestions to tell git to attempt to
> minimize its
> memory usage on the remote end?
Very strange attempt to malloc() 400MB.
Googing yielded  which mentions several Git knobs you can try.
But in general I'd better bring this on the main Git list (git at
vger.kernel.org) because it doesn't look like an end-user usage issue
but rather like a book or design deficiency.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at