From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6cJX-0001pR-2L for guix-patches@gnu.org; Tue, 25 Feb 2020 10:40:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6cJV-0008Ll-TJ for guix-patches@gnu.org; Tue, 25 Feb 2020 10:40:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6cJV-0008Ld-Pk for guix-patches@gnu.org; Tue, 25 Feb 2020 10:40:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6cJV-0004q6-Nm for guix-patches@gnu.org; Tue, 25 Feb 2020 10:40:01 -0500 Subject: [bug#39728] [PATCH] Allow parallel downloads and builds Resent-Message-ID: Date: Tue, 25 Feb 2020 10:39:17 -0500 In-Reply-To: References: <20200221235307.535fb453@tachikoma.lepiller.eu> <87h7zfel26.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: <62A3FE42-52DD-4E51-9AD1-242B86B6A391@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: zimoun , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39728@debbugs.gnu.org Le 25 f=C3=A9vrier 2020 10:21:24 GMT-05:00, zimoun a =C3=A9crit : >Hi Julien, > >On Mon, 24 Feb 2020 at 22:43, Ludovic Court=C3=A8s wrote= : >> Julien Lepiller skribis: > >> > This patch allows to count builds and downloads separately=2E The >idea is >> > that downloads need bandwidth, but no CPU, while builds do not need >> > bandwidth, but need CPU=2E With this patch, guix will be able to >download >> > substitutes while building unrelated packages=2E Currently, guix >needs to >> > wait for the download to finish before proceeding to the build=2E >This >> > should reduce the time of guix commands that need to build and >download >> > things at the same time=2E >> > >> > What do you think? >> >> I think it=E2=80=99s a good idea! >> >> I wonder what the UI will look like: (guix status) would no longer >> display a progress bar when there=E2=80=99s more than on job (build or >download) >> taking place at the same time=2E > >Speaking about progress bar, it could be nice (as an improvement) to >have a concurrent progress bar=2E As an example, see: > >http://hackage=2Ehaskell=2Eorg/package/concurrent-output > > >> It would be great if you could test this patch for your daily usage=2E= =20 >I >> find it surprisingly easy to break things in the daemon=2E :-) > >How can I do that? >After the 'make', how can change the daemon? And then revert it again >to the default one? > > >Cheers, >simon On the guix system, try (in a guix environment guix) sudo herd stop guix-d= aemon; sudo =2E/pre-inst-env guix-daemon --build-users-group=3Dguixbuild=20 To revert back, kill this (^C) and sudo herd start guix-daemon=2E