unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Phil <phil@beadling.co.uk>
To: help-guix@gnu.org
Subject: max-jobs and parallel-builds
Date: Tue, 19 Oct 2021 12:02:39 +0100	[thread overview]
Message-ID: <87r1chb7lc.fsf@beadling.co.uk> (raw)

Hi all,

Does guix-daemon option max-jobs
(https://guix.gnu.org/manual/en/guix.html#Invoking-guix_002ddaemon) dictate:

1. how many instances of "guix build" can be executed from the console in
tandem, or

2. how many steps/phases within a build can run in tandem, or

3. how many processes a command as part of the package description can
run (eg if I "invoke" a command like "make -j8" is it throttled?), or

4. How many guixbuildNN users it can use to perform an action - and if
this is the case what does this mean in terms of practical throughput?

Or is it something else?

Also when setting up an offload server
(https://guix.gnu.org/manual/en/guix.html#Daemon-Offload-Setup), it
looks to me like the machines.scm setting parallel-build dictates how
many builds will be potentially offloaded to each server - however how
does this interplay if at all with the setting of max-jobs on the
offload server?  For example if I restrict max-jobs on my offload server
to 1, but set the parallel-build on my main server to 4 - who wins?
Will the offload server build 1 or 4 builds in parallel?

Or do they not overlap at all because they mean slightly different things?

Thanks,
Phil.

From the docs - perhaps the distinction is "builds" and "build jobs" but
I'm not 100% clear:

parallel-builds (default: 1)

    The number of builds that may run in parallel on the machine.


--max-jobs=n
-M n

    Allow at most n build jobs in parallel. The default value is 1. Setting it to 0 means that no builds will be performed locally; instead, the daemon will offload builds (see Daemon Offload Setup), or simply fail.



                 reply	other threads:[~2021-10-19 11:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87r1chb7lc.fsf@beadling.co.uk \
    --to=phil@beadling.co.uk \
    --cc=help-guix@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.
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).