]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restore FreeBSD sysctl processing for arc.min and arc.max
authorAllan Jude <allan@klarasystems.com>
Mon, 16 Aug 2021 15:35:19 +0000 (11:35 -0400)
committerTony Hutter <hutter2@llnl.gov>
Tue, 14 Sep 2021 21:31:01 +0000 (14:31 -0700)
commit24e51e37495d0610ba6f5cce47e0db79d1649975
tree04db8a0e194535d591ab08487c3f79cc09efc638
parent744f3009fc78dd51183bdcb52a5c55811e6797f4
Restore FreeBSD sysctl processing for arc.min and arc.max

Before OpenZFS 2.0, trying to set the FreeBSD sysctl vfs.zfs.arc_max
to a disallowed value would return an error.
Since the switch, it instead only generates WARN_IF_TUNING_IGNORED

Keep the ability to set the sysctl's specifically to 0, even though
that is less than the minimum, because some tests depend on this.

Also lost, was the ability to set vfs.zfs.arc_max to a value less
than the default vfs.zfs.arc_min at boot time. Restore this as well.

Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #12161
include/os/freebsd/spl/sys/mod_os.h
include/sys/arc.h
include/sys/arc_impl.h
module/os/freebsd/zfs/sysctl_os.c
module/os/linux/zfs/arc_os.c
module/zfs/arc.c