Bug 194568 - sys/kern/uipc_socket: Add new sysctl for minimum soacceptqueue length
Summary: sys/kern/uipc_socket: Add new sysctl for minimum soacceptqueue length
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords: easy, feature, needs-qa
Depends on:
Blocks:
 
Reported: 2014-10-23 23:37 UTC by William Pitcock
Modified: 2021-07-19 03:02 UTC (History)
1 user (show)

See Also:


Attachments
freebsd-soacceptqueue-minimum.patch (1.58 KB, patch)
2014-10-23 23:37 UTC, William Pitcock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Pitcock 2014-10-23 23:37:39 UTC
Created attachment 148599 [details]
freebsd-soacceptqueue-minimum.patch

Hello,

The attached patch adds a new sysctl:

   kern.ipc.soacceptqueue_minimum

It allows the system administrator to override the socket accept queue length.  This is useful in cases where applications call listen(2) with too low of a socket queue length for a busy deployment, yet there is no application tunable for it.

I look forward to any comments on the patch, we are using it in production on a large cluster already.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-19 03:02:09 UTC
^Triage:

  somaxconn is now kern.ipc.soacceptqueue so patch needs an update and rebased, but someone can likely handle this anyway, if we want it.