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

Re: auto gc again

From
JAJens Axboe <jens.axboe@oracle.com>
Date
Mar 20, 2008, 07:40 UTC
Message-ID
<20080320074057.GH17940@kernel.dk>
In-Reply-To
<alpine.LFD.1.00.0803191856290.2947@xanadu.home>
On Wed, Mar 19 2008, Nicolas Pitre wrote:
Show 21 quoted lines
> On Wed, 19 Mar 2008, Jens Axboe wrote:
> 
> > On Wed, Mar 19 2008, Nicolas Pitre wrote:
> > > On Tue, 18 Mar 2008, Jens Axboe wrote:
> > > 
> > > > But freshly pulled repo, git auto gc is enabled. And that is my main
> > > > annoyance, I just don't think that type of policy should be in there.
> > > 
> > > Just do this once:
> > > 
> > > 	git config --global gc.auto 0
> > > 	git config --global gc.autopacklimit 0
> > > 
> > > and be happy.
> > 
> > You don't get it. I did gc.auto 0. And know some other limit crops up, I
> > have to do gc.autopacklimit 0. I have LOTS of git trees. On many
> > machines. It's just annoying, period.
> 
> As suggested, gc.auto = 0 should probably be made to disable it 
> entirely, regardless of any other parameters that might exist.
Yes, agree.
Show 13 quoted lines
> > > > Print the warning, include info on how to run git gc or even how to turn
> > > > it on automatically. But I'll bet you that most users will NOT want auto
> > > > gc. Ever.
> > > 
> > > Unfortunately, the harshest complaints about this whole issue were the 
> > > opposite.
> > 
> > I just don't buy that, I have more faith in users.
> 
> We also did in the past... even for a long period...
> 
> Alas, it is the users who made us (and actually made Linus, who was the 
> last to resist) change our minds.
OK, that's at least reassuring :-)
> > If they come around and complain it's slow, heck you told them it 
> > would be.
> 
> But they don't.  They just presume that Git is crap and move on.
That's pretty sad, I like to have high hopes for users.
Show 8 quoted lines
> > But it's not a big deal, I'll just carry a local patch that disables
> > this crap and forget the whole deal. I just worry that if this is where
> > git 'usability' is heading, it wont be a good thing in the long run.
> 
> I wish the majority of users was thinking like you.  I, too, have some 
> conceptual problems with this auto gc things.  With the experience 
> we've gathered, the current state appears to be the 
> lesser of all evils though.

Alright, I must bow down to empirical evidence... The conceptual policy problem is indeed what is bothering me so much, even more so than the actual gc running on my machine.

gc.auto covering everything is good enough for me, GIT_GC_AUTO environment variable would be better because of the way that I work. But I can get by knowing that the gc.auto thing will at least only bite me once per tree. And perhaps just wrap git clone in one of my scripts that'll then do the gc.auto thing automatically.

-- 
Jens Axboe
Previous: Nicolas PitreNext: Junio C Hamano
Message 14 of 30 in “auto gc again”
  1. Jens AxboeMar 18, 2008
  2. Linus TorvaldsMar 18, 2008
  3. Jens AxboeMar 18, 2008
  4. Jens AxboeMar 18, 2008
  5. Linus TorvaldsMar 18, 2008
  6. Jens AxboeMar 18, 2008
  7. Johannes SchindelinMar 19, 2008
  8. Jens AxboeMar 19, 2008
  9. Johannes SchindelinMar 19, 2008
  10. Jens AxboeMar 20, 2008
  11. Nicolas PitreMar 19, 2008
  12. Jens AxboeMar 19, 2008
  13. Nicolas PitreMar 19, 2008
  14. Jens AxboeMar 20, 2008
  15. Junio C HamanoMar 20, 2008
  16. Jens AxboeMar 20, 2008
  17. Brandon CaseyMar 19, 2008
  18. builtin-gc.c: allow disabling all auto-gc'ing by assigning 0 to gc.autoBrandon Casey, Mar 19, 2008
  19. Teemu LikonenMar 20, 2008
  20. Nicolas PitreMar 19, 2008
  21. Jens AxboeMar 20, 2008
  22. Junio C HamanoMar 19, 2008
  23. Linus TorvaldsMar 19, 2008
  24. Junio C HamanoMar 19, 2008
  25. Nicolas PitreMar 19, 2008
  26. Junio C HamanoMar 19, 2008
  27. Nicolas PitreMar 20, 2008
  28. Junio C HamanoMar 20, 2008
  29. Nicolas PitreMar 20, 2008
  30. Junio C HamanoMar 20, 2008

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.