pkg-devel much slower than pkg?
bapt at FreeBSD.org
Fri May 23 17:03:40 UTC 2014
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.
> Using portmaster, I observe very significant increases in the time
> required to check which ports to upgrade. With pkg-devel:
> # time portmaster -a
> ===>>> Gathering distinfo list for installed ports
> ===>>> Starting check of installed ports for available updates
> ===>>> All ports are up to date
> ===>>> Exiting
> real 13m43.057s (= 823s)
> user 0m44.465s
> sys 1m20.432s
> The same command with pkg-1.2.7 needs less than 20% of the real
> time to run:
> real 2m30.298s (= 150s)
> user 0m39.246s
> sys 1m11.392s
> It may be too early to expect pkg-1.3 to be optimized for speed,
> but I just wanted to report this regression ...
> Since the CPU times are not so different, it appears that the amount
> of disk I/O is much higher with pkg-devel.
> 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).
This is a regression introduced during b1 -> b2 dev, we are working on it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the freebsd-ports