From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58061) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihDwF-0008Ah-5I for guix-patches@gnu.org; Tue, 17 Dec 2019 09:35:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihDwE-0002uA-6s for guix-patches@gnu.org; Tue, 17 Dec 2019 09:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihDwD-0002tG-Pf for guix-patches@gnu.org; Tue, 17 Dec 2019 09:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ihDwD-0004F0-Nl for guix-patches@gnu.org; Tue, 17 Dec 2019 09:35:01 -0500 Subject: [bug#38649] [PATCH] Parallelize `guix package` Resent-Message-ID: Message-ID: From: Leo Prikler Date: Tue, 17 Dec 2019 15:34:31 +0100 In-Reply-To: <6dd517ad-639d-4932-be9c-2acbd889d1ed@localhost> References: <6dd517ad-639d-4932-be9c-2acbd889d1ed@localhost> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Brett Gilio Cc: 38649@debbugs.gnu.org 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