Update Proxmox/reduce-ssd-writes.sh
This commit is contained in:
parent
3fc119a68c
commit
46a90b129e
@ -15,7 +15,7 @@ echo "starting changes"
|
|||||||
|
|
||||||
echo 'options zfs zfs_txg_timeout=30' > /etc/modprobe.d/zfs.conf # Set txg_timeout to 30 seconds. This introduces a higher risk of data loss.
|
echo 'options zfs zfs_txg_timeout=30' > /etc/modprobe.d/zfs.conf # Set txg_timeout to 30 seconds. This introduces a higher risk of data loss.
|
||||||
zfs set atime=off rpool # Turn off atime.
|
zfs set atime=off rpool # Turn off atime.
|
||||||
zfs set logbias=throughput rpool # Change logbias to throughput.
|
zfs set logbias=throughput rpool # Change logbias to throughput. Don't do this if you have a custom log device for your pool. You'll want latency for that.
|
||||||
zfs set compression=lz4 rpool # Set compression to lz4 instead of the older LZJB.
|
zfs set compression=lz4 rpool # Set compression to lz4 instead of the older LZJB.
|
||||||
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 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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user