On 20/01/2010 13:39, Wajih Ahmed wrote:
I have a 13GB text file. I turned ZFS compression on with "zfs set
compression=on mypool". When i copy the 13GB file into another file, it
does not get compressed (checking via du -sh). However if i set
compression=gzip, then the file gets compressed.
Is there a limit on file size with the default compression algorithm? I
did experiment with a much smaller file of 0.5GB with the default
compression and it did get compressed.
if a given block is not gaining more than 12.5% from a compression then
it will not be stored as compressed.
It might be that with a default compression algorithm (lzjb) you are
gaining less than 12.5% while when using gzip you are getting more
therefore blocks end up being compressed.
--
Robert Milkowski
http://milek.blogspot.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss