Re: RFC: Nagle latency tuning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Snook
Date: Monday, September 8, 2008 - 10:56 pm

David Miller wrote:

Mostly.


That's not the problem I'm talking about here.  The problem I'm seeing 
is that if your burst of messages is too small to fill the MTU, the 
network stack will just sit there and stare at you for precisely 40 ms 
(an eternity for a financial app) before transmitting.  Andi may be 
correct that it's actually the delayed ACK we're seeing, but I can't 
figure out where that 40 ms magic number is coming from.

The easiest way to see the problem is to open a TCP socket to an echo 
daemon on loopback, make a bunch of small writes totaling less than your 
loopback MTU (accounting for overhead), and see how long it takes to get 
your echoes.  You can probably do this with netcat, though I haven't 
tried.  People don't expect loopback to have 40 ms latency when the box 
is lightly loaded, so they'd really like to tweak that down when it's 
hurting them.

-- Chris
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC: Nagle latency tuning, Christopher Snook, (Mon Sep 8, 2:56 pm)
Re: RFC: Nagle latency tuning, Rick Jones, (Mon Sep 8, 3:39 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 8, 3:55 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 8, 10:10 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 8, 10:17 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 8, 10:22 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 8, 10:56 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 8, 11:02 pm)
Re: RFC: Nagle latency tuning, Evgeniy Polyakov, (Mon Sep 8, 11:22 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 8, 11:28 pm)
Re: RFC: Nagle latency tuning, Mark Brown, (Tue Sep 9, 3:31 am)
Re: RFC: Nagle latency tuning, David Miller, (Tue Sep 9, 5:05 am)
Re: RFC: Nagle latency tuning, Mark Brown, (Tue Sep 9, 5:09 am)
Re: RFC: Nagle latency tuning, David Miller, (Tue Sep 9, 5:19 am)
Re: RFC: Nagle latency tuning, Arnaldo Carvalho de Melo, (Tue Sep 9, 6:00 am)
Re: RFC: Nagle latency tuning, Andi Kleen, (Tue Sep 9, 7:36 am)
Re: RFC: Nagle latency tuning, Rick Jones, (Tue Sep 9, 9:33 am)
Re: RFC: Nagle latency tuning, Chuck Lever, (Tue Sep 9, 9:54 am)
Re: RFC: Nagle latency tuning, Arnaldo Carvalho de Melo, (Tue Sep 9, 10:21 am)
Re: RFC: Nagle latency tuning, Rick Jones, (Tue Sep 9, 10:54 am)
Re: RFC: Nagle latency tuning, Chris Snook, (Tue Sep 9, 11:40 am)
Re: RFC: Nagle latency tuning, Andi Kleen, (Tue Sep 9, 12:07 pm)
Re: RFC: Nagle latency tuning, Arnaldo Carvalho de Melo, (Tue Sep 9, 12:21 pm)
Re: RFC: Nagle latency tuning, David Miller, (Tue Sep 9, 12:59 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Tue Sep 9, 1:25 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Wed Sep 10, 9:08 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 3:49 am)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 4:09 am)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 1:30 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 22, 3:22 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 3:26 pm)
Re: RFC: Nagle latency tuning, Rick Jones, (Mon Sep 22, 3:47 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 22, 3:57 pm)
Re: RFC: Nagle latency tuning, Chris Snook, (Mon Sep 22, 4:00 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 4:13 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 4:21 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 4:24 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 5:14 pm)
Re: RFC: Nagle latency tuning, Rick Jones, (Mon Sep 22, 5:33 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 6:40 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 7:12 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 7:23 pm)
Re: RFC: Nagle latency tuning, David Miller, (Mon Sep 22, 7:28 pm)
Re: RFC: Nagle latency tuning, Andi Kleen, (Mon Sep 22, 7:41 pm)