From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iCHMKh+mbmH02AAAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 13:03:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aNNmJh+mbmHMBQAAbx9fmQ (envelope-from ) for ; Tue, 19 Oct 2021 11:03:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AAA861F8BC for ; Tue, 19 Oct 2021 13:03:58 +0200 (CEST) Received: from localhost ([::1]:50998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcmuS-0003dJ-Oc for larch@yhetil.org; Tue, 19 Oct 2021 07:03:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcmtL-0002gh-PN for help-guix@gnu.org; Tue, 19 Oct 2021 07:02:47 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:35369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcmtJ-0003Lx-KJ for help-guix@gnu.org; Tue, 19 Oct 2021 07:02:47 -0400 Received: by mail-wm1-x344.google.com with SMTP id n40-20020a05600c3ba800b0030da2439b21so2300199wms.0 for ; Tue, 19 Oct 2021 04:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20210112.gappssmtp.com; s=20210112; h=user-agent:from:to:subject:message-id:date:mime-version; bh=shwTIG0LnPArKIRkECc0l2U1f7TnNSfm2CK1SMfDPUY=; b=GiixLJP37Edy+KLklOK2GggQfnM8yklO4DqJzKCkfKkuWivMoZImiW1JVla56/oqhM J+Ven8CmTqOVnoGJVuPn/PRvfJuqwOBUcVZiyAjR0Pr2A/3X/CC0LeqclMhxyNHvrjUF JxEciTWkrbsvq8HcngaJUEkrqXxG3KkiA2rww0lxXg7f6nn+GF9EfDEPfS/3J5zZblG7 v9sRDzkzuvMPKsnOXqyU38j1LayI8SR72MDqpdmXM5zIMRM53ISi0rPI/eNtMRwmvy82 gqpoCUmP4b1fXpGrWzIxt1y6Y6GYexmELLSpvUSFljjqG4BoQBfN5nCC8B63DZtoM6Nz Xmbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=shwTIG0LnPArKIRkECc0l2U1f7TnNSfm2CK1SMfDPUY=; b=zG+Ny3TWIyyIz25E7GsSu0dTTxUVl+l46KO+y4M5Pa//UoJWi/53aD0Upra39yEMnX w6o7Cpf6rrpXUBW+iTprlm+N2Y0ah7mPFqpnqKnHFZ+fDn43GLMdrZ4OF0VgxLzoukSq GyTQYRV3dD6d7/m8nTrUnz9svtyJVQ5HK/dmaKQv2GbVE0y9aerHzmb+MlgaGcIJxE3l jvzyrlCxau5HzsOPXdebC7idwseh/lKLw0l+QUvZzUV2L6bKmLcv6bNHss3+avpRsChf NvByuCn1r0LYVgZN9qoq/16m1+he1UXwNqkPIsThl+S1YhjBOuCBbsY+kM+Fh8QiDvmv Fk8w== X-Gm-Message-State: AOAM530WPmqK4ER8YYNuF1DUrGRsasM9czPgBIwJNeKp2vRuRtJEkK9+ I9yXd+k5wsnUkWwjRR0Bu4bBfS/eqjJENCGatqY= X-Google-Smtp-Source: ABdhPJykToRyQmr+2I3YG8Bb3oBUUPvQn9g89RLnFlVHsBZ3kmxRWxb5+s2HVlqa6QE4X/ax8+0nkg== X-Received: by 2002:a05:600c:3b88:: with SMTP id n8mr5208508wms.93.1634641361279; Tue, 19 Oct 2021 04:02:41 -0700 (PDT) Received: from xps13 (host-92-10-211-105.as13285.net. [92.10.211.105]) by smtp.gmail.com with ESMTPSA id o8sm2016190wme.38.2021.10.19.04.02.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 04:02:40 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 27.2 From: Phil To: help-guix@gnu.org Subject: max-jobs and parallel-builds Message-ID: <87r1chb7lc.fsf@beadling.co.uk> Date: Tue, 19 Oct 2021 12:02:39 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a00:1450:4864:20::344; envelope-from=phil@beadling.co.uk; helo=mail-wm1-x344.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634641439; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=shwTIG0LnPArKIRkECc0l2U1f7TnNSfm2CK1SMfDPUY=; b=HQ2oQStbkELM3tDp4h876NZh88OvOouN1eAgJoBmPoXqFyl7AeF4yyF2f1J4IArJnsIaz0 q6zpYpTnA/Wa9Fu09I1E4wI33NzPtMR1AqHMTuSYvdOmrYIdwD6YeJQcoODCPTDmsWJLeS KRRr4Jd04quKlXKYZ5iPxS1VDOSUt57TnNOmFr3CgTOul5rkc/d1ALJo8kL1N58G7HvuX9 SWkVJRL4R4IrlaTczcsCHbK4zG+CeL7WZZWa9PtYNcIhS7OvgRTNrp15mDsa6HyZiw8USc LIGoxzCkVnz+nSxO6+1FHQdw/gd9qFxrlAspRkKNJm6fKUpMDaZ7PM3HDZvAIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634641439; a=rsa-sha256; cv=none; b=UVkMv8NgpQ7iJSaFX75SeaqXJTEuQ0eOzKJbPI8Py/b2rAEE4JK/ZonJYy2jOVj06gvWUp //fnFchK1kw3i1+6ZUc12bfvnKjlclJY1P5+fHYQMJCTZXD/cARze5zwMX0oeOlvHc1JDo wMyThdz+WZ+uo7UuWKxL8cc/Iy3QbWixi37rCDXARTBy0JJBSxHuoufV/qOMKRuAwQm83j 0XvulmfG8VxiHCoKYh7ICqOlyLLjV2VW2ZfyQ0lApQUl8A+LL4lCun/6JK6ng3a6dXl4jr TF7eu8sHKD1uGEJh++6OVdbz+zH1OMxNewQ9JP3M8VtJDUPi2PT34+KqmGYJUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=GiixLJP3; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=GiixLJP3; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: AAA861F8BC X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: PhkVk0qf1K/3 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.