To display the compression ratio for the ZFS dataset /var/log on the pool
mypool, run the following command:

zfs get refcompressratio mypool/var/log

The refcompressratio will only display the compression ratio for that specific
dataset, not the descendant datasets. To include the child datasets, the
command looks like this:

zfs get compressratio mypool/var

-- Benedict Reuschling <bcr@FreeBSD.org>

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/fbfortune/statuses/114331724034853388 on your instance and quote it. (Note that quoting is not supported in Mastodon.)