git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git gc exit with out of memory, malloc failed error
@ 2011-09-15  1:33 Alexander Kostikov
  2011-09-15  2:20 ` David Michael Barr
       [not found] ` <CA+sFfMcfy=GCFrCjonQXvXRQu=hLjDvQViJJ75xqa72Gb23MgQ@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Kostikov @ 2011-09-15  1:33 UTC (permalink / raw)
  To: git

I'm new to git and I'm getting the following out of memory error on git gc:

$ git gc
Counting objects: 80818, done.
Delta compression using up to 8 threads.
fatal: Out of memory, malloc failed (tried to allocate 24359675 bytes)
error: failed to run repack

The only advice I found in the internet suggested to run repack with
--window-memory parameter specified. But this call also fails:

$ git repack -adf --window-memory=0
Counting objects: 80818, done.
Delta compression using up to 8 threads.
warning: suboptimal pack - out of memory
fatal: Out of memory, malloc failed (tried to allocate 24356363 bytes)

How do I cleanup my repository?

$ git version
git version 1.7.6.msysgit.0

OS: Windows Server 2008 R2 SP1 (x64)
Physical memory: 24 GB
The commands listed were executed under x64 console process.

-- 
Thanks,
Alexander Kostikov

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-15  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-15  1:33 git gc exit with out of memory, malloc failed error Alexander Kostikov
2011-09-15  2:20 ` David Michael Barr
2011-09-15  2:42   ` Alexander Kostikov
     [not found] ` <CA+sFfMcfy=GCFrCjonQXvXRQu=hLjDvQViJJ75xqa72Gb23MgQ@mail.gmail.com>
2011-09-15  2:29   ` Brandon Casey
2011-09-15  9:16     ` Carlos Martín Nieto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).