From: ludo@gnu.org (Ludovic Courtès)
To: Efraim Flashner <efraim@flashner.co.il>
Cc: guix-devel@gnu.org
Subject: Re: parallelizing more actions
Date: Sat, 11 Nov 2017 12:25:01 +0100 [thread overview]
Message-ID: <878tfdjbw2.fsf@gnu.org> (raw)
In-Reply-To: <20171109090559.GF1815@macbook41> (Efraim Flashner's message of "Thu, 9 Nov 2017 11:05:59 +0200")
Hi Efraim,
Efraim Flashner <efraim@flashner.co.il> skribis:
> While rebuilding glibc-final on aarch64 I realized that the 'strip phase
> took 235 seconds. The relevant code for 'strip from gnu-build-system is
> in guix/build/gnu-build-system.scm, starting at line 340, with the
> actual stripping starting at 398. When I changed 'for-each' to
> 'par-for-each' the time dropped from 235 seconds to 215, about an 8.5%
> savings. I'm pretty sure most of that time was spent failing to strip
> certain files, but it is still a savings.
Is it on a spinning hard disk or an SSD? My guess is that most of the
time is I/O, and that parallelizing doesn’t buy us much (indeed, 8.5% is
not that much, far from a linear speedup.)
So I’m mildly reluctant to parallelizing this particular piece of code.
Thanks,
Ludo’.
next prev parent reply other threads:[~2017-11-11 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 9:05 parallelizing more actions Efraim Flashner
2017-11-11 1:42 ` Chris Marusich
2017-11-11 11:25 ` Ludovic Courtès [this message]
2017-11-11 16:49 ` Efraim Flashner
2017-11-12 13:31 ` Efraim Flashner
2017-11-13 18:55 ` Efraim Flashner
2017-11-16 10:06 ` Ludovic Courtès
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=878tfdjbw2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
/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).