Poor NIC performance on domUs / Crashing
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:
dom0:
fs ~ # time dd if=/dev/sda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 4.71219 s, 111 MB/s
real 0m4.718s
user 0m0.000s
sys 0m1.844s
fs ~ # time hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 598 MB in 3.19 seconds = 187.22 MB/sec
real 0m6.598s
user 0m0.131s
sys 0m2.059s
domU:
mail ~ # time dd if=/dev/xvda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 9.39719 s, 55.8 MB/s
real 0m9.404s
user 0m0.000s
sys 0m1.317s
mail ~ # time hdparm -t /dev/xvda
/dev/xvda:
Timing buffered disk reads: 568 MB in 3.00 seconds = 189.19 MB/sec
real 0m6.161s
user 0m0.121s
sys 0m1.789s
Here's my config file for the domU:
fs ~ # cat /etc/xen/mail
# general name = "mail"; memory = 1024;
# booting kernel = "/mnt/data/vms/xen/kernels/vmlinuz-2.6.29-r4-xenU";
# virtual harddisk disk = [ "file:/mnt/data/vms/mail/domU-mail,xvda,w" ]; root = "/dev/xvda ro";
# virtual network vif = [ "ip=10.9.18.13, vifname=eth3" ]; #vif = [ "" ]; #dhcp = "dhcp";
# If you can't see anything from init in your "xm console" command try uncommenting this line.
extra = 'xencons=tty'
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
Quoted 10 lines · On 12/05/09 09:40, [email protected] wrote:
Hi All,
Setup is as follows:
Hardware:
AMD Sempron 2800+ (No VT)
3GB RAM
8x250GB IDE Drives in RAID5
Quoted 9 lines
Software
Xen-3.4.1dom0: Gentoo built with Sources 2.6.29-r4
domU: Gentoo built with Sources 2.6.29-r4dom0 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? Are they pvops? Novell forward-port? In particular, what's the origin of the 2.6.29 dom0?
J
Quoted 96 lines
dom0:
fs ~ # time dd if=/dev/sda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 4.71219 s, 111 MB/sreal 0m4.718s
user 0m0.000s
sys 0m1.844sfs ~ # time hdparm -t
/dev/sda
/dev/sda:
Timing buffered disk reads: 598 MB in 3.19 seconds = 187.22 MB/secreal 0m6.598s
user 0m0.131s
sys 0m2.059sdomU:
mail ~ # time dd if=/dev/xvda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 9.39719 s, 55.8 MB/sreal 0m9.404s
user 0m0.000s
sys 0m1.317smail ~ # time hdparm -t
/dev/xvda
/dev/xvda:
Timing buffered disk reads: 568 MB in 3.00 seconds = 189.19 MB/secreal 0m6.161s
user 0m0.121s
sys 0m1.789sHere's my config file for the domU:
fs ~ # cat
/etc/xen/mail# general name = "mail"; memory = 1024;# booting kernel = "/mnt/data/vms/xen/kernels/vmlinuz-2.6.29-r4-xenU";# virtual harddisk disk = [ "file:/mnt/data/vms/mail/domU-mail,xvda,w" ]; root = "/dev/xvda ro";# virtual network vif = [ "ip=10.9.18.13, vifname=eth3" ]; #vif = [ "" ]; #dhcp = "dhcp";# If you can't see anything from init in your "xm console" command try uncommenting this line.
extra = 'xencons=tty'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: offAlso, 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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 18 lines · Jeremy Fitzhardinge
Quoted 17 lines · On 12/05/09 09:40, [email protected] wrote:
Hi All,
Setup is as follows:
Hardware:
AMD Sempron 2800+ (No VT)
3GB RAM
8x250GB IDE Drives in RAID5Software
Xen-3.4.1dom0: Gentoo built with Sources 2.6.29-r4
domU: Gentoo built with Sources 2.6.29-r4
Quoted 8 lines
Quoted 3 lines
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? Are they pvops? Novell forward-port? In 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
Quoted 107 lines
J
Quoted 88 lines
dom0:
fs ~ # time dd if=/dev/sda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 4.71219 s, 111 MB/sreal 0m4.718s
user 0m0.000s
sys 0m1.844sfs ~ # time hdparm -t
/dev/sda
/dev/sda:
Timing buffered disk reads: 598 MB in 3.19 seconds = 187.22 MB/secreal 0m6.598s
user 0m0.131s
sys 0m2.059sdomU:
mail ~ # time dd if=/dev/xvda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 9.39719 s, 55.8 MB/sreal 0m9.404s
user 0m0.000s
sys 0m1.317smail ~ # time hdparm -t
/dev/xvda
/dev/xvda:
Timing buffered disk reads: 568 MB in 3.00 seconds = 189.19 MB/secreal 0m6.161s
user 0m0.121s
sys 0m1.789sHere's my config file for the domU:
fs ~ # cat
/etc/xen/mail# general name = "mail"; memory = 1024;# booting kernel = "/mnt/data/vms/xen/kernels/vmlinuz-2.6.29-r4-xenU";# virtual harddisk disk = [ "file:/mnt/data/vms/mail/domU-mail,xvda,w" ]; root = "/dev/xvda ro";# virtual network vif = [ "ip=10.9.18.13, vifname=eth3" ]; #vif = [ "" ]; #dhcp = "dhcp";# If you can't see anything from init in your "xm console" command try uncommenting this line.
extra = 'xencons=tty'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: offAlso, 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?
Quoted 9 lines
Thanks!
Ryan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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:[email protected]]
Sent: Friday, December 11, 2009 2:17 PM
To: Jeremy Fitzhardinge
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] Poor NIC performance on domUs / Crashing
Quoted 18 lines · Jeremy Fitzhardinge
Quoted 17 lines · On 12/05/09 09:40, [email protected] wrote:
Hi All,
Setup is as follows:
Hardware:
AMD Sempron 2800+ (No VT)
3GB RAM
8x250GB IDE Drives in RAID5Software
Xen-3.4.1dom0: Gentoo built with Sources 2.6.29-r4
domU: Gentoo built with Sources 2.6.29-r4
Quoted 6 lines
Quoted 3 lines
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? Are they pvops? Novell forward-port? In particular, what's the origin of the 2.6.29
dom0?
Quoted 1 line
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
Quoted 70 lines
J
Quoted 67 lines
dom0:
fs ~ # time dd if=/dev/sda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 4.71219 s, 111 MB/sreal 0m4.718s
user 0m0.000s
sys 0m1.844sfs ~ # time hdparm -t
/dev/sda
/dev/sda:
Timing buffered disk reads: 598 MB in 3.19 seconds = 187.22 MB/secreal 0m6.598s
user 0m0.131s
sys 0m2.059sdomU:
mail ~ # time dd if=/dev/xvda of=/dev/null bs=1M count=500 500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 9.39719 s, 55.8 MB/sreal 0m9.404s
user 0m0.000s
sys 0m1.317smail ~ # time hdparm -t
/dev/xvda
/dev/xvda:
Timing buffered disk reads: 568 MB in 3.00 seconds = 189.19 MB/secreal 0m6.161s
user 0m0.121s
sys 0m1.789sHere's my config file for the domU:
fs ~ # cat
/etc/xen/mail# general name = "mail"; memory = 1024;# booting kernel = "/mnt/data/vms/xen/kernels/vmlinuz-2.6.29-r4-xenU";# virtual harddisk disk = [ "file:/mnt/data/vms/mail/domU-mail,xvda,w" ]; root = "/dev/xvda ro";# virtual network vif = [ "ip=10.9.18.13, vifname=eth3" ]; #vif = [ "" ]; #dhcp = "dhcp";# If you can't see anything from init in your "xm console" command try uncommenting this line.
extra = 'xencons=tty'When I run rsync from a network host into the domU my pings to the domU
go
Quoted 1 line
Quoted 1 line
to 1000ms and my write speed is around 1MB/s. I've already set the
ethtool
Quoted 36 lines
Quoted 20 lines
-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: offAlso, 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?
Quoted 9 lines
Thanks!
Ryan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Ryan Holt
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.
It sounds rather like a bug that was fixed a long time ago in 2.6.18-xen and more recently in pvops dom0. But you'll need to talk to Gentoo to get support for those kernels; they are many steps removed from the Xen project.
J
There another kernel source you'd recommend using?
Sent from my iPhone
Quoted 11 lines · Jeremy Fitzhardinge
Quoted 6 lines · Ryan Holt
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.
It sounds rather like a bug that was fixed a long time ago in 2.6.18-xen and more recently in pvops dom0. But you'll need to talk to Gentoo to get support for those kernels; they are many steps removed from the Xen project.
J
Quoted 1 line · Ryan Holt
There another kernel source you'd recommend using?
http://wiki.xensource.com/xenwiki/XenParavirtOps
J
So is this an issue with the dom0 or the domU?
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 1 line · Ryan Holt
There another kernel source you'd recommend using?
http://wiki.xensource.com/xenwiki/XenParavirtOps
J
Quoted 2 lines · Ryan Holt
So is this an issue with the dom0 or the domU?
The bug I'm referring to was in netback in dom0, where it did the wrong thing with gso packets.
J
Thanks Jeremy.
I installed xen-sources-2.6.18-r12 as my dom0 and the issue seems to have gone away. Will do some more thorough throughput testing on it later. I'm using gentoo-sources-2.6.31-r6 for the domU.
Question; what's the typical type of performance decrease I should expect to the domU over the network? Getting around 12MB/sec to the dom0, and anywhere from 5-10MB/sec to the domU; that typical/expected?
Thanks,
Ryan
Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Ryan Holt
So is this an issue with the dom0 or the domU?
The bug I'm referring to was in netback in dom0, where it did the wrong thing with gso packets.
J
Quoted 8 lines · Ryan Holt
I installed xen-sources-2.6.18-r12 as my dom0 and the issue seems to have gone away. Will do some more thorough throughput testing on it later. I'm using gentoo-sources-2.6.31-r6 for the domU.
Question; what's the typical type of performance decrease I should expect to the domU over the network? Getting around 12MB/sec to the dom0, and anywhere from 5-10MB/sec to the domU; that typical/expected?
That sounds reasonable to me, but I haven't done much performance-oriented testing so I don't know whether that's really expected. There are a lot of variables in there..
J