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

Re: git gc ineffective

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Nov 9, 2020, 11:17 UTC
Message-ID
<87v9eekcd6.fsf@igel.home>
In-Reply-To
<20201109104327.GX29778@kitsune.suse.cz>
On Nov 09 2020, Michal Suchánek wrote:
Show 14 quoted lines
> On Mon, Nov 09, 2020 at 11:17:38AM +0100, Michal Suchánek wrote:
>> On Mon, Nov 09, 2020 at 10:49:21AM +0100, Andreas Schwab wrote:
>> > On Nov 09 2020, Michal Suchánek wrote:
>> > 
>> > > I noticed I am running out of disk space, and one repository taking up
>> > > about 38G. Did git gc --aggressive, and the used space *raised* to 42G,
>> > > and git would report it does gc after every commit.
>> > 
>> > Do you have a lot of loose objects?
>> { for i in  .git/objects/?? ; do ls $i ; done ; } | wc -l
>> 53392
> And in the double-size repository it's doubled, too:
>  { for i in  .git/objects/?? ; do ls $i ; done ; } | wc -l
>  101167
git count-objects also shows the size.
Does it help to prune them --exprire now?
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Previous: Michal SuchánekNext: Michal Suchánek
Message 6 of 8 in “git gc ineffective”
  1. Michal SuchánekNov 9, 2020
  2. Andreas SchwabNov 9, 2020
  3. Michal SuchánekNov 9, 2020
  4. Michal SuchánekNov 9, 2020
  5. Michal SuchánekNov 9, 2020
  6. Andreas SchwabNov 9, 2020
  7. Michal SuchánekJan 7, 2021
  8. Johannes SixtJan 7, 2021

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.