From: "David S. Miller" <davem@redhat.com>
To: davidm@hpl.hp.com
Cc: davidm@napali.hpl.hp.com, ak@suse.de, netdev@oss.sgi.com
Subject: Re: SOMAXCONN too low
Date: Wed, 29 Oct 2003 09:22:20 -0800 [thread overview]
Message-ID: <20031029092220.12518b68.davem@redhat.com> (raw)
In-Reply-To: <16287.62792.721035.910762@napali.hpl.hp.com>
On Wed, 29 Oct 2003 09:13:44 -0800
David Mosberger <davidm@napali.hpl.hp.com> wrote:
> >>>>> On Wed, 29 Oct 2003 13:33:15 +0100, Andi Kleen <ak@suse.de> said:
>
> Andi> Another alternative would be to make it a fraction of the
> Andi> listen() argument per socket
> Andi> (e.g. min(tcp_max_syn_backlog,min(128,10%*listenarg))) to
> Andi> allow the application to easily change it.
>
> I don't understand what purpose this would serve. Seems to me it
> would make life only more complicated for apps that know what they're
> doing.
Andi's saying the the max backlog should be a function of
the queue length the user asks for when he makes the listen()
system call.
Also note that we'll need to tweak the TCP listening socket SYNQ hash
table size if we modify these kinds of things.
> At the moment, in-kernel servers are at an unfair advantage over
> user-space servers for this reason.
I totally disagree, the only reason things like TuX perform better
than their userland counterparts and don't run into SOMAXCONN issues
is because it is threaded properly. This is where all of the "jitter"
stuff you keep talking about really comes from.
When I've asked in the past to see code for userland servers that have
a problem wrt. SOMAXCONN, it's always the case that the userland
server only lets one of it's threads take new connections via
accept(). It's no wonder they have problems....
This is why I'm usually big time against changing this value, if we
change it we may be less likely to discover userland server stupidity
like that I mentioned above.
next prev parent reply other threads:[~2003-10-29 17:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031029092220.12518b68.davem@redhat.com \
--to=davem@redhat.com \
--cc=ak@suse.de \
--cc=davidm@hpl.hp.com \
--cc=davidm@napali.hpl.hp.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).