* Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
@ 2001-12-17 21:03 Ahmed, Zameer
2001-12-17 22:12 ` Russell King
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Ahmed, Zameer @ 2001-12-17 21:03 UTC (permalink / raw)
To: linux-kernel
Hi,
Is there a way to turn off nagle compression in the kernel for 2.2.x
and 2.4.x kernels? For the same custom app used under Solaris and Linux.
Turning off nagle algorithm boosted perf on Solaris, I tried commenting out
#bool 'IP: Disable NAGLE algorithm (normally enabled)' CONFIG_TCP_NAGLE_OF
from the net/ipv4/Config.in 2.2.19 kernel and still the degradation in
network performance for packts in midsize persists
I tried the 2.4.16 kernel. This gave me very slight improvement, but not
quite what is expected.
TIA
Zameer A.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-17 21:03 Turning off nagle algorithm in 2.2.x and 2.4.x kernels? Ahmed, Zameer
@ 2001-12-17 22:12 ` Russell King
2001-12-18 4:27 ` Andi Kleen
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Russell King @ 2001-12-17 22:12 UTC (permalink / raw)
To: Ahmed, Zameer; +Cc: linux-kernel
On Mon, Dec 17, 2001 at 04:03:15PM -0500, Ahmed, Zameer wrote:
> Hi,
> Is there a way to turn off nagle compression in the kernel for 2.2.x
> and 2.4.x kernels? For the same custom app used under Solaris and Linux.
> Turning off nagle algorithm boosted perf on Solaris, I tried commenting out
>
> #bool 'IP: Disable NAGLE algorithm (normally enabled)' CONFIG_TCP_NAGLE_OF
>
> from the net/ipv4/Config.in 2.2.19 kernel and still the degradation in
> network performance for packts in midsize persists
> I tried the 2.4.16 kernel. This gave me very slight improvement, but not
> quite what is expected.
Erm, commenting out a configure option to turn something off doesn't turn
that item off. It just leaves you without the question (and the feature
remains on).
You want to say 'y' to this option to disable nagle.
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-17 21:03 Turning off nagle algorithm in 2.2.x and 2.4.x kernels? Ahmed, Zameer
2001-12-17 22:12 ` Russell King
@ 2001-12-18 4:27 ` Andi Kleen
2001-12-18 9:47 ` Peter Wächtler
2001-12-18 14:58 ` Alan Cox
3 siblings, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2001-12-18 4:27 UTC (permalink / raw)
To: "Ahmed, Zameer"; +Cc: linux-kernel
Zameer.Ahmed@gs.com ("Ahmed, Zameer") writes:
> Hi,
> Is there a way to turn off nagle compression in the kernel for 2.2.x
> and 2.4.x kernels? For the same custom app used under Solaris and Linux.
> Turning off nagle algorithm boosted perf on Solaris, I tried commenting out
>
> #bool 'IP: Disable NAGLE algorithm (normally enabled)' CONFIG_TCP_NAGLE_OF
>
> from the net/ipv4/Config.in 2.2.19 kernel and still the degradation in
> network performance for packts in midsize persists
> I tried the 2.4.16 kernel. This gave me very slight improvement, but not
> quite what is expected.
Read the tcp(7) manpage. Enabling the TCP_NODELAY socket option disables
nagle per socket. The Config option is a noop and hasn't done anything for
a long time.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-17 21:03 Turning off nagle algorithm in 2.2.x and 2.4.x kernels? Ahmed, Zameer
2001-12-17 22:12 ` Russell King
2001-12-18 4:27 ` Andi Kleen
@ 2001-12-18 9:47 ` Peter Wächtler
2001-12-18 14:58 ` Alan Cox
3 siblings, 0 replies; 8+ messages in thread
From: Peter Wächtler @ 2001-12-18 9:47 UTC (permalink / raw)
To: Ahmed, Zameer; +Cc: linux-kernel
"Ahmed, Zameer" schrieb:
>
> Hi,
> Is there a way to turn off nagle compression in the kernel for 2.2.x
> and 2.4.x kernels? For the same custom app used under Solaris and Linux.
> Turning off nagle algorithm boosted perf on Solaris, I tried commenting out
>
> #bool 'IP: Disable NAGLE algorithm (normally enabled)' CONFIG_TCP_NAGLE_OF
>
> from the net/ipv4/Config.in 2.2.19 kernel and still the degradation in
> network performance for packts in midsize persists
> I tried the 2.4.16 kernel. This gave me very slight improvement, but not
> quite what is expected.
>
there is a setsockopt() - apply it to the fd returned from accept()
man 7 tcp
SOCKET OPTIONS
To set or get a TCP socket option, call getsockopt(2) to
read or setsockopt(2) to write the option with the socket
family argument set to SOL_TCP. In addition, most SOL_IP
socket options are valid on TCP sockets. For more informa
tion see ip(7).
TCP_NODELAY
Turn the Nagle algorithm off. This means that pack
ets are always sent as soon as possible and no
unnecessary delays are introduced, at the cost of
more packets in the network. Expects an integer
boolean flag.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-17 21:03 Turning off nagle algorithm in 2.2.x and 2.4.x kernels? Ahmed, Zameer
` (2 preceding siblings ...)
2001-12-18 9:47 ` Peter Wächtler
@ 2001-12-18 14:58 ` Alan Cox
3 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2001-12-18 14:58 UTC (permalink / raw)
To: Ahmed, Zameer; +Cc: linux-kernel
> and 2.4.x kernels? For the same custom app used under Solaris and Linux.
> Turning off nagle algorithm boosted perf on Solaris, I tried commenting out
man setsockopt (Linux and Solaris)
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
@ 2001-12-18 17:05 Ahmed, Zameer
2001-12-18 17:59 ` Oliver Xymoron
2001-12-18 19:10 ` Alan Cox
0 siblings, 2 replies; 8+ messages in thread
From: Ahmed, Zameer @ 2001-12-18 17:05 UTC (permalink / raw)
To: 'Alan Cox', Zameer.Ahmed; +Cc: linux-kernel
Hi,
The finicky nature of closed sourced sybase libraries that we are using in
the custom apps make me ask this question. Will turning off the Nagle
algorithm in the kernel on the fly, impact performance in any way? or Can we
have this feature in the kernel in some way?
TIA
Zameer A.
-----Original Message-----
From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
Sent: Tuesday, December 18, 2001 9:58 AM
To: Zameer.Ahmed@gs.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
> and 2.4.x kernels? For the same custom app used under Solaris and Linux.
> Turning off nagle algorithm boosted perf on Solaris, I tried commenting
out
man setsockopt (Linux and Solaris)
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-18 17:05 Ahmed, Zameer
@ 2001-12-18 17:59 ` Oliver Xymoron
2001-12-18 19:10 ` Alan Cox
1 sibling, 0 replies; 8+ messages in thread
From: Oliver Xymoron @ 2001-12-18 17:59 UTC (permalink / raw)
To: Ahmed, Zameer; +Cc: 'Alan Cox', linux-kernel
On Tue, 18 Dec 2001, Ahmed, Zameer wrote:
> The finicky nature of closed sourced sybase libraries that we are using in
> the custom apps make me ask this question. Will turning off the Nagle
> algorithm in the kernel on the fly, impact performance in any way? or Can we
> have this feature in the kernel in some way?
Nagle isn't there for looks, of course it will affect performance.
Considered LD_PRELOAD?
--
"Love the dolphins," she advised him. "Write by W.A.S.T.E.."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Turning off nagle algorithm in 2.2.x and 2.4.x kernels?
2001-12-18 17:05 Ahmed, Zameer
2001-12-18 17:59 ` Oliver Xymoron
@ 2001-12-18 19:10 ` Alan Cox
1 sibling, 0 replies; 8+ messages in thread
From: Alan Cox @ 2001-12-18 19:10 UTC (permalink / raw)
To: Ahmed, Zameer; +Cc: 'Alan Cox', Zameer.Ahmed, linux-kernel
> The finicky nature of closed sourced sybase libraries that we are using in
> the custom apps make me ask this question. Will turning off the Nagle
> algorithm in the kernel on the fly, impact performance in any way? or Can we
> have this feature in the kernel in some way?
Turning it off generically risks extremely bad network behaviour on a
congested link.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-12-18 19:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-17 21:03 Turning off nagle algorithm in 2.2.x and 2.4.x kernels? Ahmed, Zameer
2001-12-17 22:12 ` Russell King
2001-12-18 4:27 ` Andi Kleen
2001-12-18 9:47 ` Peter Wächtler
2001-12-18 14:58 ` Alan Cox
-- strict thread matches above, loose matches on Subject: below --
2001-12-18 17:05 Ahmed, Zameer
2001-12-18 17:59 ` Oliver Xymoron
2001-12-18 19:10 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox