Hi all. I’ve got a shared dreamhost server which holds some git repositories. I was having problems pushing to it (with a commit holding a lot of binary files), getting a “index-pack died of signal 9” error. So, i copied my working folder onto the repo server, so that i could do the push locally rather than over the internets. And, discovered that Dreamhost was killing it for taking (i presume) too much memory:
Yikes! One of your processes (git, pid 7746) was just killed for excessive resource usage.
Please contact DreamHost Support for details.
Does anyone know a less memory-intensive way to do a git push? Maybe a blob at a time or something? Any other helpful advice would be welcome…
EDIT - following recommendations on http://wiki.dreamhost.com/Git and http://craigjolicoeur.com/blog/hosting-git-repositories-on-dreamhost, i made my own local git binaries, with the NO_MMAP=1 option set. I made sure these were before the dreamhost-installed versions in my path, and “which git” shows my local version. But, i get exactly the same problem. Do i need to do something with my repo to make the NO_MMAP option work, or is the problem something else do you think?