Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2014 19:03:35 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Stefan Esser <se@freebsd.org>
Cc:        ports FreeBSD <freebsd-ports@FreeBSD.org>
Subject:   Re: pkg-devel much slower than pkg?
Message-ID:  <20140523170334.GJ72340@ivaldir.etoilebsd.net>
In-Reply-To: <537F250E.2090403@freebsd.org>
References:  <537F250E.2090403@freebsd.org>

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

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

On Fri, May 23, 2014 at 12:38:06PM +0200, Stefan Esser wrote:
> On my -CURRENT system with 1572 ports installed, I decided to give
> pkg-devel (pkg-1.3.0.b2) a try.
>=20
> Using portmaster, I observe very significant increases in the time
> required to check which ports to upgrade. With pkg-devel:
>=20
> # time portmaster -a
> =3D=3D=3D>>> Gathering distinfo list for installed ports
>=20
> =3D=3D=3D>>> Starting check of installed ports for available updates
>=20
> =3D=3D=3D>>> All ports are up to date
>=20
> =3D=3D=3D>>> Exiting
>=20
> real    13m43.057s (=3D 823s)
> user    0m44.465s
> sys     1m20.432s
>=20
> The same command with pkg-1.2.7 needs less than 20% of the real
> time to run:
>=20
> real    2m30.298s (=3D 150s)
> user    0m39.246s
> sys     1m11.392s
>=20
> It may be too early to expect pkg-1.3 to be optimized for speed,
> but I just wanted to report this regression ...
>=20
> Since the CPU times are not so different, it appears that the amount
> of disk I/O is much higher with pkg-devel.
>=20
> It might be possible to optimize the database structure or to cache
> larger parts of the package DB in RAM (size is some 100MB on my system).
>=20

This is a regression introduced during b1 -> b2 dev, we are working on it.

regards,
Bapt

--gBdJBemW82xJqIAr
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iEYEARECAAYFAlN/f2YACgkQ8kTtMUmk6EwcEgCfUYflVQRa/y/SCHlvKzzV2AbE
2oMAn1XPIjthLthSo+FC0YDl1wT3xuKv
=AjPr
-----END PGP SIGNATURE-----

--gBdJBemW82xJqIAr--



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