From: Boris Derzhavets Subject: Re: [Xen-devel] RE: How to: Improve Network Throughput of a XEN kernel? Date: Sat, 27 Feb 2010 11:20:31 -0800 (PST) Message-ID: <212044.91206.qm@web56106.mail.re3.yahoo.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0147710842==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Mike Viau Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0147710842== Content-Type: multipart/alternative; boundary="0-1907009643-1267298431=:91206" --0-1907009643-1267298431=:91206 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable In Xen Wiki is mentioned , that parameters for kernel may be set via comman= d line as follows:- ***************************************************************************= ********************************* module (hd1,10)/vmlinuz-2.6.31.8=A0 dummy=3Ddummy=A0 root=3D/dev/sda7 ro co= nsole=3Dtty0 ***************************************************************************= ********************************* # cat /proc/cmdline shows that GRUB2 skips first argument, what causes problem. Compiling built-in CMD_LINE is just an option. Read all Wiki written by Pasi and=A0 you would never be surprised ;) > P.S: What is=0Ayour feeling on using a recent Ubuntu system with=20 > grub-legacy as the boot=0Aloader? I noticed that Squeeze has adopted grub= 2 > package as well too... I have development Xen 3.4.3 instance on top Ubuntu 9.10 Server with GRUB2 = ( baremetall) loading any from 3 mentioned bellow kernels under Xen 3.4.3 1.)=A0 2.6.32.9 PVOPS 2.)=A0 2.6.31.6 PVOPS 3.)=A0 2.6.31.12 xenified with no problems with dummy=3Ddummy as first parameter ( thanks Pasi). It may also may be done via compiling kernels with built-in CMD_LINE. It works fine as well. Boris. --- On Sat, 2/27/10, Mike Viau wrote: From: Mike Viau Subject: [Xen-devel] RE: [Xen-users] How to: Improve Network Throughput of = a XEN kernel? To: bderzhavets@yahoo.com Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com Date: Saturday, February 27, 2010, 12:03 PM =0A=0A=0A=0A=0A=0A=0A=0A=0AYes,=0Athank you Boris for pointing that out. I = found that was defiantly true. The 3.2.1 xen=0Ahypervisor could only boot t= he 2.6.26-2 xen kernel and the xenified 2.6.31.12. =0A =0AAdditionally I found that: =0A =0A =0A=0AXend does=0Anot start when using pv_ops dom0 kernel? =0A=0AIn=0AD= ecember 2009 pv_ops dom0 kernel modules were renamed to have a=0A"xen-" pre= fix in them, ie. "evtchn.ko" became=0A"xen-evtchn.ko". =0A=0AThis=0Amakes = Xen 3.4.x xend fail to start, because it tried to load=0A"evtchn.ko", but t= hat doesn't exist. You need to load=0A"xen-evtchn.ko" and then start xend. = Fedora 12 xen-3.4.2-2 rpms have=0Athis problem fixed. =0A=0AAlso make=0Asu= re you have xenfs mounted to "/proc/xen", that's needed aswell.=20 =0A =0A[Source: http://wiki.xensource.com/xenwiki/XenParavirtOps] =0A =0AAnd it appears the Debian xen-3.4.2-2 debs (in squeeze) have not fixed= =0Athis problem. =0A =0ALastly I am still doing some reading on the grub2 package and how to con= figure it. It turns out=0Athat I have been using grub-legacy (or just good = old grub) for so long that=0Aconfiguring the grub2 boot loader is turning o= ut to be my own personal=0Akryptonite. =0A=0A =A0 =0A=0AI am=0Astill workin= g on getting the hypervisor to load the dom0 kernel in a Ubuntu system. =0A= =0A =A0 =0A=0AI have=0Anoticed an example in your wordpress @ Set up Xen 3.= 4.3-rc2 & Libvirt 0.7.0 Dom0 (with 2.6.31.8=0Axenified aka Suse kernel) on = top of Ubuntu 9.10=A0Server =0A=0A =A0 =0A=0AWith=0ACONFIG_CMDLINE=3D"root= =3D/dev/sdb11 ro console=3Dtty0" =0A=0A =A0 =0A=0Amenuentry "Xen 3.4 / Ubun= tu 9.10 kernel 2.6.31.8 xenified" { =0Ainsmod ext2 =0Aset root=3D(hd1,10) =0Amultiboot (hd1,10)/xen-3.4.gz =0Amodule (hd1,10)/vmlinuz-2.6.31.8 =0Amodule (hd1,10)/initrd-2.6.31.8.img =0A} =0A=0A =A0 =0A=0AI am sure=0Ayou wouldn't of mentioned the CONFIG_CMDL= INE kernel option is it was not=0Aimportant for using with grub2 right? I h= ave not have to compile a kernel with the command line previous as I was ju= st able to supply the arguments on the kernel line of my menu.lst (grub con= figuration file). =0A=0A =0A=0AP.S: What is=0Ayour feeling on using a recent Ubuntu system with gru= b-legacy as the boot=0Aloader? I noticed that Squeeze has adopted grub2 pac= kage as well too... =0A=0A =A0=0A=0A =0A-M Date: Sat, 27 Feb 2010 04:32:59 -0800 From: bderzhavets@yahoo.com Subject: Re: FW: [Xen-users] How to: Improve Network Throughput of a XEN=09= kernel? To: jbeulich@novell.com; mike.viau@sheridanc.on.ca CC: xen-devel@lists.xensource.com; xen-users@lists.xensource.com You cannot load pvops kernel under xen-hypervisor 3.2.1=A0 ( >=3D3.4.0 in g= eneral) Boris. --- On Fri, 2/26/10, Mike Viau wrote: From: Mike Viau Subject: FW: [Xen-users] How to: Improve Network Throughput of a XEN kernel= ? To: bderzhavets@yahoo.com, jbeulich@novell.com Cc: xen-users@lists.xensource.com, xen-devel@lists.xensource.com Date: Friday, February 26, 2010, 3:19 PM =0A=0A=0A#yiv1942893395 .ExternalClass #ecxyiv1124046979 .ecxhmmessage P=0A= {padding:0px;}=0A#yiv1942893395 .ExternalClass #ecxyiv1124046979 .ecxhmmess= age=0A{font-size:10pt;font-family:Verdana;}=0A=0AHello again, Just a quick update... I was really hoping it was just going to be an issue with the kernel .confi= g, however I copied exact configuration from the working Debain 2.6.26-2-xe= n-amd64 kernel and used a make oldconfig but the end result was the same. After booting the xenified (2.6.31.12) or pvops kernel (2.6.31.6) via both = xen-hypervisor 3.2.1 or xen-hypervisor 3.4.2 the maximum data transfer to/f= rom the Dom0 (Xen host) is ~1MB/s. Next I plan on re-trying my efforts on a Ubuntu system to see if same netwo= rk bottlenecking is present. =09=09 =09 =09=09 =20 Date: Fri, 26 Feb 2010 09:16:59 -0800 From: bderzhavets@yahoo.com Subject: Re: [Xen-users] How to: Improve Network Throughput of a XEN kernel= ? To: xen-users@lists.xensource.com; viaum@sheridanc.on.ca Would escalate to xen-devel.=A0 2.6.31.8 (12) aka Suse xenified=A0 was Jan = Beulich stuff. He might have an answer. Boris. --- On Fri, 2/26/10, Mike Viau wrote: From: Mike Viau Subject: [Xen-users] How to: Improve Network Throughput of a XEN kernel? To: xen-users@lists.xensource.com Cc: waldi@debian.org Date: Friday, February 26, 2010, 12:09 PM =0A=0A=0A#yiv1942893395 .ExternalClass #ecxyiv1124046979 .ecxExternalClass = #ecxecxyiv1501360283 .ecxecxhmmessage P=0A{padding:0px;}=0A#yiv1942893395 .= ExternalClass #ecxyiv1124046979 .ecxExternalClass #ecxecxyiv1501360283 .ecx= ecxhmmessage=0A{font-size:10pt;font-family:Verdana;}=0A=0A=0A#yiv1942893395= .ExternalClass #ecxyiv1124046979 .ecxExternalClass #ecxecxyiv1501360283 .e= cxecxhmmessage P=0A{padding:0px;}=0A#yiv1942893395 .ExternalClass #ecxyiv11= 24046979 .ecxExternalClass #ecxecxyiv1501360283 .ecxecxhmmessage=0A{font-si= ze:10pt;font-family:Verdana;}=0A=0A=0A=0A=0A=0A=0A#yiv1942893395 .ExternalC= lass #ecxyiv1124046979 .ecxExternalClass #ecxecxyiv1501360283 .ecxecxhmmess= age P=0A{padding:0px;}=0A#yiv1942893395 .ExternalClass #ecxyiv1124046979 .e= cxExternalClass #ecxecxyiv1501360283 .ecxecxhmmessage=0A{font-size:10pt;fon= t-family:Verdana;}=0A=0A=0A=0A=0A=0A=0A#yiv1942893395 .ExternalClass #ecxyi= v1124046979 .ecxExternalClass #ecxecxyiv1501360283 .ecxecxhmmessage P=0A{pa= dding:0px;}=0A#yiv1942893395 .ExternalClass #ecxyiv1124046979 .ecxExternalC= lass #ecxecxyiv1501360283 .ecxecxhmmessage=0A{font-size:10pt;font-family:Ve= rdana;}=0A=0AHi there, I am starting a new thread to try and solve a problem I am having will slow= network throughput to the XEN host (not to a domU). I have confirmed my problem occurs with PVOPS 'xen/master' kernel as well = using http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31.6-pvops-= dom0-xen-master-x86_64 as the .config. It also occurs with a forward ported xenified kernel (2.6.31.12) using the = attached config-11-xen (.config). However when using the xen kernel found in debain lenny (2.6.26-2) for the = amd64 architecture I get similiar transfer rates to my Xen host as I do on = a baremetel kernel. Bastian Blank perhaps you could point me in the right direction in regards = to a debian specific customization or patch I should be aware of? Maxium transfer rate (to/from=0A hard disk) using the PVOPS 'xen/master' k= ernel and forward ported xenified kernel (2.6.31.12) is bottlenecking at ~1= MB/s. On the debain lenny xen kernel I am getting ~4.5MB/s. I was=0Ahoping one could suggest options in the .config that might be modif= ied=0Ain order to improve network throughput of a XEN kernel and therefor i= ncrease the data transfer rates over the netowork to and from the Xen host. Thanks alot for any help! As always I will be willing to accept any suggest= ions :) -M =09=09 =09 =09=09 =20 =09=09 =09 =09=09 =20 Not using Hotmail on your phone? Why not? Get it now. =0A =09=09 =09 =09=09 =20 Live connected with Hotmail on your phone. Learn more. =0A -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1907009643-1267298431=:91206 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
In Xen Wiki is mentioned , that parameters fo= r kernel may be set via command line as follows:-
**********************= ***************************************************************************= ***********
module (hd1,10)/vmlinuz-2.6= .31.8  dummy=3Ddummy  root=3D/dev/sda7 ro console=3Dtty0*************************************************************************= ***********************************
# cat /proc/cmdline

