[Bug 273030] The ZFS default compression method described in the handbook is not zstd.

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Aug 2023 04:46:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273030

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 

  usr.sbin/bsdinstall/scripts/zfsboot

which is indeed set to lz4:

  : ${ZFSBOOT_POOL_CREATE_OPTIONS:=-O compress=lz4 -O atime=off}

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

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

This is in the OpenZFS doc:

 
https://openzfs.github.io/openzfs-docs/man/master/7/zfsprops.7.html#compression

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

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

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