all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Luther <lutheroto@gmail.com>
Cc: bug-guix@gnu.org
Subject: Re: Does --no-substitutes save bandwidth?
Date: Thu, 16 May 2013 23:32:10 +0200	[thread overview]
Message-ID: <87ppwq7grp.fsf@gnu.org> (raw)
In-Reply-To: <1368692410.27899.11.camel@aiwass> (Luther's message of "Thu, 16 May 2013 04:20:10 -0400")

Luther <lutheroto@gmail.com> 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’d “Nix archive” (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’ll 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 “it depends”.  :-)

Thanks,
Ludo’.

[*] Can be obtained with ‘nix-store --export
    /nix/store/53fv51m204zhkyfrkkacjyhm2h1k4xad-gcc-4.8.0 | bzip2’ or
    the API in (guix nar).

      reply	other threads:[~2013-05-16 21:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16  8:20 Does --no-substitutes save bandwidth? Luther
2013-05-16 21:32 ` Ludovic Courtès [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppwq7grp.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=bug-guix@gnu.org \
    --cc=lutheroto@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.