Hello Sanjeev,

Wednesday, August 30, 2006, 3:26:52 PM, you wrote:

SB> Hi,

SB> We were trying out the "compression=on" feature of ZFS and were 
SB> wondering if it would make
SB> sense to have ZFS do compression only on a certain kind of files (or 
SB> rather the otherway around).

SB> Our observation :
SB> - If ZFS finds that it cannot achieve a certain amount of compression it
SB> does not compress the file.
SB>   However, to figure this out ZFS would have to first compress the 
SB> block's data. This means ZFS ends
SB>   up consuming resources and that overhead is not worth it.
SB> Is the above observation correct. If so, is there someway this can be
SB> tuned/controlled ?

right now it's 12% minimum compression gain required.
Unfortunately last I checked it was hard-coded.

Additionally it's not file based but block based so for large files
which are already compressed zfs during writing will try to compress
block by block.


SB> If not how about having a feature where we could tell ZFS something like :
SB>  " Don't try to compress the .gz files" ? We could probably use the 
SB> magic number of the file to
SB> identify the type.

SB> Does this make sense ? Or is this a stupid idea ?

I guess some functionality like this would be great.
IIRC it was also proposed by someone from ZFS team long time ago :)


-- 
Best regards,
 Robert                            mailto:[EMAIL PROTECTED]
                                       http://milek.blogspot.com

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to