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

Allan Jude allanjude at freebsd.org
Sat Mar 28 15:26:56 UTC 2020


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20200328/a80b4a27/attachment.sig>


More information about the freebsd-current mailing list