* SOMAXCONN - bump up or sysctl?
@ 2001-07-13 4:52 Tim Hockin
2001-07-13 8:14 ` David S. Miller
2001-07-13 10:44 ` Alan Cox
0 siblings, 2 replies; 4+ messages in thread
From: Tim Hockin @ 2001-07-13 4:52 UTC (permalink / raw)
To: Linux Kernel Mailing List
hey all,
We have a request to bump up SOMAXCONN. Are there are repurcussions to
doing so? Would it be better to make it a sysctl?
--
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SOMAXCONN - bump up or sysctl?
[not found] <3B4E7EA1.F904DC43@sun.com.suse.lists.linux.kernel>
@ 2001-07-13 7:35 ` Andi Kleen
0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2001-07-13 7:35 UTC (permalink / raw)
To: Tim Hockin; +Cc: linux-kernel
Tim Hockin <thockin@sun.com> writes:
> hey all,
>
> We have a request to bump up SOMAXCONN. Are there are repurcussions to
> doing so? Would it be better to make it a sysctl?
Have you checked if the requester is not satisfied with an increase
of /proc/sys/net/ipv4/tcp_max_syn_backlog? If they "know" from 2.0
that they want a SOMAXCONN increase then that's very likely the case.
In 2.2+ SOMAXCONN only applies to established sockets waiting to get
accept()ed; and when you have 128 established sockets that don't get served
by accept you have a big problem.
SYN-RECV sockets are a completely different thing and they are tuned
by the first sysctl and some other heuristics in 2.4.
You can also turn on syncookies there to handle syn-recv load spikes.
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SOMAXCONN - bump up or sysctl?
2001-07-13 4:52 Tim Hockin
@ 2001-07-13 8:14 ` David S. Miller
2001-07-13 10:44 ` Alan Cox
1 sibling, 0 replies; 4+ messages in thread
From: David S. Miller @ 2001-07-13 8:14 UTC (permalink / raw)
To: Tim Hockin; +Cc: Linux Kernel Mailing List
Tim Hockin writes:
> We have a request to bump up SOMAXCONN. Are there are repurcussions to
> doing so? Would it be better to make it a sysctl?
There is a very serious repurcussion to allowing this be increased in
any form, people won't fix their code if you just give them this
bandaid.
The new connection backlog controlled by an upper limit of
SOMAXCONN is a "buffer" between the kernel and userspace.
It is _NOT_ a permanent storage area inside the kernel for new
connections. Once people writing these apps start thinking about it
as a buffer (ie. think "temporary"), the thought to increase SOMAXCONN
will occur less often in their minds.
I have never been shown a legitimate argument for increasing
SOMAXCONN.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SOMAXCONN - bump up or sysctl?
2001-07-13 4:52 Tim Hockin
2001-07-13 8:14 ` David S. Miller
@ 2001-07-13 10:44 ` Alan Cox
1 sibling, 0 replies; 4+ messages in thread
From: Alan Cox @ 2001-07-13 10:44 UTC (permalink / raw)
To: Tim Hockin; +Cc: Linux Kernel Mailing List
> We have a request to bump up SOMAXCONN. Are there are repurcussions to
> doing so? Would it be better to make it a sysctl?
Its pretty meaningless as a value. People who say they need a larger
SOMAXCONN are as a general rule simply wrong in the Linux case
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-07-13 10:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3B4E7EA1.F904DC43@sun.com.suse.lists.linux.kernel>
2001-07-13 7:35 ` SOMAXCONN - bump up or sysctl? Andi Kleen
2001-07-13 4:52 Tim Hockin
2001-07-13 8:14 ` David S. Miller
2001-07-13 10:44 ` Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.