From: Jon Mason Subject: Re: [PATCH] Network Checksum Removal Date: Mon, 23 May 2005 16:58:46 -0500 Message-ID: <200505231658.46965.jdmason@us.ibm.com> References: <20050520233015.GA26305@us.ibm.com> <8ae780250505231255a0cea3b@mail.gmail.com> <3781733093cae2d97c7358f29073f250@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3781733093cae2d97c7358f29073f250@cl.cam.ac.uk> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: bin.ren@cl.cam.ac.uk, Andrew Theurer List-Id: xen-devel@lists.xenproject.org On Monday 23 May 2005 03:13 pm, Keir Fraser wrote: > On 23 May 2005, at 20:55, Bin Ren wrote: > > I've added the support for ethtools. By turning on and off netfront > > checksum offloading, I'm getting the following throughput numbers, > > using iperf. Each test was run three times. CPU usages are quite > > similar in two cases ('top' output). Looks like checksum computation > > is not a major overhead in domU networking. > > > > dom0/1/2 all have 128M memory. dom0 has e1000 tx checksum offloading > > turned on. > > What happens to CPU usage in dom1 when tx checksumming is disabled? > > Overall though these are the kind of results I would expect. Linux > usually does csumming at the same time as it has to do a copy anyway, > and it ends up being limited by memory/L2-cache bandwidth, not the > extra computation. But the offload extensions haven't cost much to > implement and there are probably cases where it helps a little. > > Maybe I'm being pessimistic though: Can you reproduce the rather more > impressive speedups that you previously saw, Jon? Alright, I broke down and got a BK puller. I get the following domU->dom0 throughput on my system (using netperf3 TCP_STREAM testcase): tx on ~1580Mbps tx off ~1230Mbps with my previous patch (on Friday's build), I was seeing the following: with patch ~1610Mbps no patch ~1100Mbps The slight difference between the two might be caused by the changes that were incorporated in xen between those dates. If you think it is worth the time, I can back port the latest patch to Friday's build to see if that makes a difference. Thanks, Jon