Page MenuHomeFreeBSD

Update legacy sysctls
Needs ReviewPublic

Authored by jlduran_gmail.com on Mar 18 2022, 7:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:11 AM
Unknown Object (File)
Nov 22 2023, 3:01 PM
Unknown Object (File)
Nov 21 2023, 5:11 PM
Unknown Object (File)
Nov 12 2023, 1:19 PM
Unknown Object (File)
May 21 2023, 11:06 PM
Unknown Object (File)
Feb 17 2023, 2:40 AM
Unknown Object (File)
Dec 14 2022, 6:55 PM
Unknown Object (File)
Nov 28 2022, 7:26 PM

Details

Reviewers
None
Group Reviewers
Contributor Reviews (src)
Summary

Update references to the new sysctls:

kern.ipc.somaxconn       -> kern.ipc.soacceptqueue
vfs.zfs.arc_max          -> vfs.zfs.arc.max
vfs.zfs.arc_min          -> vfs.zfs.arc.min
vfs.zfs.min_auto_ashift  -> vfs.zfs.vdev.min_auto_ashift
vfs.zfs.prefetch_disable -> vfs.zfs.prefetch.disable
vfs.zfs.zil_disable      -> vfs.zfs.zil.replay_disable

There may be others, but this is a good start.

I fear this change may be too cross-cutting, feel free to break it into several digestible commits if necessary. Nevertheless, no functional changes are intended.

NOTE: Do not MFC to stable/12.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt
30

The ARC values should be unsigned long (tangential to the change).

release/tools/gce.conf
89 ↗(On Diff #103979)
commit 2bdf61ca29d075559a8531962ec4e5f09d1105ed
Author: Andre Oppermann <andre@FreeBSD.org>
Date:   Sat Oct 20 12:53:14 2012 +0000

    Hide the unfortunate named sysctl kern.ipc.somaxconn from sysctl -a
    output and replace it with a new visible sysctl kern.ipc.acceptqueue
    of the same functionality.  It specifies the maximum length of the
    accept queue on a listen socket.
    
    The old kern.ipc.somaxconn remains available for reading and writing
    for compatibility reasons so that existing programs, scripts and
    configurations continue to work.  There no plans to ever remove the
    orginal and now hidden kern.ipc.somaxconn.

This one can be MFC'd to 12

release/tools/gce.conf
89 ↗(On Diff #103979)

This part pushed to main in 9871ae6aa91f, please update this diff at your convenience.

(Also, when generating the diff to upload to Phabricator please use -U 999999 to get full context.)

release/tools/gce.conf
89 ↗(On Diff #103979)

Great! It is probably better if the changes land individually.

usr.sbin/bsdinstall/scripts/zfsboot
73

Worth following up on bug #266374