shows tha= t GRUB2 skips first argument, what causes problem.

Compiling built-i= n CMD_LINE is just an option.
Read all Wiki written by Pasi and  yo= u would never be surprised ;)

> = P.S: What is=0Ayour feeling on using a recent Ubuntu system with
> g= rub-legacy as the boot=0Aloader? I noticed that Squeeze has adopted grub2 &= gt; package as well too...


I have development Xen 3.4.3 insta= nce on top Ubuntu 9.10 Server with GRUB2 ( baremetall) loading any from 3 m= entioned bellow kernels under Xen 3.4.3

1.)  2.6.32.9 PVOPS
= 2.)  2.6.31.6 PVOPS
3.)  2.6.31.12 xenified

with no pro= blems with dummy=3Ddummy as first parameter ( thanks Pasi).
It may also = may be done via compiling kernels with built-in CMD_LINE.
It works fine = as well.

Boris.











--- O= n Sat, 2/27/10, Mike Viau <viaum@sheridanc.on.ca> wrote= :

From: Mike Viau <viaum@sheridanc.on.ca= >
Subject: [Xen-devel] RE: [Xen-users] How to: Improve Network Throug= hput of a XEN kernel?
To: bderzhavets@yahoo.com
Cc: xen-devel@lists.x= ensource.com, xen-users@lists.xensource.com
Date: Saturday, February 27, 2010, 12:03 = PM

