On Tue, Jul 10, 2012 at 4:40 PM, Jordi Espasa Clofent
<jespa...@minibofh.org> wrote:
> On 2012-07-10 11:34, Fajar A. Nugraha wrote:
>> compression = possibly less data  to write (depending on the data) =
>> possibly faster writes
>> Some data is not compressible (e.g. mpeg4 movies), so in that case you
>> won't see any improvements.
> Thanks for your answer Fajar.
> As I said in my initial mail, those zones are mainly only writing some
> Glassfish logs. Since they all are text files, I guess I can save a lot of
> space using compression. Hopefully I can even improve the performance. Can
> I?


Even "normal" OS files are usually compressible-enough. For example,
this is my root partition (Ubuntu, but uses zfs nontheles)

$ sudo zfs get compression,compressratio C/ROOT/precise
NAME            PROPERTY       VALUE     SOURCE
C/ROOT/precise  compression    gzip      inherited from C
C/ROOT/precise  compressratio  2.48x     -

so on that dataset I save over 50% I/O read/writes (in bytes)

> However. What's the difference using
> zfs set compression=on opt/zones/whatever_zone

on = standard LZJB compression (very fast, but doesn't compress much)

> or
> zfs set compression=gzip-6 opt/zones/whatever_zone

gzip-6 and gzip uses gzip compression. Fast enough, good compression.

> or
> zfs set compression=gzip-9 opt/zones/whatever_zone

gzip-9 = uses gzip's best, but also slowest, compression

zfs-discuss mailing list

Reply via email to