Re: Git and buildworld running at the same time

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Mon, 15 Sep 2025 10:10:56 UTC
On Sun, 14 Sep 2025, at 16:37, bob prohaska wrote:
> On Sun, Sep 14, 2025 at 09:25:33AM -0700, bob prohaska wrote:
>> 
>> Top does not show any flags applied to git, and a
>> ps -aux | grep git
>> reports only the "grep git" process, nothing else.
>
> This claim now seems wrong. A repeat of  ps -aux reports:
>
> root@www:/usr/src # ps -aux | grep git
> root   9398   8.9 80.5 1346480 768984  -  R    09:07       8:34.59 
> /usr/local/libexec/git-core/git pack-objects --local --delta-base-of
> root   9396   0.0  0.1    9132    860  -  Is   09:07       0:00.01 
> /usr/local/libexec/git-core/git gc --auto --no-quiet
> root   9397   0.0  0.1    9100    868  -  I    09:07       0:00.05 
> /usr/local/libexec/git-core/git repack -d -l -A --unpack-unreachable
> root   9499   0.0  0.2    4800   1688  1  S+   09:29       0:00.02 grep 
> git
> [lines are wrapped]
>
> So, git definitely returns a shell prompt before it's finished working.
> At the moment git occupies 1.3 GB RAM, 505 MB swap and 10-15% CPU.
>
> Apologies for the misinformation, thanks for reading!
>
> bob prohaska

Hi Bob

Try running this `git config gc.auto 0` in your /usr/src and see if
it stops doing this in future. On the down side you may need to run
it explicitly occasionally.

An alternative might be `git config gc.autodetach false` but I've not
tried this myself.

A+
Dave