1.6.2. ZFS Set Arc-Cache Limit

To set the ZFS Arc-Cache Limit

$ nano /etc/modprobe.d/zfs.conf

EPYC Server Example

Edit the zfs.conf file to use approximately 1 GB of RAM per TB of storage.

options zfs zfs_arc_max=68719476736

Generic Example

Edit the zfs.conf file to use approximately 1 GB of RAM per TB of storage.

options zfs zfs_arc_max=x       (in bytes)
$ cat /proc/spl/kstat/zfs/arcstats |grep c_

Then update initram

$ update-initramfs -u