Note: this is mainly meant for Root on ZFS on desktop or server systems, where latency is important.
Goal: keep the machine responsive under heavy writes (especially with compression enabled) by letting ZFS buffer more in RAM, limiting CPU spent in the write pipeline, and sending large I/Os to the SSD.
Note: Zstd compression / blake3 hashing / dnodesize auto require (if you use e.g. grub) to have a dedicated /boot partition.
- Set "dirty" buffering to 1-2 GiB, so short bursts of writes don't immediately throttle.
zfs_dirty_data_max=1073741824