From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4CGALXXtpGXxEQAA62LTzQ:P1 (envelope-from ) for ; Mon, 15 Jan 2024 09:31:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4CGALXXtpGXxEQAA62LTzQ (envelope-from ) for ; Mon, 15 Jan 2024 09:31:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nlOJGZts; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705307509; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vCOy13AuwY2aKFcsvjVA91jrnq2bs0Goowhm13sg2DA=; b=oaa26JwQ+rckiIJAPW1eaLJeIm+v4tNOiLXDxeOmN54CSwdwlvsvLvu4KUXkq1bGq5C3Kl oNDUxceV8idLVo7pd8ULUB0t0e/V1uzfWUhjGT2H6CPB94SAy5RFNYUoY22qgz0tAxXiaY BMfzW+vGhSwt01O0zoUdzKZWD7iKY38eKJEpdcKVI7eQqYlunAEK5O/69yL3tb3bfFhICs 9jVc2YSI300+e0wU9IQ9mVXxZB6kCR81CYk4e/4JFCpTAKWXqXjyya1jbfzKWvVBqdSy9x ObSXCm13yeCRFcZKpYwoKlMroaMGxTU1gMoWhwxQzJK8Uv4nm383cFZ5yes9BA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705307509; a=rsa-sha256; cv=none; b=L9s5x1PWPbbxI8njJlcg/4+s6CfKFUPmusHiErWUGD11K/f37feoQpA2vXjsPwqVUSGs4r C15j6UeUU9zl2d9TWOQRLaCr8DexVAQx81mhCzMSHD7FJUoK2LU5hQ6bLCTt3Hz5Xmw8nO 7R39310RhoGPL+4drAt+dD4eAwTeWJhOmVjsEVxQ1mK16x36tqjkKoderTwtOkCBn9uML2 GGxwXIKgD36lJ3JKPuS+eH60COlHl0ViQiqlsBZ7MfHDBQMZP+lrqFQcVqCFOtKZcQfdpv q10EFB4AIv+AXBniROCrVsiietv30bEq/G0HmVsPQqT0W1z15FaJ88cFIOxwDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nlOJGZts; dmarc=none; 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" 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 09DBE20A98 for ; Mon, 15 Jan 2024 09:31:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPINK-0003b0-Hf; Mon, 15 Jan 2024 03:31:18 -0500 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 1rPINI-0003al-Bm; Mon, 15 Jan 2024 03:31:16 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPINF-0003jb-7Z; Mon, 15 Jan 2024 03:31:15 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3374eb61cbcso7444569f8f.0; Mon, 15 Jan 2024 00:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705307469; x=1705912269; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=vCOy13AuwY2aKFcsvjVA91jrnq2bs0Goowhm13sg2DA=; b=nlOJGZts/A9K5pPWXqOqek1S6p1CHJwOej+udLHfYE+OcdUDVQg8jiDKVNV8gqdOJ6 4VBuDR7PUJFI5ud+zUp25GYxzRFtdaZdGtTTVQKy8w4A+7LIk0bQevylynF5Ikl2tg/W UHSLZpvU3X09pb2lksEPZ1z4kKQ8rqHGMiklyQWJj3wWNw54bYhPe+Uqa/P/tDW8GorI UcWQ/AWHbZ7ntsMC+GEtNp/khznJ/mDn5GlMq6vamG0frDINImjXQp5Z0SkaVXB11Smn nOd+f79Qjr6gVcPzfV3XYuIPpsr+gSs32OYC0laVwigLJiletQ3pUIrutOZ6xuCb+Nc7 q8VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705307469; x=1705912269; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vCOy13AuwY2aKFcsvjVA91jrnq2bs0Goowhm13sg2DA=; b=D1h+ZeFBs7O/mcDCbmh1rp3siqdb876z7sC/kQ2cDnWc+tN+5rcCsW0nAVRoH+9yfB jgc2R08PpuGwXCf/6nLWeeEl43xPOIERVksnCS+M1HA2LloJTHEIFdYXuuSP2yLo5eHS 6aD0A09eZZLOo0fmtVU3f3YcG/7p4ahlkDnLp+jeFHpEmz79MVYHnJYd8U0GJ+JJL6n2 m99sCP9LHNdLeXv3TYz5tHnueTRjL57S5Zxpw6vo0/PO7G7eW8ZJzjZ3P+oOSw/2ot7i RDh6vLhSCI5k0DIApa67rpEWLZ5CAO32fP8RusBJTYPu0i/LJrN8w2f6QLZZCd3fLtXR G4+Q== X-Gm-Message-State: AOJu0Yz1gz5iTVGv5Uc40aJmRP+QabNS9pp9C3CamcDCrsAR+V+1p+zB o2kQxRIFKbjunQmKypSwImqS4eOFu8Anzg== X-Google-Smtp-Source: AGHT+IFw2noW6T5lv2HMKe2DJQFt56YaKU2M8xuiA8jnk5vQ1DxmCpX1M7OErUE9CvmBOJyb9H3K4g== X-Received: by 2002:a5d:6287:0:b0:337:a84b:b4ef with SMTP id k7-20020a5d6287000000b00337a84bb4efmr685963wru.42.1705307469208; Mon, 15 Jan 2024 00:31:09 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id c18-20020a5d4cd2000000b0033740e109adsm11189795wrt.75.2024.01.15.00.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 00:31:08 -0800 (PST) Date: Mon, 15 Jan 2024 10:31:07 +0200 From: Efraim Flashner To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Maxim Cournoyer , guix-devel , guix-sysadmin Subject: Re: Proposition to streamline our NAR collection to just zstd-compressed ones Message-ID: Mail-Followup-To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Maxim Cournoyer , guix-devel , guix-sysadmin References: <87y1cxuddm.fsf@gmail.com> <8734v5v2r0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MiB8mclLdic66UvZ" Content-Disposition: inline In-Reply-To: <8734v5v2r0.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.29 X-Spam-Score: -4.29 X-Migadu-Queue-Id: 09DBE20A98 X-TUID: fGesquVLbj3x --MiB8mclLdic66UvZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 12:36:51PM +0100, Ludovic Court=C3=A8s wrote: > Hello, >=20 > Maxim Cournoyer skribis: >=20 > > It's been on my head for quite a bit of time (about 2 years, according > > to [0]), to streamline our offering of cached nars. Letting go of gzip > > 2 years ago, along a more aggressive garbage collection policy allowed > > us to reduce our storage needs by at least 6.5 TiB. I'm proposing to do > > the same with our lzip compressed nars, to let go of an additional 3.9 > > TiB: >=20 > Those space savings would be welcome. >=20 > > The above suggests that zstd compressed nars are about 5% larger than > > the lzip ones, which is not big enough to justify carrying both, in my > > opinion. In exchange for a little bit more bandwidth, users would have > > the nars decompressed much faster with less CPU overhead locally. >=20 > The difference is slightly higher, with lzip being 8% smaller, for a big > package like ungoogled-chromium or icecat: >=20 > --8<---------------cut here---------------start------------->8--- > $ wget -qO- https://ci.guix.gnu.org/7n95j1zlnwzc44azjs7nj8givnzdfs87.nari= nfo|grep -B1 ^FileSize > Compression: lzip > FileSize: 85783483 > -- > Compression: zstd > FileSize: 92796393 > $ wget -qO- https://ci.guix.gnu.org/prpjnnnhay0alanmkgjh66vfwjlb98kq.nari= nfo|grep -B1 ^FileSize > Compression: lzip > FileSize: 295991 > -- > Compression: zstd > FileSize: 323456 > --8<---------------cut here---------------end--------------->8--- >=20 > But yeah, even though adaptive compression selection on the client is a > minor improvement, whether it warrants the extra space is debatable. There's another zstd flag that we should probably add: --rsyncable. --rsyncable: zstd will periodically synchronize the compression state to make the compressed file more rsync-friendly. There is a negligible impact to compression ratio, and a potential impact to compression speed, perceptible at higher speeds, for example when combining --rsyncable with many parallel worker threads. This feature does not work with --single-thread. You probably don=C2=B4t want to use it with long range mode, since it will decrease the effectiveness of the synchronization points, but your mileage may vary. > > What do you think? Should we go ahead and effect the following simple > > change for the Berlin build farm? > > > > modified hydra/modules/sysadmin/services.scm > > @@ -683,7 +683,7 @@ to a selected directory.") > > ;; > > ;; for the compression ratio/decompression speed > > ;; tradeoffs. > > - (compression '(("lzip" 9) ("zstd" 19))) > > + (compression '(("zstd" 19))) >=20 > No objection from me, but=E2=80=A6 >=20 > =E2=80=A6 an important consideration: zstd support was added in 1.3.0, re= leased > in May 2021. >=20 > From experience we know that users on foreign distros rarely, if ever, > upgrade the daemon (on top of that, upgrading the daemon is non-trivial > to someone who initially installed the Debian package, from what I=E2=80= =99ve > seen, because one needs to fiddle with the .service file to adjust file > names and the likes), and we can be sure that many are still running an > old daemon. We spent a lot of time on user support after gzip > substitutes had been removed (=E2=80=98guix substitute=E2=80=99 would jus= t crash) and we > must avoid that. >=20 > (guix store) emits a warning when connecting to an =E2=80=9Cold=E2=80=9D = daemon, but > only for daemons older than 2018. We could emit a warning based on > whether or not =E2=80=9Cbuiltin:git-download=E2=80=9D is available, but m= aybe that=E2=80=99s too > early? builtin:git-download sometimes bites me on my machines since I don't upgrade my aarch64/riscv64 installs that often. Also, 2018 is now about 5 years ago. It might be a good idea to just have a rolling YEAR-3 warning that the daemon is getting old and they might be missing out on features present in newer daemon versions. > In addition to the warning, we should communicate in advance and make > sure our instructions on how to upgrade the daemon are accurate and > clear. >=20 > Thoughts? >=20 > Ludo=E2=80=99. >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --MiB8mclLdic66UvZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWk7UYACgkQQarn3Mo9 g1H32g/9EQ9TMNKwT6VAz7vSWgQ6TFH8Ng6HuE6zSVQyzGpa0y6WxhFBjPD/E7fX UFSJlzZebUtluUnPDRLEbOZ8jSYRE5biEWmxu8eeCjYE8vPYQ7eAhydLSccB5QBs vyX540CmnWGDVj1d6yQyB9rEwjKx1TajhYoOB0MdU5068mB2goOSUPtD+UrecMMk Jmn2Ee2jy7HU5mvloUpJE0LGaCNG/wPejjfTzeO81EtgpaTeANubveH1Nbg2ffB/ JyFcL4xSArDOgwFoObPvS9kgk34/bM4HYvFjradR4Lx7O4/YacK1RLdyKlhvOV+m Cgf1RRM4HL/FTq+NKv6YKUHUm+8SKcUkJ1T5IUoX6WJRFB9pGl5+rYXs6dTRGfV4 eRrAIBlApWiF08ECoRvSg+Q8P5S3Imdbia8MY8+weXCNOQ7oOWs7E7l2nI1cqJar QynwcDSCOW8Y1H5YbY53pPx0uhNROFgf3iNESKASr99rqAk9Zwo38+YgLjH4C0V0 3Vr/HPyghYzaxUlL0fGb5X3D+4Um4oMNV04ZAGjgao+7ELQzyvoHEmflUlA6ygOc UTj8mQYONfTrQUhegH+TLH62OJ6NVP73xnkHTI8gLMUxVUP9QVPbFkXkHzv13C60 INpn9Y74k21zCsUWyBnFfEvu7YF8d7aTSfMl7vzD3Qve054iR9E= =SnEo -----END PGP SIGNATURE----- --MiB8mclLdic66UvZ--