From: "Nivedita Singhvi" <nivedita@us.ibm.com>
To: "kuznet" <kuznet%ms2.inr..ac.rus@boulder.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.4.6 and 2.4.7 networking performance: Seeing serious delays
Date: Mon, 20 Aug 2001 21:00:19 -0700 [thread overview]
Message-ID: <OF6AC1553A.5DC17765-ON88256AAF.00123D09@boulder.ibm.com> (raw)
Alexey,
Thanks for the clarification on the pingpong behaviour!
Some more questions..
>> I'm still wondering why the next ack isnt delayed as well, though.
>
>Because out tcp is enough clever to understand that it made
>a shit delaying ACK for previous packet. But not enough psychic
>to foresee future and to avoid delay. :-)
>.100 experiences delack timeout, which is considered as an error.
>It is really error. So, tcp clears pingpong and returns to quickack.
So I understand that we're allowing pingpong to retain state of whether
it makes sense to delay right now or not, based on whats been happening,
and trying to avoid a delayed ack timer expiry..
But...
>This loop would repeat infinitely, if connection were not closed.
>Kernel sees that user replies fastly, switches to canonical BSD mode
>to allow ack piggibacking and tries to delay ack, but silly user does
>not want to reply more. So, we have reduced amount of timeouts twice,
>but this is not a big win in this case.
>
>I am writing this mostly because it is the best demonstration
>why TCP_QUICKACK:=0 is invalidated. :-)
Then whats the point of TCP_QUICKACK socket option at all? If its only
a user hint that gets erased on the first go through, that is one full system call just
to avoid a delay on one packet. The user isnt going to write an application full of
setsockopt() calls based on his data sends, right?
>What's about advice to use TCP_NODELAY in this case, it is _absolutely_
>wrong and in fact presents violation of protocol, this app sends silly
>spagetti of pakets which must be coalesced. It is exactly the situation
>when TCP_NODELAY is straight bug. This app should use TCP_CORK or,
>even better from the viewpoint of performance, to coalesce writes at user
>user level not abusing tcp.
True, this is an abuse of TCP :). But we should have the freedom to do so, right? :)
i.e. User may need to send small amounts of data at a time. The user might even
want to have that data sent out immediately, and not want the kernel to delay the send.
After all, if the application is sending down large full frames, the kernel is by default
not going to be halted by Nagle. Its really only when you are sending small packets
at a time that youre affected by Nagle and might want to set NODELAY, especially
if that application is highly interactive?.
thanks,
Nivedita
next reply other threads:[~2001-08-21 4:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-21 4:00 Nivedita Singhvi [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-15 17:30 Nivedita Singhvi
2001-08-16 23:06 ` Alexey Kuznetsov
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=OF6AC1553A.5DC17765-ON88256AAF.00123D09@boulder.ibm.com \
--to=nivedita@us.ibm.com \
--cc=kuznet%ms2.inr..ac.rus@boulder.ibm.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®