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

git gc --prune consumes *lots* of memory with repos cloned with --reference

From
JNJon Nelson <jnelson@jamponi.net>
Date
Feb 12, 2009, 18:32 UTC
Message-ID
<cccedfc60902121032y17180739r2a049197323d3588@mail.gmail.com>
The situation:

I cloned linux-2.6 Then I cloned netdev-2.6 with --reference $PWD/linux-2.6 Then I cloned net-2.6 with --reference $PWD/netdev-2.6

The problem:

git gc --prune on netdev-2.6 takes WAY more memory than git gc --prune on linux-2.6 git gc --prune on net-2.6 takes WAY WAY more memory. 1.5G and counting.

Why does git gc --prune take 1.5G? (git pack-objects is the actual memory-hungry process)

-- Jon

Next: Björn Steinbrink
Message 1 of 3 in “git gc --prune consumes *lots* of memory with repos cloned with --reference”
  1. Jon NelsonFeb 12, 2009
  2. Björn SteinbrinkFeb 12, 2009
  3. Jon NelsonFeb 12, 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.