Date: Fri, 23 May 2014 12:38:06 +0200 From: Stefan Esser <se@freebsd.org> To: ports FreeBSD <freebsd-ports@FreeBSD.org> Subject: pkg-devel much slower than pkg? Message-ID: <537F250E.2090403@freebsd.org>
next in thread | raw e-mail | index | archive | help
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). Regards, STefan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537F250E.2090403>