netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SOMAXCONN too low
@ 2003-10-29  6:58 David Mosberger
  2003-10-29 12:33 ` Andi Kleen
  2003-10-29 18:58 ` David S. Miller
  0 siblings, 2 replies; 10+ messages in thread
From: David Mosberger @ 2003-10-29  6:58 UTC (permalink / raw)
  To: netdev

I was a bit surprised to find that listen() is still capping at the
hard limit of SOMAXCONN (which is still 128).  This is ridiculously
low for high-performance servers.  Today's severs can do easily in
excess of 10,000 TCP connections/second so a queue length of 128
corresponds to just about 10ms, so it doesn't take much of bad
scheduling etc. to overflow the queue.

You obviously want some control over how big the listen queue can
grow, but it seems to me that a sysctl would be in place.  I found
this patch to do that, but no reaction to it:

  http://www.ussg.iu.edu/hypermail/linux/kernel/0205.0/1287.html

I also found this message:

  http://marc.theaimsgroup.com/?l=linux-net&m=98745977620384&w=2

but the argument makes little sense, because TUX bypasses sys_listen()
alltogether and therefore can set the listen queue length to anything
it wants.  In fact, tux2 defaults to a listen-queue size of 2048, so
if anything it is an argument _for_ increasing the max. listen-queue
size.

Also, it appears that current SuSE kernels do indeed have a
net.core.somaxconn sysctl to let a sysadmin choose a larger SOMAXCONN
value.

	--david

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-10-29 19:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29  6:58 SOMAXCONN too low David Mosberger
2003-10-29 12:33 ` Andi Kleen
2003-10-29 17:13   ` David Mosberger
2003-10-29 17:22     ` David S. Miller
2003-10-29 18:08       ` David Mosberger
2003-10-29 18:43         ` David S. Miller
2003-10-29 18:58 ` David S. Miller
2003-10-29 19:15   ` David Mosberger
2003-10-29 19:47   ` Andi Kleen
2003-10-29 19:45     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).