Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2025 09:20:35 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Brad Davis <brd@freebsd.org>, Warner Losh <imp@bsdimp.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Git and buildworld running at the same time
Message-ID:  <aMWZ0w_lzP2axyyW@albert.catwhisker.org>
In-Reply-To: <aMWW6GpzUwSufCTE@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>

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

[-- Attachment #1 --]
On Sat, Sep 13, 2025 at 09:08:08AM -0700, bob prohaska wrote:
> ...
> > > Though that's only for the kernel, not for world builds. Right?
> > 
> > It happens for world builds as well.. newvers.sh runs git (used to be svnlite) and is called in Makefile.inc1.
> > 
> 
> Is it normal for git to consume (while buildworld is running) close
> to 1 GB of memory for durations exceeding an hour?

I would find that ... surprising.  (I have tended to rebuild FreeBSD
head & stable (head - 1, usually; lately, also head - 2) daily on
at least a couple of machines for the past several years, one of
which is the laptop I use for day-to-day "stuff" -- so I do have
"some experience" using "make buildworld" & friends.)

> More fundamentally, is it OK to start buildworld immediately after
> a git pull finishes interactive output and returns a shell prompt?

I generally do that, yes.  And I am unaware of any problems the practice
may have caused.

That said, there was an occasion when a "git fetch" from one of the
mirrors choked & died; since then, I have taken to running a weekly
process via cron that does a "git maintenance run" followed by a "git
gc" in each of my git repositories.  No issues since starting that.

Peace,
david
-- 
David H. Wolfskill                              david@catwhisker.org

See https://www.catwhisker.org/~david/publickey.gpg for my public key.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQSTLzOSbomIK53fjFliipiWhXYx5QUCaMWZ0l8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0OTMy
RjMzOTI2RTg5ODgyQjlEREY4QzU5NjI4QTk4OTY4NTc2MzFFNQAKCRBiipiWhXYx
5XFYAPwM5dCc2bSu+NH6ndbr5QxvMb1IZgPhfCNaplznTw06OAEAxuvV4M6GA+hI
DmGJcED1HwZZwDoj+cvlk4eIwRMxUQ0=
=5Bbj
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aMWZ0w_lzP2axyyW>