From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cKwxDESraWA+FgEAgWs5BA (envelope-from ) for ; Sun, 04 Apr 2021 14:04:20 +0200 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 iGoMBkSraWDIHwAA1q6Kng (envelope-from ) for ; Sun, 04 Apr 2021 12:04:20 +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 BFD931B262 for ; Sun, 4 Apr 2021 14:04:19 +0200 (CEST) Received: from localhost ([::1]:46398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lT1UH-0007fS-8Y for larch@yhetil.org; Sun, 04 Apr 2021 08:04:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lT1Pd-0006r1-1m for guix-devel@gnu.org; Sun, 04 Apr 2021 07:59:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lT1Pa-0006UB-02 for guix-devel@gnu.org; Sun, 04 Apr 2021 07:59:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3BF702400FD for ; Sun, 4 Apr 2021 13:59:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1617537559; bh=2LimVKRwLSCdnT2Vgrcd6DLnVjnKazC9E57FCtO5kow=; h=Date:From:To:Subject:From; b=Dw8ZgWMOHxpbxYf2EseKOnRSgeSG/CGvCaIpELtO4xqG9h5xhAjRv7UeqIpXOIZe8 m1oejIr2AykPqs+MTKyPTzhqtL9dLxR3fmHYmAXbgBxE3SnRNw62QrntmoDz5/Z07L PmRfUp069Do3pH1oSFIF53LmCLje6/INeodZkbSrCKvmSVUaitMFScoQ5nXj8ZsnnZ 7sRHzTRybhF/7h8pCX1JIZaitkFmVIjlPXKSRlORAKaxNxFgfGISQmfCnLBOjOKsBI YQqA3wEA+Ew8IZYfTgr4Hu+Ex9YfgH8NIiQWvvnyJkTvhUVjN3grxy4Da075yqTYOy Y/SvmJ8hIHeHg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FCslV5V90z9rxH; Sun, 4 Apr 2021 13:59:18 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Apr 2021 13:59:18 +0200 From: Mekeor Melire To: guix-devel@gnu.org Subject: Speed up package installation by using images instead of archives (like =?UTF-8?Q?distri=29=3F?= Message-ID: X-Sender: mekeor@posteo.de User-Agent: Posteo Webmail Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 04 Apr 2021 08:03:59 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617537859; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hWn9p3NHOSUFUsxfjgUVOgUZXnZEDwjcwWtcddKlUtM=; b=pzpSBDMJG0mluQv62XjZqD9tXVTsaRg0u6QQAZg8PUq+s+rPfAqJvzjHslct9PJpYeeGop qHvaDD73cRTLUWR9gLFj4AEz7m5SsmPnAXXZhAeSpMlbMEe+H1gLJKPnYklQueYtA9LvFx aPWjo8uVaSf1DQhupyS2UALoNcRWoKeeQJp7oqnaA9wag4JSeSkU+s/yyenb04sgjWral3 iot7ln9b5XxDaZg2sDhkAs6+0fAPO+rkCM4SyT83AQAKMjbZREgoABgLk+7GWLZaELskgB kakzNpfDk5tjUUe5zn6nIx57REcB7Sth+/CPVp7CV9m+QT4CoFwVluOlCqhgZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617537859; a=rsa-sha256; cv=none; b=GA1VdQyzFoEy5fiaKuM2FrcPshtSJHGWNil68wRU0IOr5c1npKK7ECWIUy9LPxVUH3f0B7 8NPOyfQ6hTxdirTaK0RRGncI0yJhSF3jL2Ngk0fbrIL9NHOxRLqbyAsFUon2kKE00XHNI3 /fMkbMIJ3p7WNDwwLi1eT/BWdprQTOFz7WagWfmyjZFmLQOpk8VOBZaDyAol2bsg3YGnBO lSMqjW0IVwt+1Xe9sL2pQudn0q151geUc6Nzdqd/2raVGFb1l8BcwH5ED9vYddkNFDbqn3 qn1Rypx7/4zzEP6A1/AomcJbt1D+t2UGm0ubw18RYVFMWsKW6EAqfTMcqZTXGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=Dw8ZgWMO; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=Dw8ZgWMO; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BFD931B262 X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: CjqT167bSp5h Hello Guix! On the Guix-blog=C2=B9, Ludo already mentioned the lightning talk of Michae= l=20 Stapelberg on the =E2=80=9Cdistri=E2=80=9D package manager which installs p= ackages=20 faster than common package managers by an order of magnitude. Common package managers install a package by downloading it as an=20 (compressed) archive and extracting the archive. But this extraction=20 takes very long as it requires to create dozens of files on the file=20 system which is an expensive IO operation. In contrast, distri downloads the package as an (squashfs) image. That's=20 it. The image will then be mounted (which is not an expensive IO=20 operation) as a read-only virtual-file-system. (But as it's not=20 recommendable to mount as many images as there are installed packages,=20 distri mounts the package-images lazily, i.e. right before they are=20 being used.) (At least, the above explanation reflects my understanding.) Thus, I wonder: (0) Does it make sense to make Guix follow this idea as=20 well? I.e. should we make Guix install packages by downloading images=20 and mounting those instead of extracting archives? (1) Does this even=20 fit into Guix technically? I.e. how hard would it be to implement this?=20 (2) And would it even be worth it? I.e. how much faster would Guix=20 become? I hope for an exciting discussion! mekeor -- Footnotes: 1:=20 https://guix.gnu.org/en/blog/2021/getting-bytes-to-disk-more-quickly/