Tuning VM disk performance for a passthrough setup (host on zfs)
The entirety of this post is thanks to /u/mercenary_sysadmin on reddit (post 1) (post 2, with benchmarks). Plenty of beers on me if you see this and are ever in Singapore.
Cliffnotes version for me to remember:
zfs set recordsize=16K
Here’s a benchmark from CrystalDiskMark with the above created image:
Disk is attached to the VM as:
-device virtio-scsi-pci,id=scsi0 \
zfs set recordsize=1M