Show loads of information about ZFS
<syntaxhighlight lang="bash">arc_summary</syntaxhighlight>
Set ZFS max ARC size. This is useful to reduce the amount of memory used by ZFS. This command sets it to 4 GB:
<syntaxhighlight lang="bash">echo 4000000000 > /sys/module/zfs/parameters/zfs_arc_max</syntaxhighlight>
This will be reset to the default of 0 (=unlimited) after reboot. It can be persisted in a modprobe configuration like this:
<syntaxhighlight lang="bash">cat > /etc/modprobe.d/zfs.conf <<EOF
# Setting up ZFS ARC size on Ubuntu as per our needs
# Set Max ARC size => 4 GB
options zfs zfs_arc_max=4000000000
# Set Min ARC size => 1 GiB == 1073741824
options zfs zfs_arc_min=1073741824
EOF
</syntaxhighlight>
[[Category:Documentation]]