From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Performance of the man page database generation Date: Thu, 20 Apr 2017 11:29:39 +0200 Message-ID: <871ssn4ebg.fsf_-_@gnu.org> References: <20170405205638.12336.78854@vcs0.savannah.gnu.org> <20170405205640.15AE6210A4@vcs0.savannah.gnu.org> <86y3v9bicq.fsf@gmail.com> <864lxxghmm.fsf@gmail.com> <87a87ibjq1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d18PL-0007RM-S3 for guix-devel@gnu.org; Thu, 20 Apr 2017 05:29:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d18PH-00062m-S4 for guix-devel@gnu.org; Thu, 20 Apr 2017 05:29:47 -0400 In-Reply-To: <87a87ibjq1.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 15 Apr 2017 09:25:10 +0900") 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: Maxim Cournoyer Cc: guix-devel , myglc2 Hello, Maxim Cournoyer skribis: > myglc2 writes: [...] >> 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]: > > time guix build --check /gnu/store/rkri628apz2a2i2jvav11ylv2736fvv3-manua= l-database.drv > > 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? You can see those .drv names when building the profile. So you just need to copy/paste them and run =E2=80=9Cguix build --check=E2=80=9D above. If you have the profile but not its .drv, you can find out what the .drv for that profile was but there=E2=80=99s no command-line interface for that= (you have to use =E2=80=98valid-derivers=E2=80=99 from (guix store).) HTH, Ludo=E2=80=99.