* bug#21949: git-2.6.3: 108M download, but 23M installed
@ 2015-11-18 7:03 Florian Paul Schmidt
2015-11-18 18:12 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Florian Paul Schmidt @ 2015-11-18 7:03 UTC (permalink / raw)
To: 21949
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
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.
Compression failure? :)
Regards,
Flo
- --
https://fps.io
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEbBAEBCAAGBQJWTCKwAAoJEA5f4Coltk8ZKRgH9iDfZsPd7x5k6XZ3MmCKtj/x
4FkuNHAnaZs2yZ1uQnGoK4cdPzSHkzPPl5A//ZvO7WXrgaw0fW1m2iFe4fcc7uHW
oU81s7GszXHMEha8WelhzUtr+NyLYWnICg5/9EIHc75eNQcA9hVa514wbkSKXokS
DYo3iH+h0CkxdV4QnwDKP2Rv+TS5ZR9UoLjRcawafM7ZeXbbPW2yyKJxUrsRc+ti
uG3MIgfeRyqOus1StlntYZRt+eMZzY9RmmRaocWxDsSBT4WL7Tx8CzqIO6YA66T7
Kb1eMib5gCYmk8HXpxXGPRaRdhGUzlzBpWCP4uvIGW7LrJWHZVAeJIAVF1HldQ==
=QV3F
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21949: git-2.6.3: 108M download, but 23M installed
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
2016-02-28 15:44 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-11-18 18:12 UTC (permalink / raw)
To: Florian Paul Schmidt; +Cc: 21949
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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21949: git-2.6.3: 108M download, but 23M installed
2015-11-18 18:12 ` Ludovic Courtès
@ 2016-02-28 15:44 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2016-02-28 15:44 UTC (permalink / raw)
To: Florian Paul Schmidt; +Cc: 21949-done
ludo@gnu.org (Ludovic Courtès) skribis:
> 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:
I figured a simple fix is to have ‘make install’ use symlinks instead of
hard links. Done in 1a59b6d.
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-28 15:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-02-28 15:44 ` Ludovic Courtès
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.