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

Re: git prune pig slow

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 29, 2006, 11:40 UTC
Message-ID
<Pine.LNX.4.63.0607291339200.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20060729090250.GC26956@flint.arm.linux.org.uk>
Hi,
On Sat, 29 Jul 2006, Russell King wrote:
Show 10 quoted lines
> Hi,
> 
> git 1.4.0, P4 2.6GHz, 1GB.
> 
> I'm trying to use "git prune" to remove some unreachable objects from
> my git tree.  However, it appears to be _extremely_ expensive:
> 
> rmk      13376 91.3 15.7 165980 161556 pts/0   R+   09:50   5:14 git-fsck-object
> 
> stracing it shows that it's doing lots and lots of brk() calls.

Does git-count-objects show a high amount of unpacked objects? You should try "git-repack -a -d" _before_ git-prune, then.

Hth, Dscho

Previous: Russell KingNext: Linus Torvalds
Message 2 of 4 in “git prune pig slow”
  1. Russell KingJul 29, 2006
  2. Johannes SchindelinJul 29, 2006
  3. Linus TorvaldsJul 29, 2006
  4. Linus TorvaldsJul 29, 2006

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.