Bug 201786 - [sysctl] kern.ipc.somaxconn isn't visible when listing all variables
Summary: [sysctl] kern.ipc.somaxconn isn't visible when listing all variables
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 12:58 UTC by Anton Saietskii
Modified: 2015-10-27 16:02 UTC (History)
3 users (show)

See Also:


Attachments
make de description of the sysctl a bit more informative (568 bytes, patch)
2015-08-27 16:45 UTC, Willem Jan Withagen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Saietskii 2015-07-23 12:58:51 UTC
root@support00:~# uname -aKU
FreeBSD support00.local 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64 1001000 1001000
root@support00:~# sysctl -a | fgrep somaxconn
root@support00:~# sysctl kern.ipc.somaxconn
kern.ipc.somaxconn: 256
root@support00:~#
Comment 1 Marcus Reid 2015-07-24 05:43:40 UTC
That behavior is requested explicitly with CTLFLAG_SKIP:

    SYSCTL_PROC(_kern_ipc, KIPC_SOMAXCONN, somaxconn,
        CTLTYPE_UINT | CTLFLAG_RW | CTLFLAG_SKIP,
        0, sizeof(int), sysctl_somaxconn, "I",
        "Maximum listen socket pending connection accept queue size (compat)");
Comment 2 Marcus Reid 2015-07-24 06:03:34 UTC
------------------------------------------------------------------------
r241781 | andre | 2012-10-20 05:53:14 -0700 (Sat, 20 Oct 2012) | 10 lines

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.

------------------------------------------------------------------------
Comment 3 Anton Saietskii 2015-07-24 07:07:48 UTC
(In reply to Marcus Reid from comment #2)

Oh, thanks for the explanation. I've tried to find info about this sysctl in src/UPDATING file.
Comment 4 Willem Jan Withagen 2015-08-27 16:45:05 UTC
Created attachment 160417 [details]
make de description of the sysctl a bit more informative