=0A=0A=0A=0A=0A=

Yes,=0Athank you Boris for pointing th= at out. I found that was defiantly true. The 3.2.1 xen=0Ahypervisor could o= nly boot the 2.6.26-2 xen kernel and the xenified 2.6.31.12.
=0A
=0AA= dditionally I found that:
=0A
=0A

= =0A=0A

Xend does=0Anot start when using pv_ops dom0 kernel?<= /span>

=0A=0A

In= =0ADecember 2009 pv_ops dom0 kernel modules were renamed to have a=0A"xen-"= prefix in them, ie. "evtchn.ko" became=0A"xen-evtchn.ko".

=0A= =0A

This=0Amakes Xen 3.4.x xend fail to start, because it tried = to load=0A"evtchn.ko", but that doesn't exist. You need to load=0A"xen-evtc= hn.ko" and then start xend. Fedora 12 xen-3.4.2-2 rpms have=0Athis problem = fixed.

=0A=0A

Also make=0Asure you have xenfs mounte= d to "/proc/xen", that's needed aswell.
=0A
=0A[Source: http://wiki.xensource.com/xenwiki/Xen= ParavirtOps]
=0A
=0AAnd it appears the Debian xen-3.4.2-2 = debs (in squeeze) have not fixed=0Athis problem.
=0A
=0ALastly= I am still doing some reading on the grub2 package and how to configure it= . It turns out=0Athat I have been using grub-legacy (or just good old grub)= for so long that=0Aconfiguring the grub2 boot loader is turning out to be = my own personal=0Akryptonite.

=0A=0A

  =0A=0A

I am=0Astill working on getting the hypervisor to loa= d the dom0 kernel in a Ubuntu system.

=0A=0A

 <= /span>

=0A=0A

I have=0Anoticed an example in your wordpress = @ Set up Xen 3.4.3-rc2 & Libvirt 0.7.0 Dom0 (with 2.6.31.8=0Axenified = aka Suse kernel) on top of Ubuntu 9.10 Server

= =0A=0A

 

=0A=0A

With=0ACONFIG_CMDLIN= E=3D"root=3D/dev/sdb11 ro console=3Dtty0"

=0A=0A

&nb= sp;

=0A=0A

= menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.= 6.31.8 xenified" {
=0A
insmod ext2
=0A
set root=3D(hd1,10)
=0A
multiboot (hd1,10)/xen-3.4.gz
=0A
module (hd1,10)/vmlinuz-2= .6.31.8
=0A
module (hd1,10)/initrd-2.6.31.8.img
=0A
}<= span style=3D"font-size: 12pt;">

