mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Karthik Arumugham <kernel@karthik.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: New connections stall with 20k+ open sockets
Date: Mon, 29 Jul 2002 10:48:33 +0200	[thread overview]
Message-ID: <20020729084833.GA6841@alpha.home.local> (raw)
In-Reply-To: <Pine.LNX.4.44.0207281510550.9012-100000@neural.psychosis.net>

On Sun, Jul 28, 2002 at 03:37:47PM -0400, Karthik Arumugham wrote:
 
> I've been having an issue where when the server goes past 20k connections or
> so, it'll start ignoring syn packets on the most heavily used ports. I've
> experienced this under 2.4.18 and older 2.4 kernels, and I'm currently
> running 2.5.29. Distribution is Debian unstable (not that that should matter
> here). I'm using a Netgear GA620 gig-e card, x86 architecture.

I've had such a behaviour with an HTTP reverse proxy I wrote, until I
realized that when you have thousands of connections, the select() call
slows down a bit, and the accept() was not called often enough to catch
all the new connections. I simply solved the problem by calling as many
accept() as possible each time the listen socket wakes up. I'm pretty
sure you are in such a situation.

Cheers,
Willy


      reply	other threads:[~2002-07-29  8:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-28 19:37 Karthik Arumugham
2002-07-29  8:48 ` Willy Tarreau [this message]

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=20020729084833.GA6841@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=kernel@karthik.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®