Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 2025 10:10:56 +0000
From:      "Dave Cottlehuber" <dch@skunkwerks.at>
To:        "bob prohaska" <fbsd@www.zefox.net>, "Warner Losh" <imp@bsdimp.com>
Cc:        "Brad Davis" <brd@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Git and buildworld running at the same time
Message-ID:  <1f592824-baa2-4c03-b978-0299ea6ca867@app.fastmail.com>
In-Reply-To: <aMbvLynVUTQEnd1k@www.zefox.net>
References:  <aMWGWbI-8TwnAPnP@www.zefox.net> <f9ae18ca-13d9-4fdc-8ee4-6b1870ad67ad@app.fastmail.com> <CANCZdfrNw=AHLUcKxGzYoPQ7Zs=E2Wjp6Kqq4E3aU_LyBh_snA@mail.gmail.com> <e786ed05-5ce5-42dc-92bc-d6cfdd3ccc3d@app.fastmail.com> <aMWW6GpzUwSufCTE@www.zefox.net> <CANCZdfpR7ZEUEOMZio1aXAwOiU_yLbn8TgBGk-3UsamjnRw9tA@mail.gmail.com> <aMbsfSvVt6xp8JbW@www.zefox.net> <aMbvLynVUTQEnd1k@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f592824-baa2-4c03-b978-0299ea6ca867>