=0A=0A

 

=0A=0A

I am sure=0Ayou wouldn't of mentioned the CONFIG_CM= DLINE kernel option is it was not=0Aimportant for using with grub2 right? I= have not have to compile a kernel with the command line previous as I was = just able to supply the arguments on the kernel line of my menu.lst (grub c= onfiguration file).

=0A=0A


=0A=0A

P.S: What is=0Ayour feeling on using a recent Ubuntu system with gr= ub-legacy as the boot=0Aloader? I noticed that Squeeze has adopted grub2 pa= ckage as well too...

=0A=0A


 = =0A=0A
=0A-M





Date: Sat, 27 Fe= b 2010 04:32:59 -0800
From: bderzhavets@yahoo.com
Subject: Re: FW: [X= en-users] How to: Improve Network Throughput of a XEN=09kernel?
To: jbeu= lich@novell.com; mike.viau@sheridanc.on.ca
CC: xen-devel@lists.xensource= .com; xen-users@lists.xensource.com

You cannot load pvops kernel under xen-hypervisor 3.2.1=   ( >=3D3.4.0 in general)

Boris.

--- On Fri, 2/26/= 10, Mike Viau <viaum@sheridanc.on.ca> wrote:

From: Mike Viau <vi= aum@sheridanc.on.ca>
Subject: FW: [Xen-users] How to: Improve Network= Throughput of a XEN kernel?
To: bderzhavets@yahoo.com, jbeulich@novell.com
Cc: xen-users= @lists.xensource.com, xen-devel@lists.xensource.com
Date: Friday, Februa= ry 26, 2010, 3:19 PM

