unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* max-jobs and parallel-builds
@ 2021-10-19 11:02 Phil
  0 siblings, 0 replies; only message in thread
From: Phil @ 2021-10-19 11:02 UTC (permalink / raw)
  To: help-guix

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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-19 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 11:02 max-jobs and parallel-builds Phil

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).