From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Compressed ISO image got bigger Date: Mon, 13 Apr 2020 16:42:39 +0200 Message-ID: <874ktnih0g.fsf@gnu.org> References: <878sj1qcw7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50217) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO0IM-0000gu-CF for guix-devel@gnu.org; Mon, 13 Apr 2020 10:42:43 -0400 In-Reply-To: <878sj1qcw7.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 12 Apr 2020 11:19:52 +0200") 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org, Tobias Geerinckx-Rice Hi, Ludovic Court=C3=A8s skribis: > https://web.fdn.fr/~lcourtes/software/guix/1.1.0rc2 > e830c2a8de vm: Transparently compress iso9660 images. Here=E2=80=99s a comparison of the size of the ISO images for rc1 and rc2: --8<---------------cut here---------------start------------->8--- $ du -h release-1.0.1.13450-01d5f2/guix-system-install-1.0.1.13450-01d5f2.x= 86_64-linux.iso.xz release-1.1.0rc2/guix-system-install-1.1.0rc2.x86_64-lin= ux.iso.xz 260M release-1.0.1.13450-01d5f2/guix-system-install-1.0.1.13450-01d5f2.x= 86_64-linux.iso.xz 405M release-1.1.0rc2/guix-system-install-1.1.0rc2.x86_64-linux.iso.xz $ xz -d < release-1.0.1.13450-01d5f2/guix-system-install-1.0.1.13450-01d5f2= .x86_64-linux.iso.xz | wc -c 1524205568 $ xz -d < release-1.1.0rc2/guix-system-install-1.1.0rc2.x86_64-linux.iso.xz= | wc -c 589223936 --8<---------------cut here---------------end--------------->8--- As you can see: =E2=80=A2 The xz-compressed ISO of rc2 is 1.6 times bigger than that of r= c1. =E2=80=A2 The uncompressed ISO of rc2 is 2.6 times smaller than that of r= c1. It=E2=80=99s not surprising that xz has a hard time compressing an already-compressed image, but I find it surprising that the end result is almost twice as big. =E2=80=9Cmake release=E2=80=9D uses the default xz compression ratio, -6. = I tried different levels and different compression tools (though I don=E2=80=99t wa= nt to change from xz now because this would likely break documentation and links all around) and it seems we can=E2=80=99t really do any better: --8<---------------cut here---------------start------------->8--- 560M /tmp/t.iso 415M /tmp/t.iso.gz 406M /tmp/t.iso.lz-6 412M /tmp/t.iso.xz-0 407M /tmp/t.iso.xz-3 404M /tmp/t.iso.xz-8 --8<---------------cut here---------------end--------------->8--- Thoughts? Ideas? Ludo=E2=80=99.