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

Garbage collection creates many unpacked objects.

From
MFMartin Fick <mfick@codeaurora.org>
Date
Oct 10, 2011, 23:30 UTC
Message-ID
<201110101730.43302.mfick@codeaurora.org>

If I clone linus' kernel, delete all the tags, and then run git gc, it ends up expanding into about 5K of unpacked objects. The .git size goes from 473M to 511M. This seems a bit strange no? Shouldn't gcing yield a smaller repo an fewer unpacked refs?

If I do this on our internal kernel repo (which has 2Ktags), it gets much more pathological, it expands to about 1M objects and grows to about 7G!!!

This seems to happen with all versions which I tested, 1.6.0, 1.7.6 and 1.7.7

Any thoughts?
-Martin
-- 
Employee of Qualcomm Innovation Center, Inc. which is a 
member of Code Aurora Forum
Next: Shawn Pearce
Message 1 of 2 in “Garbage collection creates many unpacked objects.”
  1. Martin FickOct 10, 2011
  2. Shawn PearceOct 10, 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.