From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60506) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihE07-0000Tg-Sb for guix-patches@gnu.org; Tue, 17 Dec 2019 09:39:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihE06-0005QM-PM for guix-patches@gnu.org; Tue, 17 Dec 2019 09:39:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34936) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihE06-0005Mn-7z for guix-patches@gnu.org; Tue, 17 Dec 2019 09:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ihE06-0004LV-5P for guix-patches@gnu.org; Tue, 17 Dec 2019 09:39:02 -0500 Subject: [bug#38649] [PATCH] Parallelize `guix package` Resent-Message-ID: Date: Tue, 17 Dec 2019 14:38:00 +0000 (UTC) From: Brett Gilio Message-ID: <70d9299d-0d1f-496a-a49c-f6648a721639@localhost> In-Reply-To: References: <6dd517ad-639d-4932-be9c-2acbd889d1ed@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Leo Prikler Cc: 38649@debbugs.gnu.org Dec 17, 2019 8:34:25 AM Leo Prikler : > Am Dienstag, den 17.12.2019, 14:20 +0000 schrieb Brett Gilio: > > > > > Dec 17, 2019 8:19:14 AM Leo Prikler : > > > > > > > Hi Guix! > > > > > > Yesterday I had an interesting conversation on IRC about the > > > behaviour > > > of multiple `guix package` processes running in parallel. > > > Specifically, when two transactions target the same profile > > > (usually > > > /var/guix/profiles/per-user/$USER/guix-profile) at the same time, > > > one > > > of them will fail to claim the lock and abort. 0001 makes it so > > > that > > > the process waits for the lock. 0002 makes it so that packages > > > specified via -i can be built in parallel. > > > > > > Regards, > > > Leo > > > > > > > > > > Can we extend this to include things like environment --ad-hoc? > > > `guix environment` does not claim any locks, so it does not suffer from > the problem that this patch tries to address. Perhaps my wording was > bad: By "can be built in parallel", I meant that if one starts two > processes, e.g. `guix install emacs` and `guix install ffmpeg`, emacs > and ffmpeg are built in parallel. This does not mean, that > dependencies of emacs are built in parallel ? for that you'd have to > dig closer to the core. > > Regards, > Leo > Ah right. My mistake. I just woke up, so I think I need more coffee. :) Brett Gilio