From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ryan Holt" Subject: RE: Poor NIC performance on domUs / Crashing Date: Fri, 11 Dec 2009 14:20:26 -0500 Message-ID: <000f01ca7a96$fed2c770$fc785650$@net> References: <3d0772caecb3cb4c817b2ade5b6c0f9a@mail.holthome.net> <4B228E41.9020403@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Language: en-us List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: 'Andrew Lyon' , 'Jeremy Fitzhardinge' Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Andrew, Jeremy, Andrew is right. I used the sources listed there. The domU seems to run fine so long as I don't push any high amount of = data to it. As soon as I start an FTP transfer the ping milliseconds jumps up = to 1000ms. Thanks, Ryan -----Original Message----- From: Andrew Lyon [mailto:andrew.lyon@gmail.com]=20 Sent: Friday, December 11, 2009 2:17 PM To: Jeremy Fitzhardinge Cc: ryan@ryanholt.net; xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Poor NIC performance on domUs / Crashing On Fri, Dec 11, 2009 at 6:24 PM, Jeremy Fitzhardinge wrote: > On 12/05/09 09:40, ryan@ryanholt.net wrote: >> >> Hi All, >> >> Setup is as follows: >> >> Hardware: >> >> AMD Sempron 2800+ (No VT) >> 3GB RAM >> 8x250GB IDE Drives in RAID5 >> >> Software >> Xen-3.4.1 >> >> dom0: Gentoo built with Sources 2.6.29-r4 >> domU: Gentoo built with Sources 2.6.29-r4 >> >> dom0 is running as my firewall while domU is running mail/web = services. >> Here's my dd tests on both the dom0 and domU: >> > > Do you know what source base these kernels are based on? =A0Are they = pvops? > =A0Novell forward-port? =A0In particular, what's the origin of the = 2.6.29 dom0? >>From the description I believe they are the rebased novell forward ported patches which I rebased to apply to vanilla without other novell/suse patches and made available for download at http://code.google.com/p/gentoo-xen-kernel/downloads/list > > =A0 =A0J > >> >> dom0: >> >> fs ~ # time dd if=3D/dev/sda of=3D/dev/null bs=3D1M count=3D500 >> 500+0 records in >> 500+0 records out >> 524288000 bytes (524 MB) copied, 4.71219 s, 111 MB/s >> >> real =A0 =A00m4.718s >> user =A0 =A00m0.000s >> sys =A0 =A0 0m1.844s >> >> fs ~ # time hdparm -t /dev/sda >> >> /dev/sda: >> =A0Timing buffered disk reads: =A0598 MB in =A03.19 seconds =3D = 187.22 MB/sec >> >> real =A0 =A00m6.598s >> user =A0 =A00m0.131s >> sys =A0 =A0 0m2.059s >> >> >> domU: >> >> mail ~ # time dd if=3D/dev/xvda of=3D/dev/null bs=3D1M count=3D500 >> 500+0 records in >> 500+0 records out >> 524288000 bytes (524 MB) copied, 9.39719 s, 55.8 MB/s >> >> real =A0 =A00m9.404s >> user =A0 =A00m0.000s >> sys =A0 =A0 0m1.317s >> >> mail ~ # time hdparm -t /dev/xvda >> >> /dev/xvda: >> =A0Timing buffered disk reads: =A0568 MB in =A03.00 seconds =3D = 189.19 MB/sec >> >> real =A0 =A00m6.161s >> user =A0 =A00m0.121s >> sys =A0 =A0 0m1.789s >> >> Here's my config file for the domU: >> >> fs ~ # cat /etc/xen/mail >> # general >> name =A0 =A0=3D "mail"; >> memory =A0=3D 1024; >> >> # booting >> kernel =A0=3D "/mnt/data/vms/xen/kernels/vmlinuz-2.6.29-r4-xenU"; >> >> # virtual harddisk >> disk =3D [ "file:/mnt/data/vms/mail/domU-mail,xvda,w" ]; >> root =3D "/dev/xvda ro"; >> >> # virtual network >> vif =3D [ "ip=3D10.9.18.13, vifname=3Deth3" ]; >> #vif =3D [ "" ]; >> #dhcp =3D "dhcp"; >> >> # If you can't see anything from init in your "xm console" command = try >> uncommenting this line. >> extra =3D 'xencons=3Dtty' >> >> >> When I run rsync from a network host into the domU my pings to the = domU go >> to 1000ms and my write speed is around 1MB/s. I've already set the ethtool >> -K eth0 tx off on the domU: >> >> mail ~ # ethtool -k eth0 >> Offload parameters for eth0: >> Cannot get device rx csum settings: Operation not supported >> rx-checksumming: off >> tx-checksumming: off >> scatter-gather: off >> tcp segmentation offload: off >> udp fragmentation offload: off >> generic segmentation offload: off >> >> >> Also, I've had the whole kernel crash on the dom0 when doing moderate >> network activity to the domU. Got some message about insufficient = memory >> on >> the eth0 interface (WAN facing on the dom0). >> >> Any ideas as to how to troubleshoot this? >> >> Thanks! >> Ryan >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >