From: myglc2 <myglc2@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Performance of the man page database generation
Date: Sun, 14 May 2017 11:31:08 -0400 [thread overview]
Message-ID: <8637c7cv5v.fsf@gmail.com> (raw)
In-Reply-To: <87fug8j704.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 13 May 2017 23:18:51 -0700")
On 05/13/2017 at 23:18 Maxim Cournoyer writes:
> Hello!
>
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hello,
>>
>> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>>
>>> myglc2 <myglc2@gmail.com> writes:
>>
[...]
>>> 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).
>>>
[...]
>>
>> You can see those .drv names when building the profile. So you just
>> need to copy/paste them and run “guix build --check” above.
>>
>> If you have the profile but not its .drv, you can find out what the .drv
>> for that profile was but there’s no command-line interface for that (you
>> have to use ‘valid-derivers’ from (guix store).)
>>
>> HTH,
>> Ludo’.
>
> Thanks Ludovic; that was helpful.
>
> I did a small test and it takes about 40 s on my system, with 60
> packages or so in my profile. I removed the "--quiet" flag of mandb in
> the profile hook (guix profile) to see the output of mandb while it was
> indexing the manual pages:
>
> time guix build --check /gnu/store/vk10zmd5nm8kppd0f655fraradr019fq-manual-database.drv
[...]
> real 0m39.890s
> user 0m0.356s
> sys 0m0.040s
>
[...]
Hi Maxim and Ludo’,
I hacked profiles.scm (please see git diff below) so that start and end
seconds appear in the message like this:
creating manual page database for 23 packages...1494773268...1494773275 DONE
I tested a few cases and man-db typically takes only a few seconds. It
only _appears_ to take a long time because other processing occurs after
the man-db command.
So, I suggest either ...
1) delete the message altogether, or
2) close the message with a "DONE"
SORRY for the run-around. In my defense, when I first raised the
question I did suggest the idea of closing the message:
http://lists.gnu.org/archive/html/guix-devel/2017-04/msg00196.html
HTH, George
g1@g1 ~/src/guix [env]$ git diff
diff --git a/guix/profiles.scm b/guix/profiles.scm
index eb172ef45..4dbf44a81 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1011,13 +1011,15 @@ the entries in MANIFEST."
(mkdir-p man-directory)
(setenv "MANPATH" (string-join entries ":"))
- (format #t "creating manual page database for ~a packages...~%"
- (length entries))
+ (format #t "creating manual page database for ~a packages...~a"
+ (length entries)(current-time))
(force-output)
(zero? (system* #+(file-append man-db "/bin/mandb")
"--quiet" "--create"
- "-C" "man_db.conf"))))
+ "-C" "man_db.conf"))
+ (format #t "...~a DONE~%" (current-time))
+ (force-output)))
(gexp->derivation "manual-database" build
#:modules '((guix build utils)
g1@g1 ~/src/guix [env]$
next prev parent reply other threads:[~2017-05-14 15:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170405205638.12336.78854@vcs0.savannah.gnu.org>
[not found] ` <20170405205640.15AE6210A4@vcs0.savannah.gnu.org>
2017-04-08 19:29 ` 04/06: profiles: Generate database file for man pages Leo Famulari
2017-04-10 1:00 ` Maxim Cournoyer
2017-04-09 17:28 ` myglc2
2017-04-10 1:22 ` Maxim Cournoyer
2017-04-10 1:45 ` myglc2
2017-04-15 0:25 ` Maxim Cournoyer
2017-04-20 9:29 ` Performance of the man page database generation Ludovic Courtès
2017-05-14 6:18 ` Maxim Cournoyer
2017-05-14 15:31 ` myglc2 [this message]
2017-05-16 8:21 ` Ludovic Courtès
2017-05-16 17:24 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8637c7cv5v.fsf@gmail.com \
--to=myglc2@gmail.com \
--cc=guix-devel@gnu.org \
--cc=maxim.cournoyer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).