From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Questions regarding offloading ( unprivileged setup , parallel builds ) Date: Mon, 05 Feb 2018 11:55:07 +0100 Message-ID: <87eflzhfjo.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eieQd-0005EQ-UW for guix-devel@gnu.org; Mon, 05 Feb 2018 05:55:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eieQX-0005Ez-Vg for guix-devel@gnu.org; Mon, 05 Feb 2018 05:55:15 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39102) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eieQX-0005E4-Oo for guix-devel@gnu.org; Mon, 05 Feb 2018 05:55:09 -0500 In-Reply-To: (YOANN P.'s message of "Sat, 3 Feb 2018 19:51:14 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: YOANN P Cc: "guix-devel@gnu.org" Hello, YOANN P skribis: > I didn't find any documentation describing a way to use an alternative fi= le for the offload settings instead of the default /etc/guix/machines.scm. > > > Did i missed something ? No, this is correct. > Is there other files that are put under /etc ? /etc/guix also contains things related to substitutes. > It could be problematic for users who use custom store/state path in unpr= ivileged environnements but want to use the offload isn't it ? Indeed, though if you=E2=80=99re customizing things anyway, you could run: ./configure --prefix=3D/my/prefix --sysconfdir=3D/my/etc > Another question regarding the offload, how are used the machines describ= e inside /etc/guix/machines.scm ? > > If the installation of a package require to build multiple packages, does= the builds are all done on the first machine choose for the build or distr= ibute over all machines describe on /etc/guix/machines.scm ? When there are several matching machines, =E2=80=98guix offload=E2=80=99 cu= rrently picks one at random; if that machine is already under high load, it goes on and picks another one. See: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/offload.scm#= n442 > The description of "parallel-builds" parameter and the fact than missing = dependencies already present on the host who request the offload seem to be= transferred through ssh let me think that only one machine at time is used= for the offload even if all the machines present inside machines.scm share= the same store. Several machines can be used at the same time, no worries. :-) > Not sure about this too, there is no ssh transfert if the dependencies (s= ame packages / store path ) are already on the offload store isn't it ? Right, only missing items are transferred. > Implementing something similar to the project "guix-relocate" from Pjotr = inside the core project to be able to use native Guix packages with custom = path when we install them would be a real huge improvement to prevent the u= se of proot/namespace/offloading :) I think offloading serves a completely different purpose: it=E2=80=99s a wa= y to distribute builds to several machines. But yeah, we discussed relocation at FOSDEM again and it=E2=80=99s a useful thing in its own right, even though there are limitations. :-) Ludo=E2=80=99.