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
this:

  troyh@myhost:~$ git push
  Counting objects: 149, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (54/54), done.
  Writing objects: 100% (75/75), 4.14 MiB | 71 KiB/s, done.
  Total 75 (delta 49), reused 41 (delta 15)
  fatal: Out of memory, malloc failed (tried to allocate 402763777
bytes)
  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?

Troy

-- 
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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to