Re: tcp bw in 2.6

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Larry McVoy <lm@...>
Cc: <davem@...>, <wscott@...>, <netdev@...>
Date: Monday, October 1, 2007 - 10:14 pm

On Mon, 1 Oct 2007, Larry McVoy wrote:
..

This is exactly what I'd expect if the machine is *not* under excessive 
load.

The system calls are fast enough that the latency for the TCP stack is 
roughly on the same scale as the time it takes to receive one new packet, 
so since a socket read will always return when it has any data (not until 
it has filled the whole buffer), you get exactly that "one or two packets" 
pattern.

If you'd be really CPU-limited or under load from other programs, you'd 
have more packets come in while you're in the read path, and you'd get 
bigger reads.

But do a tcpdump both ways, and see (for example) if the TCP window is 
much bigger going the other way.

		Linus
-
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:
Re: tcp bw in 2.6, Larry McVoy, (Mon Oct 1, 8:59 pm)
Re: tcp bw in 2.6, Herbert Xu, (Tue Oct 2, 6:52 am)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 11:09 am)
Re: tcp bw in 2.6, Linus Torvalds, (Tue Oct 2, 3:27 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 3:53 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 4:33 pm)
Re: tcp bw in 2.6, Roland Dreier, (Tue Oct 2, 4:44 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 5:21 pm)
Re: tcp bw in 2.6, Pekka Pietikainen, (Wed Oct 3, 5:13 pm)
Re: tcp bw in 2.6, Larry McVoy, (Wed Oct 3, 5:23 pm)
Re: tcp bw in 2.6, Pekka Pietikainen, (Wed Oct 3, 5:50 pm)
Re: tcp bw in 2.6, John Heffner, (Tue Oct 2, 2:29 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 3:07 pm)
Re: tcp bw in 2.6, Linus Torvalds, (Tue Oct 2, 3:29 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 4:31 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 3:33 pm)
Re: tcp bw in 2.6, John Heffner, (Tue Oct 2, 3:53 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 4:14 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 4:40 pm)
Re: tcp bw in 2.6, Wayne Scott, (Tue Oct 2, 4:42 pm)
Re: tcp bw in 2.6, Linus Torvalds, (Tue Oct 2, 5:56 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 11:41 am)
Re: tcp bw in 2.6, Linus Torvalds, (Tue Oct 2, 12:34 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 12:48 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 5:16 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 5:26 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 5:47 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 6:17 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 6:32 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 6:36 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 6:59 pm)
Re: tcp bw in 2.6, David Miller, (Wed Oct 3, 4:02 am)
Re: tcp bw in 2.6, Ben Greear, (Tue Oct 2, 12:48 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 1:11 pm)
Re: tcp bw in 2.6, Ben Greear, (Tue Oct 2, 1:18 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 1:21 pm)
Re: tcp bw in 2.6, Stephen Hemminger, (Tue Oct 2, 1:54 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 2:35 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 12:25 pm)
Re: tcp bw in 2.6, Stephen Hemminger, (Tue Oct 2, 12:47 pm)
Re: tcp bw in 2.6, Daniel Schaffrath, (Mon Oct 15, 8:40 am)
Re: tcp bw in 2.6, Stephen Hemminger, (Mon Oct 15, 11:49 am)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 12:49 pm)
Re: tcp bw in 2.6, Stephen Hemminger, (Tue Oct 2, 1:10 pm)
Re: tcp bw in 2.6, Linus Torvalds, (Mon Oct 1, 10:14 pm)
Re: tcp bw in 2.6, Larry McVoy, (Mon Oct 1, 10:20 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 1:14 pm)
Re: tcp bw in 2.6, Bill Fink, (Wed Oct 3, 3:19 am)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 1:20 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 2:01 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 2:40 pm)
Re: tcp bw in 2.6, Rick Jones, (Tue Oct 2, 3:47 pm)
Re: tcp bw in 2.6, David Miller, (Tue Oct 2, 5:32 pm)
Re: tcp bw in 2.6, John Heffner, (Tue Oct 2, 11:06 am)
Re: tcp bw in 2.6, David Miller, (Mon Oct 1, 11:50 pm)
Re: tcp bw in 2.6, Larry McVoy, (Tue Oct 2, 12:23 am)