From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: 04/06: profiles: Generate database file for man pages. Date: Sat, 15 Apr 2017 09:25:10 +0900 Message-ID: <87a87ibjq1.fsf@gmail.com> References: <20170405205638.12336.78854@vcs0.savannah.gnu.org> <20170405205640.15AE6210A4@vcs0.savannah.gnu.org> <86y3v9bicq.fsf@gmail.com> <864lxxghmm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czBWj-0003Sp-0d for guix-devel@gnu.org; Fri, 14 Apr 2017 20:25:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czBWh-00065t-JL for guix-devel@gnu.org; Fri, 14 Apr 2017 20:25:21 -0400 In-Reply-To: <864lxxghmm.fsf@gmail.com> (myglc2@gmail.com's message of "Sun, 09 Apr 2017 21:45:37 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: myglc2 Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello myglc2, myglc2 writes: > On 04/10/2017 at 10:22 Maxim Cournoyer writes: > >> Hi myglc2! >> >> On Mon, Apr 10, 2017 at 2:28 AM, myglc2 wrote: >>> >>> On 04/05/2017 at 16:56 Ludovic Court=C3=A8s writes: >>> >>> > civodul pushed a commit to branch master >>> > in repository guix. >>> > >>> > commit a0b87ef8ec7735aa42cf35d380e9cff04f3236f3 >>> > Author: Maxim Cournoyer >>> > Date: Wed Apr 5 01:09:22 2017 -0700 >>> [...] >>> >>> So now q'guix package -m' produces messages like ... >>> >>> guix package -m g1.scm >>> installing new manifest from 'g1.scm' with 22 entries >>> substitute: updating list of substitutes from 'https://mirror.hydra.gnu= .org'... 100.0% >>> The following derivations will be built: >>> /gnu/store/smyjh63avay2gb6yq47h3hrlyxfrsajp-profile.drv >>> /gnu/store/ygp7n87177fngqqpb5l5bkkba5cawcvh-gtk-icon-themes.drv >>> /gnu/store/wrad8m1vhck9bb7dzqqlxb03rq1ifsm8-gtk-im-modules.drv >>> /gnu/store/qv12155lx8y195my98970mmfawqpnrcs-info-dir.drv >>> /gnu/store/ndiq7ccmi32rlxdyf52f506jil0zn9p0-ca-certificate-bundle.drv >>> /gnu/store/90gzasiixp9np5m4nn28vbfqd1zd5azq-fonts-dir.drv >>> /gnu/store/3l8kl1b438qr3yk2qca4pzvlpv04q7rc-xdg-mime-database.drv >>> /gnu/store/2brridy714shmik1zksysik36kn2iwsf-manual-database.drv >>> creating manual page database for 23 packages... >>> 22 packages in profile >>> g1@g1 ~/src$ >>> >>> And... watching this, it seems like a long time between ... >>> >>> creating manual page database for 23 packages... >>> >>> ... and ... >>> >>> 22 packages in profile >>> >>> Does it really take this long? If not, can we close the message ... >> >> FWIR it is CPU bound, so your mileage will vary; in my case on an old >> low-power laptop it can take a few seconds for ~65 packages. > > It is taking more like 50 seconds on my 3.4 Ghz server for 33 packages. > >> I wonder why the odd package count mismatch (23 vs 22) ? > > That's my fault. I cut and pasted from two different runs. SORRY! ;-) > OK! No problem; thanks for clarifying it! >> I don't recall observing this while testing (maybe it only happens >> when using the -m option) ? > > No, I get the same effect w/ 'guix package -r foo. 50 seconds for 33 packages on such a powerful machine seems abnormal, unless you have a specific package(s) which would install an unusually large amount of manual pages (which would take more time to be indexed). Ludovic had a way to time the generation of the manual-database derivation; he was using something like [0]: =2D-8<---------------cut here---------------start------------->8--- time guix build --check /gnu/store/rkri628apz2a2i2jvav11ylv2736fvv3-manual-= database.drv =2D-8<---------------cut here---------------end--------------->8--- Notice that you need the derivation (.drv) of manual-database rather than the store item ending by manual-database. Unfortunately I'm not aware of how we can easily find the derivation of the corresponding manual-database store item used by the profile (as can be found by: guix gc -R $(realpath $HOME/.guix-profile) | grep manual-database). Maybe Ludovic can enlight us? If you are interested in digging into this further, you could enable debug output for the man-db command used by manual-database profile hook defined in (guix profiles) by replacing the "--quiet" option by =2D-debug. This way you'd see everything man-db might be complaining about. [0] https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00847.html --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAljxaGYACgkQEmDkZILm NWJ3rg//ZxiEIuGD3X/ktqx2D/HSwA+UkcKOzJ9tuqfgXwuioFQjDxpd9+xuXxfQ OdtaOUyOOFfNWj1K1nvyCJlMqvHyvNaZn54ug/dioYqaP4kAqA5ndyYf+RZtUSac LQ4AhGgW049z59WLrnOc78Nnie4KSzdqZ4gyLxPJJRgl+YH6J5PknMa+egNplw7J ESd9hZKJhILTKWpYUM9gPB+EoNevrsPYsV4OyPNKMs7sgNFjdS0eVLh3Zsb/8/Oc yeWo2pMi0G6N8zf4UaBwnjrAIeGwRf/Sd+HqXQsRwChYk+KddqXMdjeORoPJ+AL7 sQZM6lUSzWRab2nKUEXPpkw3/xP4CyYNIqnbJc8l9OZy7ZS8+766UpgTzKAPWtkH alWyGuIy08OCDjvBO/UF+aBL0gOH4qq4hIVfjxye6bBnUTjtYGqx0hoHFr7UL9Q0 JlKU+xmBKQzyHRUQkzwZHCGNtD1fxRuRMlUu4D6jonUP1CV1fHdz5pkDOdq03p8X 5ZhMkp8YncltddYgTEfW4ZbPJX9Lbpgtz/eq9HYMWvO6m/HF4b68Vc0JrAkB9jRt RiDS34aL1W0KjQZ2YHCiJNJN6ljLdhXvqRLPnvJQYGWQijNo/PH5r0JZ5ZkAG2R6 I9LQsJsP7CiiLZczwFYZa/nFNcUK8suoqKoOGmpp1XPZvpZSvow= =bOTt -----END PGP SIGNATURE----- --=-=-=--