Re: RFC: Nagle latency tuning

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

Rick Jones wrote:

Dunno, but I'm told it effectively sets TCP_NODELAY on every socket on 
the box.


Sorry, I'm getting my problems confused.  Being multi-threaded isn't the 
root problem, it just makes the behavior much less predictable.  Instead 
of getting the latency every other write, you might get it once in every 
million writes on a highly-threaded workload, which masks the source of 
the problem.


This is open to debate, but there are certainly a great many apps doing 
a great deal of very important business that are subject to this problem 
to some degree.


I'd like to know where the 40 ms magic number comes from.  That's the 
one that really hurts, and if we could lower that without doing horrible 
things elsewhere in the stack, as a non-default tuning option, a lot of 
people would be very happy.


Most of the apps where people care about this enough to complain to 
their vendor (the cases I hear about) are in messaging apps, where 
they're relaying a stream of events that have little to do with each 
other, and they want TCP to maintain the integrity of the connection and 
do a modicum of bandwidth management, but 40 ms stalls greatly exceed 
their latency tolerances.  Using TCP_NODELAY is often the least bad 
option, but sometimes it's infeasible because of its effect on the 
network, and it certainly adds to the network stack overhead.  A more 
tunable Nagle delay would probably serve many of these apps much better.

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