[Bug 283708] Setting hw.bus.devctl_queue to 1000 sysctlbyname: Invalid argumen

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 29 Dec 2024 02:47:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283708

            Bug ID: 283708
           Summary: Setting hw.bus.devctl_queue to 1000 sysctlbyname:
                    Invalid argumen
           Product: Base System
           Version: 14.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: alex@nixd.org

Hello,

There is a strange logic in enabling or disabling the devd and
hw.bus.devctl_queue.

I have accidentally stopped the devd daemon and was not able to restart it
again because

root@exp-dev0:/home/alex # service devd start
Starting devd.
devd: Setting hw.bus.devctl_queue to 1000
devd: sysctlbyname: Invalid argument
/etc/rc.d/devd: WARNING: failed to start devd

which RUINED everything because I had to restart the machine and interrupt the
service.

After Bug 279198 was fixed restarting devd becomes a problem. Why
hw.bus.devctl_queue is not allowed to be reset back? 

I attempted to reset it back from console and even tho it was not possible. I
got the same error.

hw.bus.devctl_queue: 1000
sysctl: hw.bus.devctl_queue=999: Invalid argument

Its frustrating because the whole logic is broken especially if it is required
to run devd with -d flag to troubleshoot issues.

-- 
You are receiving this mail because:
You are the assignee for the bug.