Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2016 22:22:39 +0200
From:      Michael Grimm <trashcan@ellael.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: pkg-1.7.0 is an order of magnitude slower than pkg-1.6.4
Message-ID:  <7A204031-8AD1-4988-ACAD-988386AFF92D@ellael.org>
In-Reply-To: <20160407064336.GR49864@ivaldir.etoilebsd.net>
References:  <6DD156C6-C3E1-43BC-8EC5-1ACB16EBFC3E@ellael.org> <20160402124845.GM1128@ivaldir.etoilebsd.net> <05DDCF70-8865-4F1F-A264-3000B8EF5244@ellael.org> <20160407064336.GR49864@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin <bapt@FreeBSD.org> wrote:
>=20
> On Sat, Apr 02, 2016 at 02:59:06PM +0200, Michael Grimm wrote:
>> Baptiste Daroussin <bapt@FreeBSD.org> wrote:
>>> On Sat, Apr 02, 2016 at 02:42:06PM +0200, Michael Grimm wrote:

>>>> 26 seconds for 74 ports within a jail and pkg-1.6.4:
>> [=E2=80=A6]
>>>> 309 seconds for the very same 74 ports within the very same jail =
and pkg-1.7.0:
>> [=E2=80=A6]
>>>> Is this an expected slow-down? /usr/ports/UPGRADE and =
https://svnweb.freebsd.org/ports/head/ports-mgmt/pkg/?view=3Dlog are not =
indicating that behavior.
>>>> But I might have missed something.
>>>>=20
>>>> Any feedback is highly appriciated, thanks, and regards,
>>>=20
>>> pkg 1.7 is IO intensive that may explain.
>>=20
>> Ok, understood.
>>=20
>> JFTR: perl (24s), python27 (44s), and ruby (125s) take the longest =
time to reinstall.
>>=20
>>> I plan to readd some improvements on this side before 1.8
>>=20
>> Good to know, thanks for your feedback.
>=20
> Just to follow up on the performance issue, there is a regression that =
happened
> on FreeBSD 10.3-RELEASE (also HEAD) that causes pkg extraction process =
to be 10
> times slower as it should. r297626 fixes it in head. We are working on =
bringing
> that into the 10 branch:
> https://svnweb.freebsd.org/base?view=3Drevision&revision=3D297626

Thanks. I added the relevant patch [1] to 10.3-STABLE (r297721) and I =
can confirm that that fixed the performance issue.=20

Now, with pkg-1.7.2 for the very same 74 ports and jail reinstallation =
is back to 26 seconds:

	Apr  8 20:04:42 <user.notice> pkg: indexinfo reinstalled: 0.2.4 =
-> 0.2.4=20
	...
	Apr  8 20:05:08 <user.notice> pkg: pkg reinstalled: 1.7.2 -> =
1.7.2=20


Up to now, 10.3-STABLE runs rock solid. I will report if that might =
change.

Thanks for your engagement and with kind regards,
Michael


[1] =
https://svnweb.freebsd.org/base/head/lib/libc/db/hash/hash.c?view=3Dpatch&=
r1=3D297626&r2=3D297625&pathrev=3D297626=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7A204031-8AD1-4988-ACAD-988386AFF92D>