WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Network Checksum Removal

To: Jon Mason <jdmason@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Network Checksum Removal
From: Nivedita Singhvi <niv@xxxxxxxxxx>
Date: Wed, 25 May 2005 11:19:52 -0700
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Andrew Theurer <habanero@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, bin.ren@xxxxxxxxxxxx
Delivery-date: Wed, 25 May 2005 18:19:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200505251213.08192.jdmason@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E4214@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <200505251213.08192.jdmason@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217
Jon Mason wrote:

I'm surprised there's much benefit to csum offload on the tx side at all
as its almost always done as part of a copy.


Why?  The tx checksumming is just as expensive as the rx checksumming.

Normally (i.e. non sendfile() case), on the transmit side, you
have to copy the data from user space to kernel space, and
usually, during this step, you perform the checksum operation
for a few extra instructions - you have to take the hit of
pulling in each byte of data in any case.

So checksum offload on the transmit path _normally_ buys you
no throughput gain, and very slight reduction in CPU utilization.
Of course, for every segment sent out (or bunches thereof),
we get an ack back. But checksumming a TCP header (pure
ack case) is again, fairly trivial (20 bytes).


thanks,
Nivedita





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel