Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2021 11:34:07 +1000
From:      Peter Jeremy <peter@rulingia.com>
To:        Trev <freebsd-ports@sentry.org>
Cc:        freebsd-ports@freebsd.org
Subject:   gitup issues [was Re: No update for a day on ports?]
Message-ID:  <YHJSDwHxfr1r3nrP@server.rulingia.com>
In-Reply-To: <4227bf01-4733-bc76-3188-57d9478ac15e@sentry.org>
References:  <20210401082247.668e4394@zeta.dino.sk> <YGV0EvmP3Hkk5543@mail.bsd4all.net> <3b7de439-12a1-70a4-7aec-8b2a9fde38ba@heuristicsystems.com.au> <20210401095527.7de7a28e@raksha.tavi.co.uk> <340c035b-705d-de21-86d1-6c749ac8174c@druid.net> <4227bf01-4733-bc76-3188-57d9478ac15e@sentry.org>

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

--ebf+MdYvR7TaN1Li
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2021-Apr-01 22:36:02 +1100, Trev <freebsd-ports@sentry.org> wrote:
>> I just tried gitup and was told tha I had no permissions for=20
>> /var/db/gitup.=20

"sudo chown $USER /var/db/gitup" fixes that.

>I just tried gitup and it was killed after apparently exhausting my=20
>swap space. I had no such problem with portsnap :-(

gitup walks the destination tree (ie /usr/ports), hashing every file
it finds (by reading the complete file into memory).  Whilst the
default gitup configuration ignores /usr/ports/packages and
/usr/ports/distfiles, it reads and hashes all the files down both
paths before ignoring them.  One consequence is that gitup is unusable
on small memory environments - in my case, I saw peak memory usage hit
5GB (though the largest file I have is 1.8GB, so I'm not sure why it's
eating so much memory).

>My system (Vultr VPS) has 512K memory and 1.5G swap.

git is barely usable on such a system (it's peak memory usage is about
2GB whilst processing a ports tree).  gitup is unusable unless you
either delete all packages and distfiles, or symlink them out of the way.

> > Can I not run gitup as a normal user?
>
>I don't believe so.

Well, git or gitup need write access to the working directory and
the associated metadata directory.

--=20
Peter Jeremy

--ebf+MdYvR7TaN1Li
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmByUgpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzRIwg//clZw+kSaTGobiXZqBCbL7jAb7pUV298tUbOW6Bw4Enbkpgn+bDHxPfw6
zYEhfSL/mHBoEUjLJ4bL+j4negl/rCnVAwI+TUNXmG+JWMswB8rrt8U+M9apwp0F
hhkE0pyf3gLArf1qLM1n+pAAVpnTe+ij7mvnwSkUNkqXQbLtBjwM8PsXXUFPwJol
tnwkrnBBjzxxDTOUdFhHkGOJibe6KdjJUTSpLrnIv/z54T/P6gVqvImSWLccUGoY
k9lkTebt9LSElJ6/20oDNMTdyuZ78FPOJ2GqhtWEIu0GJhiNTHgFdtLmqJ//m8dj
Ko0zo1S+r35o6GcLJLyg3CKtHsEw/Dps/YX5txF4Hjoj4IryxQsHGJ/c+jFl2k9o
txTY/CZuvKk4J3inwnUWJx3dUxcp06cZQRfl+aYGOFKRlU2eRdmSRnKcH6v62+FZ
/zx0zGP42TKYN/0vkuZkdLIQePcYDRPlmc7buawrBvu+mp8qcoR3q/MK5nmepQgv
7tRquwzMLEHmg1GSIXuiB+OqarS+MCuKYksEbCsethbEeSvh7zWWnB3qTe2Ady4g
ct0hOF1q43yDzgd0b9KXnT55ppXUEQR86kWeCHBznwfb9Hk1T0YiP2Oe+OLXiSLM
0P7LLXTTWkoZeKcwAMBmTOJ0Xr/xjdiN6B+a/7qOV8+q70+ntCE=
=BBbo
-----END PGP SIGNATURE-----

--ebf+MdYvR7TaN1Li--



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