=0A=0A=0AHello again,

Just a qu= ick update...

I was really hoping it was just going to be an issue w= ith the kernel .config, however I copied exact configuration from the worki= ng Debain 2.6.26-2-xen-amd64 kernel and used a make oldconfig but the end r= esult was the same.

After booting the xenified (2.6.31.12) or pvops = kernel (2.6.31.6) via both xen-hypervisor 3.2.1 or xen-hypervisor 3.4.2 the= maximum data transfer to/from the Dom0 (Xen host) is ~1MB/s.

Next I= plan on re-trying my efforts on a Ubuntu system to see if same network bot= tlenecking is present.
=09=09 =09 =09=09



Date: Fri, = 26 Feb 2010 09:16:59 -0800
From: bderzhavets@yahoo.com
Subject: Re: [= Xen-users] How to: Improve Network Throughput of a XEN kernel?
To: xen-u= sers@lists.xensource.com; viaum@sheridanc.on.ca

Would escalate to xen-devel.  2.6.31.8 (12) aka Suse xenified&nb= sp; was Jan Beulich stuff.
He might have an answer.
Boris.

---= On Fri, 2/26/10, Mike Viau <viaum@sheridanc.on.ca> wro= te:

From:= Mike Viau <viaum@sheridanc.on.ca>
Subject: [Xen-users] How to: Im= prove Network Throughput of a XEN kernel?
To: xen-users@lists.xensource.= com
Cc: waldi@debian.org
Date: Friday, February 26, 2010, 12:09 PM
=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0AHi there,

I am starting a n= ew thread to try and solve a problem I am having will slow network throughp= ut to the XEN host (not to a domU).

I have confirmed my problem occu= rs with PVOPS 'xen/master' kernel as well using http://pasik.reaktio.net/xen/pv_ops-d= om0-debug/config-2.6.31.6-pvops-dom0-xen-master-x86_64 as the .config.<= br>
It also occurs with a forward ported xenified kernel (2.6.31.12) usi= ng the attached config-11-xen (.config).

However when using th= e xen kernel found in debain lenny (2.6.26-2) for the amd64 architecture I = get similiar transfer rates to my Xen host as I do on a baremetel kernel.
Bastian Blank perhaps you could point me in the right direction in re= gards to a debian specific customization or patch I should be aware of?
=

Maxium transfer rate (to/from=0A hard disk) using the PVOPS 'xe= n/master' kernel and forward ported xenified kernel (2.6.31.12) is bottlene= cking at ~1MB/s. On the debain lenny xen kernel I am getting ~4.5MB/s= .

I was=0Ahoping one could suggest options in the .config tha= t might be modified=0Ain order to improve network throughput of a XEN kerne= l and therefor increase the data transfer rates over the netowork to and fr= om the Xen host.

Thanks alot for any help! As always I will be willi= ng to accept any suggestions :)


-M

=09=09 =09 =09=09
=09=09 =09 =09=09

Not using Hotmail on your phone? Wh= y not? Get it now. =0A

=09=09 =09 =09=09

Live connected with Hotmail on = your phone. Learn more. =0A

-----Inline Attachme= nt Follows-----

___________________________= ____________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A=0A=0A --0-1907009643-1267298431=:91206-- --===============0147710842== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============0147710842==--