On Sat, 2 Apr 2011, Alif Wahid wrote: > Hi there, > > I'm using Git v1.7.1 on Ubuntu v10.10 and unfortunately Git seems to > regularly exhaust the memory on my machine and fails to compress loose > objects and/or collect garbage. > > My Intel based dual-core machine has 2 GB of RAM and 4 GB of swap > space. I need to track a working tree with a handful of really large > tarballs that rarely change and loads of really small text files that > change frequently. What I'm seeing is that over time whenever "git gc" > runs automatically it fails with the message "fatal: Out of memory, > malloc failed". So I've been trying to manually run "git repack -ad > --window-memory=1g --max-pack-size=1g" in the hope that Git will not > exceed the physical memory. But I still get the same error message :( Don't use --max-pack-size. That won't help here. How large are those tar files? Nicolas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html