git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git gc exit with out of memory, malloc failed error

From
Brandon Casey <drafnel@gmail.com>
Date
Sep 15, 2011, 02:29 UTC
Message-ID
<CA+sFfMdXLkSE_RXB28TSx0JpPVjwe1Rf+03TkiT2YJjYH7m9MQ@mail.gmail.com>
In-Reply-To
<CA+sFfMcfy=GCFrCjonQXvXRQu=hLjDvQViJJ75xqa72Gb23MgQ@mail.gmail.com>
[resend since gmail's Rich formatting was enabled]

On Wed, Sep 14, 2011 at 8:33 PM, Alexander Kostikov <alex.kostikov@gmail.com> wrote:

Show 8 quoted lines
>
> 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
Try reducing the number of threads that are used.  You must have some
pretty large objects if you have 24GB and ran out of memory.  The
following will configure git to use only one thread.
   git config pack.threads=1
-Brandon
Previous: Alexander KostikovNext: Carlos Martín Nieto
Message 4 of 5 in “git gc exit with out of memory, malloc failed error”
  1. Alexander KostikovSep 15, 2011
  2. David Michael BarrSep 15, 2011
  3. Alexander KostikovSep 15, 2011
  4. Brandon CaseySep 15, 2011
  5. Carlos Martín NietoSep 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.