Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 00:23:58 +0300
From:      Ion-Mihai Tetcu <itetcu@FreeBSD.org>
To:        Wesley Shields <wxs@FreeBSD.org>
Cc:        ports@freebsd.org, Mel Flynn <mel.flynn+fbsd.ports@mailing.thruhere.net>, python@freebsd.org, freebsd-ports@freebsd.org, miwi@freebsd.org
Subject:   Re: Python 2.6 update with portmaster
Message-ID:  <20090611002358.3a060b05@it.buh.tecnik93.com>
In-Reply-To: <20090610205236.GD65705@atarininja.org>
References:  <20090610132647.GC40713@atarininja.org> <200906101244.43479.mel.flynn%2Bfbsd.ports@mailing.thruhere.net> <20090610205236.GD65705@atarininja.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <wxs@FreeBSD.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090611002358.3a060b05>