From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YNCTBMfm2F+rYwAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 16:39:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +LiPAMfm2F92dAAA1q6Kng (envelope-from ) for ; Tue, 15 Dec 2020 16:39:35 +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 642DD940480 for ; Tue, 15 Dec 2020 16:39:34 +0000 (UTC) Received: from localhost ([::1]:56712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpDMK-0006Cl-PM for larch@yhetil.org; Tue, 15 Dec 2020 11:39:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpDLp-0006Ce-VI for bug-guix@gnu.org; Tue, 15 Dec 2020 11:39:01 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpDLp-0005nv-OS for bug-guix@gnu.org; Tue, 15 Dec 2020 11:39:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpDLp-0003uB-KS for bug-guix@gnu.org; Tue, 15 Dec 2020 11:39:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44760: Closure copy in =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?init=E2=80=99?= is inefficient Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Dec 2020 16:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44760 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44760@debbugs.gnu.org Received: via spool by 44760-submit@debbugs.gnu.org id=B44760.160805032014966 (code B ref 44760); Tue, 15 Dec 2020 16:39:01 +0000 Received: (at 44760) by debbugs.gnu.org; 15 Dec 2020 16:38:40 +0000 Received: from localhost ([127.0.0.1]:58956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpDLU-0003tK-6M for submit@debbugs.gnu.org; Tue, 15 Dec 2020 11:38:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpDLS-0003t2-VG for 44760@debbugs.gnu.org; Tue, 15 Dec 2020 11:38:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53924) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpDLN-0005j5-Pf for 44760@debbugs.gnu.org; Tue, 15 Dec 2020 11:38:33 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35588 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpDLN-0000hU-D6 for 44760@debbugs.gnu.org; Tue, 15 Dec 2020 11:38:33 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h7pkffzy.fsf@inria.fr> Date: Tue, 15 Dec 2020 17:38:32 +0100 In-Reply-To: <87h7pkffzy.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 20 Nov 2020 12:02:25 +0100") Message-ID: <87y2hzkos7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 642DD940480 X-Spam-Score: -2.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: A+kLEhNLYiUC Ludovic Court=C3=A8s skribis: > =E2=80=98guix system init=E2=80=99 ends by copying the system=E2=80=99s c= losure from the =E2=80=9Chost=E2=80=9D > store to the target store; it also initializes the database of that > target store. There=E2=80=99s one =E2=80=98guix system init=E2=80=99 optimization that wo= uld be nice to have in the installation image: instead of copying store items at all, simply move the store from its temporary location in /mnt/tmp/guix-inst to /mnt/gnu/store. That=E2=80=99d make it zero-copy. It would probably require a separate code path, but it=E2=80=99s worth considering. Thoughts? Ludo=E2=80=99.