From: Phillip Susi <psusi@cfl.rr.com>
To: Matt Garman <matthew.garman@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: What happened to CONFIG_TCP_NAGLE_OFF?
Date: Thu, 30 Nov 2006 14:45:02 -0500 [thread overview]
Message-ID: <456F34BE.5050303@cfl.rr.com> (raw)
In-Reply-To: <bdd6985b0611300921u1a88f410vdaf9051c220719e1@mail.gmail.com>
Matt Garman wrote:
> I don't want to change the API at all. I'm using a closed-source, 3rd
> party library. Using strace, I can see that the library does *not* do
> a setsockopt(...TCP_NODELAY...) on opened sockets. Since I can't
> change the library, I would like to patch and/or configure my kernel
> so that all TCP/IP sockets default to TCP_NODELAY.
That _IS_ changing the api. Applications that wish to use nagle will no
longer be able to because you will have changed the api to always
disable nagle.
> Also, if my understanding of Nagle is correct, I think you have that
> backwards: Nagle should be disabled (i.e. TCP_NODELAY) for telnet,
> mouse movements, etc: we always want to send our packets, regardless
> of size or previous packet ACK.
No, nagle was invented specifically for telnet. Without nagle, every
character you type is sent in its own packet, which gives around 50,000%
overhead. Nagle was created to compact most of your keystrokes into a
single packet.
Things like mouse movements should not be sent over TCP at all. UDP
makes a much better protocol for that kind of data since if a packet is
lost, there is no need to retransmit the same data; instead you just get
the next position update and don't care about where the mouse was during
the dropped packet.
next prev parent reply other threads:[~2006-11-30 19:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 22:05 What happened to CONFIG_TCP_NAGLE_OFF? Matt Garman
2006-11-29 20:06 ` Phillip Susi
2006-11-30 17:21 ` Matt Garman
2006-11-30 19:12 ` John Stoffel
2006-11-30 19:45 ` Phillip Susi [this message]
2006-12-01 0:00 ` Alan
2006-12-01 20:42 ` Phillip Susi
2006-12-02 3:29 ` Herbert Xu
2006-12-04 15:35 ` Phillip Susi
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=456F34BE.5050303@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.garman@gmail.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