Skip to content

Instantly share code, notes, and snippets.

@AnatomicJC
Created September 15, 2019 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnatomicJC/ea795105d6c51a6f5c9a4ab60974b288 to your computer and use it in GitHub Desktop.
Save AnatomicJC/ea795105d6c51a6f5c9a4ab60974b288 to your computer and use it in GitHub Desktop.
ZFS ARC Memory
$ cat /proc/spl/kstat/zfs/arcstats |grep c_
c_min                           4    536870912
c_max                           4    2147483648
cat /etc/modprobe.d/zfs.conf
# https://www.google.com/search?q=bit+calculator Bit > GigaBit
# Min 512MB / Max 2048 MB Limit
options zfs zfs_arc_min=536870912
options zfs zfs_arc_max=2147483648
update-initramfs -u
cat /sys/module/zfs/parameters/zfs_arc_max
cat /sys/module/zfs/parameters/zfs_arc_min

echo 2147483648 > /sys/module/zfs/parameters/zfs_arc_max
echo 536870912 > /sys/module/zfs/parameters/zfs_arc_min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment