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] huge tcp performance-regression on pvops - kernel (+Solu

To: "Ronny.Hegewald@xxxxxxxxx" <Ronny.Hegewald@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] huge tcp performance-regression on pvops - kernel (+Solution)
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 27 Oct 2009 14:53:34 +0000
Cc:
Delivery-date: Tue, 27 Oct 2009 07:59:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <733454931.1283414.1256600244808.JavaMail.tomcat55@xxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpXEwfpBgDqxMkCQs6Z20Ft+HiUawAAjmy4
Thread-topic: [Xen-devel] huge tcp performance-regression on pvops - kernel (+Solution)
User-agent: Microsoft-Entourage/12.20.0.090605
Cc¹ing Jeremy. I think the patch of interest in linux-2.6.18-xen is 776,
which is the one that removes those lines from the front/back drivers in
favour of a solution integrated into the protocol stack.

 -- Keir

On 26/10/2009 23:37, "Ronny.Hegewald@xxxxxxxxx" <Ronny.Hegewald@xxxxxxxxx>
wrote:

> Setup: pvops dom0 kernel 2.6.31.4 from Jeremys git-repository from 2009-10-18
> 
> 
> Problem: Very slow network-performance (3-10 kbs) when tcp-packets are used
> (noticed when using scp, samba, nfs over tcp)
> 
> 
> 
> But this occurs only in the following situations:
> 
>     
> 
> 1.) domU to domU on same PC (domUs are paravirtualized linux-kernels)
> 
> 2.)  domU to another PC that doesn't use pvops-kernel (packets sent from
> another PC to domU works fine)
> 
> domU to dom0 and the opposite way works without performance-regression.
> 
> 
> Reason: bigger tcp-packets get dropped from the domU the tcp-packets are sent
> from (netstat -s in domU shows many retransmitted tcp-segments)
> 
> 
> 
> tcpdump shows that the bigger packets leave the vif from the domU they were
> sent from, but never arrive the vif from the domU they are sent to.
> 
> 
> This is caused by this lines in drivers/xen/netback.c at line 1325 :
> 
> 
> 
>                 if (skb->data_len < skb_shinfo(skb)->gso_size) {
> 
>                          skb_shinfo(skb)->gso_size = 0;
>                          skb_shinfo(skb)->gso_type = 0;
>                  }
> 
> 
> These lines were reverted from the linux-2.6.18-xen mercurial repository
> 
> 
> 
> on 2009-01-13 in changeset 774: 107e10e0e07c: netfront/back: do not mark
> packets of length < MSS as GSO
> <http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/107e10e0e07c>
> 
> 
> 
> I used the patch on the above mentioned pvops tree and the problem was gone.
> 
> 
> 
> I never noticed such problems on the 2.6.18-xen kernel or the forward-ported
> xen-kernel 2.6.31.4 (from Andrew Lyon)
> 



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