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 10:43:50 -0800 [thread overview]
Message-ID: <20031029104350.1db8c94d.davem@redhat.com> (raw)
In-Reply-To: <16288.537.258222.601897@napali.hpl.hp.com>
On Wed, 29 Oct 2003 10:08:25 -0800
David Mosberger <davidm@napali.hpl.hp.com> wrote:
> We noticed this problem with a server that uses one thread per CPU
> (pinned). Why don't you run tux with the "backlog" parameter set to
> 128 and see what happens under heavy load?
Then TuX could be improved too, what can I say? If the thread taking
in new connections does anything more involved than:
while (1) {
fd = accept(listen_fd);
thr = pick_service_thread();
spin_lock(new_conn_queue[thr]);
append(fd, new_conn_queue[thr]);
spin_unlock(new_conn_queue[thr]);
wake(thr);
}
it's broken. I severly doubt that anyone can show that, when using
the above scheme, their multi-GHZ cpu cannot handle whatever
connection load you put on the system.
The fact that people have written web servers that outperform
TuX and handle the load better is something else to think about.
They existing within the SOMAXCONN limits.
next prev parent reply other threads:[~2003-10-29 18:43 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
2003-10-29 18:08 ` David Mosberger
2003-10-29 18:43 ` David S. Miller [this message]
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=20031029104350.1db8c94d.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).