Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 19:48:25 -0400
From:      Glen Barber <gjb@FreeBSD.org>
To:        "Robison, Dave" <david.robison@fisglobal.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS compression doesn't work
Message-ID:  <20120827234825.GN1435@glenbarber.us>
In-Reply-To: <503BF387.2080309@fisglobal.com>
References:  <DUB109-W131518687202B07CBB6F022C4A20@phx.gbl> <20120827221528.GA69174@server.rulingia.com> <503BF387.2080309@fisglobal.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--T4IYkFBVPN84tP7K
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 27, 2012 at 03:24:07PM -0700, Robison, Dave wrote:
> On 08/27/2012 15:15, Peter Jeremy wrote:
> > On 2012-Aug-27 23:51:06 +0200, antonin tessier <antonintessier@live.fr>=
 wrote:
> >> I am trying to understand and use ZFS features. My issue is that compr=
ession doesn't work,
>=20
> Not sure what "compression=3Dgzip" will give you. I believe you might be
> safer using "compression=3Dgzip-6" or whichever value you want to use.
> gzip9 will be pretty slow if that's the default for "gzip".
>=20

zfs(8) states:

 compression=3Don | off | lzjb | gzip | gzip-N | zle
 [...]
  You can specify the gzip level by using the value gzip-N
  where N is an integer from 1 (fastest) to 9 (best compression
  ratio). Currently, gzip is equivalent to gzip-6 (which is
  also the default for gzip(1)).

> I use lzjb because there isn't much advantage to gzip, at least in my
> experience, and lzjb is fast. I did some testing and didn't find a big
> space savings with gzip-6 or gzip-9.
>=20

gzip-9 will gain you almost no additional compression over gzip-6, and
will certainly cost more CPU cycles.  See gzip(1).

Glen


--T4IYkFBVPN84tP7K
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBCAAGBQJQPAdJAAoJEFJPDDeguUajhz0IALONOB87xeUHAf81oC6f78PK
ceSPkPfesgF6Igs3B+U666DonAcPhktXAWILxmhZFGoywYw9fSIN6yJnKhfW/lqk
bqIK54z64W2TaYusSl4wjwgJpjuKQP5Ex9YatIW+S/8DbnTj5Bp3Zu4HATfWVrbV
gUQoXCiLcqORCsUxFn31RW4QFw18Sf0PGqjO3kNF62SQjZLDQp5SIP3n0wrXH4C6
LSm91ulEpuxANeOIAAdRrwLiWKQD4AeASKfqtkVZKYr6S5P/W/fOIaUnm6tqu/CR
5B67OHl9g7tdblIWsND3J44j1t+ikUszhsbE/OEmifTdmHm/STmXMdfnxLisblM=
=KCrw
-----END PGP SIGNATURE-----

--T4IYkFBVPN84tP7K--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120827234825.GN1435>