Subject: Re: tcp bw in 2.6

From: [email-masked] (Larry McVoy)
Date: Mon, 1 Oct 2007 19:20:59 -0700

On Mon, Oct 01, 2007 at 07:14:37PM -0700, Linus Torvalds wrote:
> 
> 
> On Mon, 1 Oct 2007, Larry McVoy wrote:
> > 
> > but the client looks like
> > 
> > connect(3, {sa_family=AF_INET, sin_port=htons(31235), sin_addr=inet_addr("10.3.9.1")}, 16) = 0
> > read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 2896
> > read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 1448
> > read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 2896
> ..
> 
> This is exactly what I'd expect if the machine is *not* under excessive 
> load.

That's fine, but why is it that my trivial program can't do as well as 
dd | rsh dd?

A short summary is "can someone please post a test program that sources
and sinks data at the wire speed?"  because apparently I'm too old and
clueless to write such a thing.
-- 
---
Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com