pkg-devel much slower than pkg?
se at freebsd.org
Fri May 23 10:46:51 UTC 2014
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
real 13m43.057s (= 823s)
The same command with pkg-1.2.7 needs less than 20% of the real
time to run:
real 2m30.298s (= 150s)
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).
More information about the freebsd-ports