From: Keir Fraser Subject: Re: huge tcp performance-regression on pvops - kernel (+Solution) Date: Tue, 27 Oct 2009 14:53:34 +0000 Message-ID: References: <733454931.1283414.1256600244808.JavaMail.tomcat55@mrmseu2.kundenserver.de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <733454931.1283414.1256600244808.JavaMail.tomcat55@mrmseu2.kundenserver.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Ronny.Hegewald@online.de" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Cc=B9ing 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@online.de" wrote: > Setup: pvops dom0 kernel 2.6.31.4 from Jeremys git-repository from 2009-1= 0-18 >=20 >=20 > Problem: Very slow network-performance (3-10 kbs) when tcp-packets are us= ed > (noticed when using scp, samba, nfs over tcp) >=20 >=20 >=20 > But this occurs only in the following situations: >=20 > =20 >=20 > 1.) domU to domU on same PC (domUs are paravirtualized linux-kernels) >=20 > 2.) domU to another PC that doesn't use pvops-kernel (packets sent from > another PC to domU works fine) >=20 > domU to dom0 and the opposite way works without performance-regression. >=20 >=20 > Reason: bigger tcp-packets get dropped from the domU the tcp-packets are = sent > from (netstat -s in domU shows many retransmitted tcp-segments) >=20 >=20 >=20 > tcpdump shows that the bigger packets leave the vif from the domU they we= re > sent from, but never arrive the vif from the domU they are sent to. >=20 >=20 > This is caused by this lines in drivers/xen/netback.c at line 1325 : >=20 >=20 >=20 > if (skb->data_len < skb_shinfo(skb)->gso_size) { >=20 > skb_shinfo(skb)->gso_size =3D 0; > skb_shinfo(skb)->gso_type =3D 0; > } >=20 >=20 > These lines were reverted from the linux-2.6.18-xen mercurial repository >=20 >=20 >=20 > on 2009-01-13 in changeset 774: 107e10e0e07c: netfront/back: do not mark > packets of length < MSS as GSO > >=20 >=20 >=20 > I used the patch on the above mentioned pvops tree and the problem was go= ne. >=20 >=20 >=20 > I never noticed such problems on the 2.6.18-xen kernel or the forward-por= ted > xen-kernel 2.6.31.4 (from Andrew Lyon) >=20