From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Guillaume Le Vaillant <glv@posteo.net>
Cc: "Simon Tournier" <zimon.toutoune@gmail.com>,
"Ludovic Courtès" <ludo@gnu.org>,
"Ricardo Wurmus" <rekado@elephly.net>,
guix-devel@gnu.org
Subject: Re: Building and caching old Guix derivations for a faster time machine
Date: Mon, 04 Dec 2023 20:18:25 -0500 [thread overview]
Message-ID: <87wmtto3a6.fsf@gmail.com> (raw)
In-Reply-To: <877clztj13.fsf@kitej> (Guillaume Le Vaillant's message of "Thu, 30 Nov 2023 14:05:38 +0000")
Hi Guillaume,
Guillaume Le Vaillant <glv@posteo.net> writes:
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> Hi Simon,
>>
>> Simon Tournier <zimon.toutoune@gmail.com> writes:
>>
>>> Hi,
>>>
>>> On mer., 22 nov. 2023 at 19:27, Ludovic Courtès <ludo@gnu.org> wrote:
>>>
>>>> For long-term storage though, we could choose to keep lzip only (because
>>>> it compresses better). Not something we can really do with the current
>>>> ‘guix publish’ setup though.
>>>
>>> It looks good to me. For me, the priority list looks like:
>>
>> I'd like to have a single archive type as well in the future, but I'd
>> settle on Zstd, not lzip, because it's faster to compress and
>> decompress, and its compression ratio is not that different when using
>> its highest level (19).
>
> Last time I checked, zstd with max compression (zstd --ultra -22) was
> a little slower and had a little lower compression ratio than lzip with
> max compression (lzip -9).
> Zstd is however much faster for decompression.
I think when we talk about performance of NARs, we mean it in the
context of a Guix user installing them (decompressing) more than in the
context of the CI producing them, so zstd beats lzip here.
> Another thing that could be useful to consider is that lzip was designed
> for long term storage, so it has some redundancy allowing fixing/recovering
> a corrupt archive (e.g. using lziprecover) if there has been some bit
> rot in the hardware storing the file.
> Whereas as far as I know zstd will just tell you "error: bad checksum"
> and will have no way to fix the archive.
That's an interesting aspect of lzip, but in this age of CRC-check file
systems like Btrfs, we have other means on ensuring data integrity (and
recovery, assuming we have backups available).
I'm still of the opinion that carrying a single set of zstd-only NARs
makes the most sense in the long run.
--
Thanks,
Maxim
next prev parent reply other threads:[~2023-12-05 1:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 9:29 Building and caching old Guix derivations for a faster time machine Ricardo Wurmus
2023-11-16 9:59 ` Simon Tournier
2023-11-16 15:39 ` Ludovic Courtès
2023-11-18 4:27 ` Maxim Cournoyer
2023-11-22 18:27 ` Ludovic Courtès
2023-11-29 16:34 ` Simon Tournier
2023-11-30 13:28 ` Maxim Cournoyer
2023-11-30 14:05 ` Guillaume Le Vaillant
2023-12-05 1:18 ` Maxim Cournoyer [this message]
2024-01-12 9:56 ` Simon Tournier
2024-01-15 4:02 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmtto3a6.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=glv@posteo.net \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=rekado@elephly.net \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).