Last active
September 21, 2019 21:37
-
-
Save click0/82beeb7ebaa90fbe14460b3d8dbe4016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
zfs_arc_min=4 #G | |
zfs_arc_max=8 #G | |
cat << EOF >> /etc/modprobe.d/zfs.conf | |
# ZFS tuning for a proxmox machine that reserves 64GB for ZFS | |
# | |
# Don't let ZFS use less than 4GB and more than 64GB | |
options zfs zfs_arc_min=$(( ${zfs_arc_min} * 1024 * 1024 * 1024 )) | |
options zfs zfs_arc_max=$(( ${zfs_arc_max} * 1024 * 1024 * 1024 )) | |
# | |
# disabling prefetch is no longer required | |
options zfs l2arc_noprefetch=0 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment