From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gAvUJxek5WY/DwEAe85BDQ:P1 (envelope-from ) for ; Sat, 14 Sep 2024 14:56:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gAvUJxek5WY/DwEAe85BDQ (envelope-from ) for ; Sat, 14 Sep 2024 16:56:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Gjz9l59E; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726325783; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CyjBywtjajetvfbBpPBGkxeqAXFBXuikR5u012Pnw94=; b=XxhAj/kRoY/Q/0jU451wUDFkpxD2NcMTUt7n/01CSyMjADAMBNtu+Ks6KOWdxZl/56wcvI ClAifSXUthMSkJavkrVk2IipVx8WcdL0PuJ7AkOaevyKJFr1k2TBAqqAqORi6eMwe3A7yL MFzYhEYM5nRgjRfjHoXfpU1k5Qf6MMZd0FXsskkwGUu+G7quSHSE+M0mtxd7P1CBwH8/s5 3AH1BhUAnRiLmpOFIYrDt8Dtr1ExbXs5vt6IcxfFdT4yhws2nncQiC6D1OQjNlFnVL94wk g08wLHc9f1AtVFEewIBgqNIHGqE0jZKm2CC8DppSPQgAxkf5Jy8dwAMfrAxL0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Gjz9l59E; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726325783; a=rsa-sha256; cv=none; b=hn0ohKTZUEMmFKoxCDaLgv9Lqr6IFjxtk36pfOJH1UoN3EwmXIVdtyh/qnZD71eTMVIdJ3 lPMWISXp+AGha+jnMovVbimOLnlJ8KwKFcawcB3oMIl/wHV+kcUzIanqLL+/bR3BJIwVyg c04l2dN6H8czha6GyILzXjG5f+TSDmsM3nboVaqDxKzKDcJEeCDTQMyCwCGdpQTA9/YjrT 4y3/4cCjusW6aq0il7xLjsHkIu08e5lhnVCWgeTH6EAPxbFuXgcqtPVsnj+M2Ss+qP5HsR /GoEoMj6gQC6XlT33KQYMc5pwy31NSaNwZZAFpEVPYFmpSDvyYJzHk5DKh63lg== 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 6C1837A6B1 for ; Sat, 14 Sep 2024 16:56:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spUBx-0001Hb-Um; Sat, 14 Sep 2024 10:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spUBw-0001HT-OT for guix-devel@gnu.org; Sat, 14 Sep 2024 10:56:04 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spUBv-000779-7h; Sat, 14 Sep 2024 10:56:04 -0400 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2da55ea8163so2224721a91.1; Sat, 14 Sep 2024 07:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726325760; x=1726930560; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CyjBywtjajetvfbBpPBGkxeqAXFBXuikR5u012Pnw94=; b=Gjz9l59EKBaNH2pJZ/GboXkR78KGPltN37jmZSbINdg+E85g4PO0WiKH+1y6632bsD jWOo61MhBw1mTHQKCukRFO/fTG19ZpE+mhMf+1FezeZ6xZ4eD8AJfFdeJQ2tmv8VyJVF EXszRW76h4QwnoEshS+b6XeCjqeFUGu32NkDal2nGv0FAXWo0bIb2gK+6r6D2vTa6izz /811Z8p7Qsh4VDszwczFGAKvH80z4I/uMOmXDMDPWbrx6XeAnijNLDqzfDpXi99dGInP JdPDApsbtflvGQD6YJ/iBklDK6ojYJN29gvO9fWWJ9NsRZkhrQ945tXkifh4ylNsrYCx 4FzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726325760; x=1726930560; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CyjBywtjajetvfbBpPBGkxeqAXFBXuikR5u012Pnw94=; b=Wzd303OWuOEbWa/+RU5POeJNCke6BXriCb4zNjLjvofYK+BNG692seUPT/i2PW+KnG YN/IskBMgagqt/94Pk0sbDZk68iI5PFIvL9TVNS2/c55/SXSmXmqgK/U74mpZhZulbvT OkOVxt0EDYNtlM9mLMBITsLmaQtNRPiuDdBY26qTsrhxqik0MacNP38F6Bgx8yRVfZFL capqtK8JMWDOjyKEGFRAAuEGPFs4VnrjORmjtxC+eMqeIfIPm+OhUrkXk5jQcQUEDvZR HUGSA6XQGHVwiu2Eor4C30VKm+V8N2ZsXw8IeMwTdzSv7kCcmPjtz4/uOGv8sNAtQ90d 7wCA== X-Forwarded-Encrypted: i=1; AJvYcCWOh0du/KTiDYCt+3jXxTtTVqNzDeupMW90fMr7D6n8Ak8pPixnEUCfzY4DITMYSib4JSr12eEZiK5R@gnu.org X-Gm-Message-State: AOJu0YzD0aK/aBaiYEpZ5JHmCPZzYpSPbenBqwYgf48oQS3V4V/jPzcX HRjdugGxytj6gd8ysQnt/rLk20rf4uE9k8m8HXBSAWwlPv2RXmGvNHSlj+UY X-Google-Smtp-Source: AGHT+IEXlOQfuB40AUY0u7g33ezuuDnq51GzP3CxOFJ1XS8bTkONUDvH/AQ2JLvcqaaI7EuByZ1bjA== X-Received: by 2002:a17:90b:180e:b0:2d3:b643:8386 with SMTP id 98e67ed59e1d1-2db9ffc1aeemr10672757a91.9.1726325760136; Sat, 14 Sep 2024 07:56:00 -0700 (PDT) Received: from hurd ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbb9d5bb73sm3769301a91.38.2024.09.14.07.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 07:55:59 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Ricardo Wurmus , guix-devel@gnu.org Subject: Re: "guix pack -f docker" does too much work In-Reply-To: <87cyp0ojc5.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 01 Jun 2024 15:58:50 +0200") References: <87sey0lqpn.fsf@elephly.net> <87cyp0ojc5.fsf@gnu.org> Date: Sat, 14 Sep 2024 23:55:56 +0900 Message-ID: <87y13uqo77.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.61 X-Spam-Score: -5.61 X-Migadu-Queue-Id: 6C1837A6B1 X-Migadu-Scanner: mx10.migadu.com X-TUID: ebnTP+kOAwFO Hi, Ludovic Court=C3=A8s writes: > Hi, > > Ricardo Wurmus skribis: > >> a few months ago "guix pack -f docker" was modified to produce layers. >> This is great! Unfortunately, "guix pack" itself still produces one big >> tarball containing all these layers. There is no sharing of previously >> built layers, because they are all hidden inside the pack. > > Right. > >> I think it would be great if "guix pack -f docker" could avoid building >> all these identical layers again and again. Perhaps it would be >> possible to have a single derivation for each layer? This way we >> wouldn't have to recreate the same layer archives every time. > > That sounds nice in terms of saving CPU time. It=E2=80=99s less nice in = terms > of disk usage: a single =E2=80=98guix pack -f docker=E2=80=99 run would p= opulate the > store with roughly twice the size of the closure. > > I think each solution (single derivation vs. one derivation per layer) > makes a different tradeoff. I don=E2=80=99t have a strong feeling about = which > one is better. In past discussions (such as the implementation of the 'RPM' pack format) we had concluded that a single derivation was preferable. Large chunks to be sent to offload machines over the network are not very practical, and as Ludovic said, they also require more store space. --=20 Thanks, Maxim