Greg Hogan <c...@greghogan.com> skribis:

> On Wed, Mar 5, 2025 at 7:48 AM Guillaume Le Vaillant <g...@posteo.net> wrote:
> [...]
>> You could also use btrfs instead of ext4 as file system; and if you
>> activate compression, it divides the actual size taken by the Guix store
>> by 3 (approximately).
>
> With the default zstd compression I am seeing a ratio of 2. Is there a
> noticeably better configuration?
>
> $ sudo `which compsize` /gnu/store
> Processed 27933035 files, 8142182 regular extents (20350437 refs),
> 15681709 inline.
> Type       Perc     Disk Usage   Uncompressed Referenced
> TOTAL       49%      260G         530G         1.5T
> none       100%      132G         132G         365G
> zstd        32%      128G         398G         1.2T

It depends on the compression level you use, and also on what is in the
store. For example, if you keep many compressed source archives because
you are compiling many packages, btrfs will not compress them.

On a machine using zstd:1 for fast compression and the Guix daemon started
with the "--gc-keep-derivations=yes" and "--gc-keep-outputs=yes" options
to keep more things in the store to recompile packages, I get:

Type       Perc     Disk Usage   Uncompressed Referenced  
TOTAL       46%       47G         101G         261G       
none       100%       21G          21G          55G       
zstd        32%       26G          79G         205G

Attachment: signature.asc
Description: PGP signature

Reply via email to