From c0b808b793d09700ca4eb16b2a00881af2ad6979 Mon Sep 17 00:00:00 2001 From: mathwhiz1212 Date: Sat, 12 Apr 2025 04:32:31 -0600 Subject: [PATCH] Update comments. --- Proxmox/reduce-ssd-writes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Proxmox/reduce-ssd-writes.sh b/Proxmox/reduce-ssd-writes.sh index 794c910..3895cd1 100755 --- a/Proxmox/reduce-ssd-writes.sh +++ b/Proxmox/reduce-ssd-writes.sh @@ -14,7 +14,8 @@ echo “options zfs zfs_txg_timeout=30” > /etc/modprobe.d/zfs.conf # Set txg_t zfs set atime=off rpool # Turn off atime. zfs set logbias=throughput rpool # Change logbias to throughput. zfs set compression=lz4 rpool # Set compression to lz4 instead of the older LZJB. -zfs set recordsize=16K rpool +zfs set recordsize=16K rpool # This works better with lots of little writes, and seems to be recommended for VMs on SSDs unless your workload is many large writes. + # ZFS seems to recommend smaller recordsizes for VMs if you're running on SSDs in general depending on the workload: # https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#virtual-machines # https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#zvol-volblocksize