unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Florian Paul Schmidt <mista.tapas@gmx.net>
Cc: 21949@debbugs.gnu.org
Subject: bug#21949: git-2.6.3: 108M download, but 23M installed
Date: Wed, 18 Nov 2015 19:12:43 +0100	[thread overview]
Message-ID: <87mvubnplw.fsf@gnu.org> (raw)
In-Reply-To: <564C22B1.8060106@gmx.net> (Florian Paul Schmidt's message of "Wed, 18 Nov 2015 08:03:13 +0100")

Florian Paul Schmidt <mista.tapas@gmx.net> skribis:

> I noticed this earlier and wonder if it's a bug or not:
>
> When downloading the git-2.6.3 substitute from hydra it is a hefty
> 108M download, but installed in the store it's just 23M.

The fact that the result is small is due to hard links (under
libexec/git-core), resulting from deduplication performed by the daemon:

--8<---------------cut here---------------start------------->8---
$ du -msc /gnu/store/8xk88mnx31b6i9jz0n7x7zm4xrnknj3b-git-2.6.3
23	/gnu/store/8xk88mnx31b6i9jz0n7x7zm4xrnknj3b-git-2.6.3
23	totalo
$ du -mscl /gnu/store/8xk88mnx31b6i9jz0n7x7zm4xrnknj3b-git-2.6.3
249	/gnu/store/8xk88mnx31b6i9jz0n7x7zm4xrnknj3b-git-2.6.3
249	totalo
--8<---------------cut here---------------end--------------->8---

The problem is that the Nix archive format (Nar) is dumb and doesn’t do
anything sensible with hard links.  So the actual archive is indeed that
big:

--8<---------------cut here---------------start------------->8---
$ guix archive --export /gnu/store/8xk88mnx31b6i9jz0n7x7zm4xrnknj3b-git-2.6.3 | wc -c
259217552
--8<---------------cut here---------------end--------------->8---

Hydra compresses it with bzip2, hence the 108 MiB.

Git is obviously a pathological case.  However, the issue is a more
global one that I think we should address using content-addressable
storage:

  https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00666.html

Ludo’.

  reply	other threads:[~2015-11-18 18:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18  7:03 bug#21949: git-2.6.3: 108M download, but 23M installed Florian Paul Schmidt
2015-11-18 18:12 ` Ludovic Courtès [this message]
2016-02-28 15:44   ` Ludovic Courtès

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=87mvubnplw.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=21949@debbugs.gnu.org \
    --cc=mista.tapas@gmx.net \
    /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).