From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: Substituting in parallel to save time?
Date: Wed, 7 Nov 2018 16:26:24 -0500 [thread overview]
Message-ID: <20181107212624.GA31229@jasmine.lan> (raw)
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
Substitution honors the --max-jobs argument to the guix-daemon, which
means that, by default, substitutes are downloaded in sequence, one at a
time.
I noticed that in many cases, it takes longer to set up the substitution
than to actually download the substitute on my 30 Mbps downlink.
The effect is that it might take a few minutes to to download a few
dozen small substitutes, which may only total 5 megabytes of data, even
though my connection to the substitute server is fast enough that it
should only take a few seconds.
So, it benefits me to increase max-jobs for substitute downloads.
However, I rarely want to actually build packages in parallel; one
package build may fully load my system.
Currently, is it possible to distinguish between substitute downloads
and builds? Maybe it would be an overall performance win to download
substitutes in parallel, in tune with parallel-job-count.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2018-11-07 21:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-07 21:26 Leo Famulari [this message]
2018-11-07 22:17 ` Substituting in parallel to save time? 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=20181107212624.GA31229@jasmine.lan \
--to=leo@famulari.name \
--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).