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

gc getting called on each git command ... what's wrong?

From
Geoff Russell <geoffrey.russell@gmail.com>
Date
Jun 8, 2011, 01:33 UTC
Message-ID
<BANLkTi=oUARfwvNFNj-_FvZdwxQgibqPOg@mail.gmail.com>
Hi all,
I'm running git version 1.7.0.4 on Ubuntu 10.04 LTS

As of today, almost every time I do a git command, gc is getting invoked. This is a multi-gigabyte repository with over half a million objects, so this takes a while ... and I'm guessing that it shouldn't be happening anyway!

I've run an fsck (which doesn't do a gc!) and the repository looks clean ... no output.

I have packSizeLimit set to 30M ... not sure why I did this, was investigating something I didn't understand. There are 96 pack files.

Any help greatly appreciated, many thanks,

Cheers, Geoff

Next: Peter Harris
Message 1 of 10 in “gc getting called on each git command ... what's wrong?”
  1. Geoff RussellJun 8, 2011
  2. Peter HarrisJun 8, 2011
  3. Drew NorthupJun 8, 2011
  4. Brandon CaseyJun 8, 2011
  5. Junio C HamanoJun 8, 2011
  6. Jakub NarebskiJun 8, 2011
  7. Geoff RussellJun 15, 2011
  8. Jakub NarebskiJun 15, 2011
  9. Geoff RussellJun 16, 2011
  10. Jakub NarebskiJun 16, 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.