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

Re: git gc expanding packed data?

From
HLHin-Tak Leung <hintak.leung@gmail.com>
Date
Aug 12, 2009, 14:45 UTC
Message-ID
<3ace41890908120745y305b2a59hd453b7e146e4a774@mail.gmail.com>
In-Reply-To
<alpine.LFD.2.00.0908111718490.10633@xanadu.home>

On Tue, Aug 11, 2009 at 10:33 PM, Nicolas Pitre<nico@cam.org> wrote: <snipped>

Show 10 quoted lines
> From git v1.6.3 the --aggressive switch makes for 'git repack' to be
> called with --window=250 --depth=250, meaning the equivalent of:
>
>        git repack -a -d -f --window=250 --depth=250
>
> Do you still get a huge pack with the above?
>
>> I guess --aggressive doesn't always save space...
>
> If so that is (and was) a bug.

I tried 'git repack -a -d -f --window=250 --depth=250' with 1.6.2.5 (fc11.x86_64) and it took half a day, swallowed up all the memory - 3GB virtual & 1.3GB resident - and finally the kernel oom killer killed it at a last message of (601460/957910). Left no temp files. Would git 1.6.3 use less memory? :-(

Hin-Tak
Previous: Nicolas PitreNext: Nicolas Pitre
Message 5 of 7 in “git gc expanding packed data?”
  1. Hin-Tak LeungAug 4, 2009
  2. Nicolas PitreAug 5, 2009
  3. Hin-Tak LeungAug 11, 2009
  4. Nicolas PitreAug 11, 2009
  5. Hin-Tak LeungAug 12, 2009
  6. Nicolas PitreAug 12, 2009
  7. Hin-Tak LeungAug 13, 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.