Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2023 04:46:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 273030] The ZFS default compression method described in the handbook is not zstd.
Message-ID:  <bug-273030-9-9pNhrkulCB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273030-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273030-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273030

Li-Wen Hsu <lwhsu@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allanjude@FreeBSD.org,
                   |                            |lwhsu@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Li-Wen Hsu <lwhsu@FreeBSD.org> ---
I think there are two things here. If you're talking about the default
compression setting of the zfs on root done by the bsdinstall, in=20

  usr.sbin/bsdinstall/scripts/zfsboot

which is indeed set to lz4:

  : ${ZFSBOOT_POOL_CREATE_OPTIONS:=3D-O compress=3Dlz4 -O atime=3Doff}

We can discuss if we want to change it to zstd.

On the other hand, the default compression algorithm of OpenZFS, is still l=
z4
when lz4_compress feature is enabled (and which is the default.)

This is in the OpenZFS doc:

=20
https://openzfs.github.io/openzfs-docs/man/master/7/zfsprops.7.html#compres=
sion

and so as the imported https://man.freebsd.org/zfsprops/7

Finally, you may misinterpret that paragraph. What it describes is that Ope=
nZFS
2.0 is the default since FreeBSD 13.0, and thus zstd is an available option,
not the default compression algorithm is changed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273030-9-9pNhrkulCB>