# Enable compression on a dataset sudo zfs set compression=on mypool/mydataset

zfs set compression=on zroot/mydataset

You're looking for a write-up on "FreeBSD Mastery: Advanced ZFS" and perhaps a PDF related to it. Here's some information:

The book is structured to guide users from system integration to low-level tuning: Boot Environments: Managing system states. Delegation and Jails: Granular permissions and containerization. Sharing & Replication: Networked storage and data migration. Block storage volumes. Advanced Hardware:

# Check dataset properties sudo zfs get all mypool/mydataset