From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 11:38:40 2020 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 44760@debbugs.gnu.org Subject: Re: bug#44760: Closure copy in =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?init=E2=80=99?= is inefficient 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=22?= =?utf-8?Q?'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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44760 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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.