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

Re: git gc - out of memory

From
Simon Strandgaard <neoneye@gmail.com>
Date
Nov 15, 2009, 18:33 UTC
Message-ID
<df1390cc0911151033h2825053fxafe5bb2bb788fbb2@mail.gmail.com>
In-Reply-To
<hdp44d$4ml$1@ger.gmane.org>
On Sun, Nov 15, 2009 at 3:44 PM, Alejandro Riveira <ariveira@gmail.com> wrote:
> El Sat, 14 Nov 2009 20:26:00 +0100, Simon Strandgaard escribió:
[snip]
>> What can I do?
>
> run « git repack -adf --window=memory » on the repo where memory is
> escaled apropiately for your machine ?
Thank you Alejandro, it now works!

I think the default is 10, so I tried with window=5 and it completed a full repack.

$ git repack -adf --window=5 Counting objects: 5934, done. Compressing objects: 100% (5711/5711), done. Writing objects: 100% (5934/5934), done. Total 5934 (delta 3733), reused 0 (delta 0) Removing duplicate objects: 100% (256/256), done. $ git gc Counting objects: 5934, done. Compressing objects: 100% (1978/1978), done. Writing objects: 100% (5934/5934), done. Total 5934 (delta 3733), reused 5934 (delta 3733) $

Now that it works.. Should I report the original issue as a bug somewhere? e.g. malloc failed sounds like a bug.

Kind regards Simon Strandgaard - http://gdtoolbox.com/

Previous: Alejandro RiveiraNext: Alejandro Riveira
Message 3 of 4 in “git gc - out of memory”
  1. Simon StrandgaardNov 14, 2009
  2. Alejandro RiveiraNov 15, 2009
  3. Simon StrandgaardNov 15, 2009
  4. Alejandro RiveiraNov 16, 2009

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.