HomeFreeBSD

Allow ZFS ARC min / max to be tuned at runtime

Description

Allow ZFS ARC min / max to be tuned at runtime

Prior to this change ZFS ARC min / max could only be changed using
boot time tunables, this allows the values to be tuned at runtime
using the sysctls:

  • vfs.zfs.arc_max
  • vfs.zfs.arc_min

When adjusting ZFS ARC minimum the memory used will only reduce
to the new minimum given memory pressure.

Reviewed by: allanjude
Approved by: re (gjb)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D5907

Details