Re: OpenZFS: sysctl: unknown oid 'vfs.zfs.arc_max'

From: Allan Jude <allanjude_at_freebsd.org>
Date: Sat, 28 Mar 2020 11:17:30 -0400
On 2020-03-28 02:43, Graham Perrin wrote:
> This occurs when I enable OpenZFS:
> 
> OpenZFS: sysctl: unknown oid 'vfs.zfs.arc_max'
> 
> Is it to be deprecated? Or is it not yet a feature of OpenZFS for FreeBSD?
> 
> From <https://pastebin.com/hTCTWPW2>:
> 
> grahamperrin_at_momh167-gjp4-8570p:~ % sysctl vfs.zfs.arc_max
> sysctl: unknown oid 'vfs.zfs.arc_max'
> grahamperrin_at_momh167-gjp4-8570p:~ % date ; uname -v
> Wed 25 Mar 2020 04:52:22 GMT
> FreeBSD 13.0-CURRENT #1 r359249: Tue Mar 24 00:12:27 GMT 2020
> root_at_momh167-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
> grahamperrin_at_momh167-gjp4-8570p:~ % kldstat | grep zfs
>  2    1 0xffffffff82108000   58ac58 openzfs.ko
> grahamperrin_at_momh167-gjp4-8570p:~ % grep zfs /boot/loader.conf
> # zfs_load="YES"
> openzfs_load="YES"
> grahamperrin_at_momh167-gjp4-8570p:~ % grep zfs /etc/sysctl.conf
> vfs.zfs.min_auto_ashift=12
> # HP EliteBook 8570p 16 GB memory vfs.zfs.arc_max defaults to 15523106816
> # vfs.zfs.arc_max="7761553408"
> vfs.zfs.arc_max="2147483648"
> grahamperrin_at_momh167-gjp4-8570p:~ % zfs-stats -a
> 
> …
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

The OpenZFS, the variable is vfs.zfs.arc.max

Basically 'arc' was converted to a subtree.

We should add some backwards compat sysctls to cover some of these
renames etc so configs and scripts don't break etc.

-- 
Allan Jude


Received on Sat Mar 28 2020 - 14:26:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC