Page MenuHomeFreeBSD

Update legacy sysctls
ClosedPublic

Authored by jlduran on Mar 18 2022, 7:22 AM.
Tags
None
Referenced Files
F139065419: D34598.id111645.diff
Sun, Dec 7, 7:28 AM
Unknown Object (File)
Sat, Dec 6, 2:47 AM
Unknown Object (File)
Thu, Dec 4, 9:56 PM
Unknown Object (File)
Mon, Dec 1, 2:57 AM
Unknown Object (File)
Tue, Nov 25, 10:56 PM
Unknown Object (File)
Tue, Nov 25, 8:02 PM
Unknown Object (File)
Mon, Nov 24, 10:29 AM
Unknown Object (File)
Mon, Nov 24, 7:22 AM

Details

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 Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #103979)

Worth following up on bug #266374

tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh
137 ↗(On Diff #164297)

I will exclude this change from the patch.

This revision is now accepted and ready to land.Oct 16 2025, 4:18 PM