Disk usage and ZFS deduplication

Daniel Kalchev daniel at digsys.bg
Tue Jun 14 15:27:13 UTC 2011



On 14.06.11 18:17, Per von Zweigbergk wrote:
>
> But in this case it's not the entire file being hardlinked, rather just some parts of the file being deduplicated so it's not exactly the same. Or is it? This is why I asked on the mailing list. :-)
>
>
Consider, 'storage' is different than file allocation.

With ZFS dedup, the storage (layer) decides whether to store new record, 
or to link it to an existing record. You have no control over this. If 
you ask how many blocks the file occupies in storage, that would be the 
entire file size. If some of the blocks are shared  with other files (or 
whatever) that does not change how many blocks the file uses.

It is different with compression.

Daniel


More information about the freebsd-fs mailing list