[Nix-dev] Deduplication

2014-04-14 Thread Raahul Kumar
I followed Eelco's suggestion of running nix-store --optimise. Output: `/nix/store/.links/09d75zzfhid0v9azq4qpprhfpfyjb27b89qnarqwz6bqgjxl7pq6' has maximum number of links 172.20 MiB freed by hard-linking 34905 files; there are 351670 files with equal contents out of 365448 files in total

Re: [Nix-dev] Deduplication

2014-04-14 Thread Mathijs Kwik
Raahul Kumar raahul.ku...@gmail.com writes: Thanks Kirill, I'll go email the BTRFS devs, see if they have a fix for this hardlink issue. Anyone else got a workaround for the dedup issue with Btrfs and nixos? I think you misunderstood the output. There are X files with equal contents out of

Re: [Nix-dev] Deduplication

2014-04-14 Thread Vladimír Čunát
On 04/14/2014 09:51 AM, Mathijs Kwik wrote: But it's still whole-file based. btrfs is internally able to support block-level deduplication, which is very cool for making copies of things like database copies and virtualization images. Of course these cases are already served by snapshot volumes,