unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Phil <phil@beadling.co.uk>
To: help-guix@gnu.org
Subject: Using --max-jobs
Date: Fri, 28 Jan 2022 09:20:24 +0000	[thread overview]
Message-ID: <8735l8jjxj.fsf@beadling.co.uk> (raw)

Hi all,

A few questions about running multiple build jobs in parallel:

According to the manual the number of build users (eg guixbuilder01)
determines how many jobs can be run in parallel.

If we have 10 guix builder accounts and do not specify --max-jobs
explicitly, does this mean that 10 builds can be done in parallel - i.e
10 invocations of "guix build" will run in parallel, for example?

If I set the daemon to --max-jobs=4, will that restrict it to 4 builds
in parallel, even if more guix builder accounts exist?  If yes, then are
further builds queued until an available account becomes available, or do
they fail?

Are these conditions changed by the introduction of a machines.scm?  i.e. if we
have a build farm containing 4 machines, each with 10 guix builder
accounts, will parallel building still be restricted to the 10 guix
builder accounts on the parent machine (the machine with the machines.scm)?

I see that settting --max-jobs to 0 and having machines to offload to
results in no builds taking place on the parent.  I understand if no
machines are contactable the build will fail?  However, what happens if all
machines in the machines.scm are already busy (no slots available)?
Does any further build request fail, or is it queued?  If --max-jobs is
set to 0 on the parent, are builds still restricted by the number of
build users on the parent box?


Thanks!
Phil.


             reply	other threads:[~2022-01-28  9:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-28  9:20 Phil [this message]
2022-01-31  8:37 ` Using --max-jobs Efraim Flashner

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=8735l8jjxj.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).