From owner-freebsd-ports@FreeBSD.ORG Wed Jun 10 21:23:39 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C23381065672; Wed, 10 Jun 2009 21:23:39 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id 68FB88FC08; Wed, 10 Jun 2009 21:23:39 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 5700C2C50CE8; Thu, 11 Jun 2009 00:24:08 +0300 (EEST) Date: Thu, 11 Jun 2009 00:23:58 +0300 From: Ion-Mihai Tetcu To: Wesley Shields Message-ID: <20090611002358.3a060b05@it.buh.tecnik93.com> In-Reply-To: <20090610205236.GD65705@atarininja.org> References: <20090610132647.GC40713@atarininja.org> <200906101244.43479.mel.flynn+fbsd.ports@mailing.thruhere.net> <20090610205236.GD65705@atarininja.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/7G.MEWhASkPkzpUrc3Gs.RO"; protocol="application/pgp-signature" Cc: ports@freebsd.org, Mel Flynn , python@freebsd.org, freebsd-ports@freebsd.org, miwi@freebsd.org Subject: Re: Python 2.6 update with portmaster X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 21:23:40 -0000 --Sig_/7G.MEWhASkPkzpUrc3Gs.RO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 10 Jun 2009 16:52:36 -0400 Wesley Shields wrote: > On Wed, Jun 10, 2009 at 12:44:42PM -0800, Mel Flynn wrote: > > On Wednesday 10 June 2009 05:26:47 Wesley Shields wrote: > >=20 > > > It will be quite slow compared to using pkg_which (the normal > > > method) so be patient. > >=20 > > Does pkg_which use the pkgdb? If so, maybe we could have pkg_info > > grow a cache for future encounters, or we can create one: >=20 > My guess is that pkg_which is using pkgdb, which is why it is > significantly faster. >=20 > > % grep -v '^@' /var/db/pkg/*/+CONTENTS >/tmp/pkg_info.cache > > % FOUND=3D`sed -ne > > 's,^/var/db/pkg/\(.*\)/+CONTENTS:lib/python2.6/site- > > packages/xcbgen/error.py$,\1,p' /tmp/pkg_info.cache`; echo $FOUND > > xcb-proto-1.4 > >=20 > > So: > > 's,^${PKG_DBDIR}/\(.*\)/+CONTENTS:$$f$$,\1,p' >=20 > I think there is a SoC project in the works to make our pkg utilities > much better. I don't know any of the details but I can only hope that > speed is one of the things being improved. >=20 > > > [1]: http://people.freebsd.org/~wxs/python26-portmaster.diff > >=20 > > What's this for? > > +JOBS=3D sysctl -n kern.smp.cpus > >=20 > > Should be !=3D if it's gonna be used, but it's not referenced > > anywhere else that I can see. If we'd be using !=3D that particular instruction would be executed each time something interacts with the port, including eg. mkake describe (part of make index). This way that piece of code is executed only when needed. (and yes, it is referenced further bellow). > It's used in XARGS_CMD to provide a bit of parallelism in an effort to > be a bit faster. In my opinion the number can be increased much > further than kern.smp.cpus but I'm not in a position to figure out > how far to push it. The value used is better than nothing.\ Probably x2 would be OK. --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B --Sig_/7G.MEWhASkPkzpUrc3Gs.RO Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkowJHcACgkQJ7GIuiH/oeWUxQCgjZVj2MamY8Ep9NjA2LvQsZWf YrYAn1vyP2LOmKKwkm2i8sH8XtDeu9Nn =z88Z -----END PGP SIGNATURE----- --Sig_/7G.MEWhASkPkzpUrc3Gs.RO--