netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH 2.6.5] Re: Fw: Stack sends SYN/ACKs even though accept queue is full
@ 2004-05-01  6:14 Jan Olderdissen
  2004-05-01 18:23 ` [PATCH 2.4.5 " Nivedita Singhvi
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Olderdissen @ 2004-05-01  6:14 UTC (permalink / raw)
  To: 'Nivedita Singhvi'; +Cc: netdev, David Miller, Andrew Morton

Nivedita Singhvi wrote:

> Attaching a patch which adds a sysctl to turn off this
> behaviour.   Could you test this, please?  Patch against
> 2.6.5 vanilla kernel.  If you need a 2.4 version, let me
> know.

We'll be happy to test it. We would prefer a 2.4 kernel patch though. Ideal
would be 2.4.21 vanilla which we use in our embedded systems, but we can
make other targets work as well.

> Normally, I think the expected behaviour was that connections
> would be short-lived. This is a reasonable expectation for most
> web-servers etc.   In which case, the accept queue would free
> up frequently, and having the syn request right there would save
> a full timeout and round trip over the Internet. i.e. useful in the
> common case.

I have to disagree. 

As the code is implemented right now, you get at most two pending young
connections in the syn queue in addition to the ones in the accept queue -
all others have already had their full timeout. I will argue that in high
load conditions it doesn't really matter whether you have one or two warm
connections sitting around or not because other new connections are going to
come by anyway sooner than you want to have them. If the server is able to
keep up, the accept queue is going to be mostly empty anyway.

The idea of having warm connections is a good one - that is what the accept
queue is for. As long as the accept queue is not full, the syn queue will
have warm bodies for you. If the user wanted to achieve a very similar
effect, he could simply increase the accept queue size by 2.

In the end I don't think the minimal benefit warrants complicating the code
and/or adding an option that few would understand or care to know about.
Also, the concept of suggesting to the client that there is a receiver and
then just dropping all the packets it sends seems a bit rude if not outright
non-compliant.

Your call, of course.

Jan

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

end of thread, other threads:[~2004-05-01 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-01  6:14 [PATCH 2.6.5] Re: Fw: Stack sends SYN/ACKs even though accept queue is full Jan Olderdissen
2004-05-01 18:23 ` [PATCH 2.4.5 " Nivedita Singhvi

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).