ZFS RAM allocation
On this page 1 section
Increase available ram for ZFS on Truenas scale
To check the amount of memory that is allocated
cat /sys/module/zfs/paramaters/zfs_arc_max
To modify the amount of memory in use (in bytes, 15gb) Change after echo to the required amount of bytes.
echo 16106127360 >> /sys/module/zfs/parameters/zfs_arc_max