Setting a ZFS 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 2 GB of base + 1 GB of RAM per TB of storage + 5GB if you use de-duplication.

options zfs zfs_arc_max=68719476736

Generic Example

Edit the zfs.conf file to use approximately 2 GB of base + 1 GB of RAM per TB of storage + 5GB if you use de-duplication.

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

Then update your initram.

$ update-initramfs -u