From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Does --no-substitutes save bandwidth? Date: Thu, 16 May 2013 23:32:10 +0200 Message-ID: <87ppwq7grp.fsf@gnu.org> References: <1368692410.27899.11.camel@aiwass> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud5mi-0000OJ-Sr for bug-guix@gnu.org; Thu, 16 May 2013 17:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ud5me-0007HI-5M for bug-guix@gnu.org; Thu, 16 May 2013 17:32:24 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=56302 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud5md-0007Gs-VY for bug-guix@gnu.org; Thu, 16 May 2013 17:32:20 -0400 In-Reply-To: <1368692410.27899.11.camel@aiwass> (Luther's message of "Thu, 16 May 2013 04:20:10 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Luther Cc: bug-guix@gnu.org Luther skribis: > I've installed Guix 0.2 on my Ubuntu system. As I type this, I'm using > it to install gcc. If all goes well, I hope to soon install Trisquel as > my base system with Guix as a package manager. Nice. Welcome! :-) > I'm trying to save as much bandwidth as possible, so I started the > daemon with --no-substitutes. But it occurred to me that binaries might > not be much bigger than source tarballs, even with documentation. What > do you guys think? Would --no-substitutes be generally useful for saving > bandwidth? Good question. For GCC 4.8.0, the bzip2=E2=80=99d =E2=80=9CNix archive=E2=80=9D (which is = the format under which binaries from hydra.gnu.org are served[*]) takes 25 MiB on x86_64, whereas gcc-4.8.0.tar.bz2 takes 83 MiB. Then one should also look at the size of the closure of the package of interest. Often, packages have a lot of build-time dependencies, and their run-time dependencies are just a small subset thereof. So if all you want is to install GNU Hello, you=E2=80=99ll have the choice between downloading binaries of Hello and libc, and downloading the source tarballs of GCC, Binutils, glibc, GMP, MPFR, MPC, etc. etc., just to build all the chain leading to GNU Hello. Hmm, the most accurate answer may well be =E2=80=9Cit depends=E2=80=9D. :-) Thanks, Ludo=E2=80=99. [*] Can be obtained with =E2=80=98nix-store --export /nix/store/53fv51m204zhkyfrkkacjyhm2h1k4xad-gcc-4.8.0 | bzip2=E2=80=99 = or the API in (guix nar).