Re: [lmbench] tcp bandwidth on athlon

Alan Cox (alan@lxorguk.ukuu.org.uk)
21 Jul 2002 17:44:59 +0100


On Sun, 2002-07-21 at 14:21, rwhron@earthlink.net wrote:
> In Carl Staelin and Larry McVoy's 98 Usenix paper they wrote:
>
> "It is interesting to compare pipes with TCP because the TCP benchmark is
> identical to the pipe benchmark except for the transport mechanism. Ideally,
> the TCP bandwidth would be as good as the pipe bandwidth. It is not widely
> known that the majority of the TCP cost is in the bcopy, the checksum, and
> the network interface driver. The checksum and the driver may be safely

The paper however ignored something else we do which is why you see
csum_partial_copy_generic. On a modern processor the cost of fetching
and storing memory is so high compared to the throughput of the
processor that it is actually much more effective to fold the copy and
checksum together. Generally the copy/checksum has the same speed as a
pure copy anyway

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/