Page MenuHomeFreeBSD

Update legacy sysctls
Needs ReviewPublic

Authored by jlduran on Mar 18 2022, 7:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 8:21 PM
Unknown Object (File)
Sep 30 2024, 4:31 AM
Unknown Object (File)
Sep 24 2024, 5:20 AM
Unknown Object (File)
Sep 19 2024, 2:28 AM
Unknown Object (File)
Sep 18 2024, 10:17 PM
Unknown Object (File)
Sep 18 2024, 4:14 PM
Unknown Object (File)
Sep 18 2024, 5:12 AM
Unknown Object (File)
Sep 14 2024, 1:55 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
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

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

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

usr.sbin/bsdinstall/scripts/zfsboot
73

Worth following up on bug #266374