Add somaxconn to Documentation/sysctl/net.txt
Subsystems (3)
PATCH 1/1 Add somaxconn to Documentation/sysctl/net.txt
From: Rob Landley <[email protected]>
Add somaxconn to Documentation/sysctl/net.txt
---
Documentation/sysctl/net.txt | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/sysctl/net.txt +6 -0
@@ -90,6 +90,12 @@ optmem_max Maximum ancillary buffer size allowed per socket. Ancillary data is a sequence of struct cmsghdr structures with appended data. +somaxconn +--------- + +Maximum backlog of unanswered connections for a listening socket. Provides +an upper bound on the "backlog" parameter of the listen() syscall. + 2. /proc/sys/net/unix - Parameters for Unix domain sockets -------------------------------------------------------
Signature · 1 line
Latency is more important than throughput. It's that simple. - Linus Torvalds
Quoted 18 lines · Rob Landley
From: Rob Landley <[email protected]>
Add somaxconn to
Documentation/sysctl/net.txtSigned-off-by Rob Landley <[email protected]>---
Documentation/sysctl/net.txt | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/sysctl/net.txt +0
-0@@ -90,6 +90,12 @@ optmem_max Maximum ancillary buffer size allowed per socket. Ancillary data is a sequence of struct cmsghdr structures with appended data.
Documentation/sysctl/net.txt optmem_max · line 101
Quoted 10 lines
Documentation/sysctl/net.txt +6
-0+somaxconn +--------- + +Maximum backlog of unanswered connections for a listening socket. Provides +an upper bound on the "backlog" parameter of the listen() syscall. + 2. /proc/sys/net/unix - Parameters for Unix domain sockets -------------------------------------------------------
Please cc netdev for such patches
Extract of Documentation/networking/ip-sysctl.txt
somaxconn - INTEGER
Limit of socket listen() backlog, known in userspace as SOMAXCONN. Defaults to 128. See also tcp_max_syn_backlog for additional tuning for TCP sockets.
I guess you need to change both files ?
Quoted 30 lines · On Tuesday 13 April 2010 13:40:12 Eric Dumazet wrote:
Quoted 22 lines · Rob Landley
From: Rob Landley <[email protected]>
Add somaxconn to
Documentation/sysctl/net.txtSigned-off-by Rob Landley <[email protected]>---
Documentation/sysctl/net.txt | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/sysctl/net.txt +0
-0@@ -90,6 +90,12 @@ optmem_max Maximum ancillary buffer size allowed per socket. Ancillary data is asequence of struct cmsghdr structures with appended data.
Documentation/sysctl/net.txt +4
-0+somaxconn +--------- + +Maximum backlog of unanswered connections for a listening socket.Quoted 4 lines
Provides +an upper bound on the "backlog" parameter of the
listen()syscall. +
2./proc/sys/net/unix- Parameters for Unix domain sockets
-------------------------------------------------------Please cc netdev for such patches
Quoted 8 lines
Extract of
Documentation/networking/ip-sysctl.txtsomaxconn - INTEGER
Limit of socketlisten()backlog, known in userspace as SOMAXCONN. Defaults to 128. See alsotcp_max_syn_backlogfor additional tuning for TCP sockets.I guess you need to change both files ?
Dunno. I just got a question on the busybox mailing list:
http://lists.busybox.net/pipermail/busybox/2010-April/072090.html
Looked in Documentation to see what /proc/sys/net/core/somaxconn actually _did_, found it was undocumented, grepped the kernel source for somaxconn, found just one chunk of code actually using it, replied to the guy's question:
http://lists.busybox.net/pipermail/busybox/2010-April/072096.html
And then tweaked the documentation with what I'd found, and sent in a doc patch so I wouldn't have to do that twice.
It's quite possible I got it wrong. Maybe it's per interface or something?
Rob
Signature · 1 line
Latency is more important than throughput. It's that simple. - Linus Torvalds