There was a problem loading the comments.

Limit ZFS memory usage (ARC usage)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

To limit the amount of memory ZFS uses, you need to set two values:

  1. zfs_arc_min
  2. zfs_arc_max

You can set these values 'live' by echoing your desired values into /sys/module/zfs/parameters/zfs_arc_m(in|ax), but these will be reset to default after a reboot.

 

To make your values persistent, create (or edit) /etc/modprobe.d/zfs.conf and add:

options zfs zfs_arc_max=2147483648
options zfs zfs_arc_min=1073741824

 

Please note that you have to set the values to what you want, in bytes.

 

After changing this file, you need to update your initramfs. On normal Linux machines, run update-initramfs -u, on Proxmox machines using the Proxmox Boot Tool, run proxmox-boot-tool refresh.


Share via
Did you find this article useful?  

Related Articles

© Tuxis B.V.