From: Chris Wedgwood <cw@f00f.org>
To: "Clifford T. Matthews" <ctm@ardi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: surprisingly slow accept/connect cycle time
Date: Tue, 24 May 2005 20:44:18 -0700 [thread overview]
Message-ID: <6ddc8bfa62357b6b3813facf21b223f9.ANY@taniwha.stupidest.org> (raw)
In-Reply-To: <17043.37997.993745.877259@newbie.ardi.com>
On Tue, May 24, 2005 at 02:54:05PM -0600, Clifford T. Matthews wrote:
> static void
> listen_or_die (int fd, int backlog)
> {
> DIE_IF (listen (fd, backlog) != 0);
>
> }
[...]
> listen_or_die (accept_fd, 10);
the backlog is 10, so my guess is that the parent does 10+ connection
attempts before the child can accept them so some SYN packets get
dropped --- and you have to wait for TCP to retry hence the delay you
see
a larger backlog would make things seem to go faster, as would
tweaking the TCP timers
next prev parent reply other threads:[~2005-05-25 3:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 20:54 Clifford T. Matthews
2005-05-24 21:34 ` Henrik Storner
2005-05-25 3:44 ` Chris Wedgwood [this message]
2005-05-24 22:27 Parag Warudkar
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=6ddc8bfa62357b6b3813facf21b223f9.ANY@taniwha.stupidest.org \
--to=cw@f00f.org \
--cc=ctm@ardi.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®