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

Re: "git fsck" hanging (v1.7.3.2)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 24, 2010, 17:06 UTC
Message-ID
<20101024170640.GA7238@burratino>
In-Reply-To
<AANLkTinFRnK=NnnUPX1VUE1aY_MHCR=OZ99RuQ1G3nSG@mail.gmail.com>
Hi Leo,
Leo Razoumov wrote:
Show 10 quoted lines
> And then it sits there spinning CPU (99%) and nothing happening for
> over a minute or so and then it proceeds to conclusion. The whole
> thing takes about 2 minutes
> 
> ~/git-1.7.3.2> time git fsck
> git fsck  98.27s user 2.78s system 98% cpu 1:42.48 total
> 
> I previously compiled git-1.6.5.8 in exactly the same way on the same
> system and had no problems of any kind.
> "git fsck" was completing in seconds even for large repos.
You are right --- there was a significant change in fsck 1.6.6:

Notes on behaviour change [1] -------------------------

 * In this release, "git fsck" defaults to "git fsck --full" and
   checks packfiles, and because of this it will take much longer to
   complete than before.  If you prefer a quicker check only on loose
   objects (the old default), you can say "git fsck --no-full".  This
   has been supported by 1.5.4 and newer versions of git, so it is
   safe to write it in your script even if you use slightly older git
   on some of your machines.
Hope that helps.
[1] Documentation/RelNotes/1.6.6.txt
Previous: Leo Razoumov
Message 2 of 2 in “"git fsck" hanging (v1.7.3.2)”
  1. Leo RazoumovOct 24, 2010
  2. Jonathan NiederOct 24, 2010

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.