From: Johannes Schindelin Date: Mon, 11 Feb 2008 15:20:23 GMT Subject: Re: [PATCH] pack-objects: only throw away data during memory pressure Message-ID: In-Reply-To: <120271478556-git-send-email-mkoegler@auto.tuwien.ac.at> Hi, On Mon, 11 Feb 2008, Martin Koegler wrote: > What about this not really tested patch for dealing with memory pressure > in git-pack-objects? > > It will slow down the repack in the case of memory pressure, but missing > memory will not affect the results. It almost helped: $ /usr/bin/time git repack -a -d -f --window=250 --depth=250 Counting objects: 2477715, done. fatal: Out of memory, malloc failed411764) Command exited with non-zero status 1 10050.12user 240.63system 2:53:37elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (29555major+94032945minor)pagefaults 0swaps So, it ran longer until it ran out of memory. Ciao, Dscho