From: Thiago Camargo Martins Cordeiro Subject: Re: Re: Re: Upgrage PV domU kernel? Date: Mon, 30 Mar 2009 10:22:04 -0300 Message-ID: <6b7f6eb0903300622s759fb083sc77ca925271dcf@mail.gmail.com> References: <200903250858311253343@gmail.com> <6b7f6eb0903251055k13d5ca52i43861822a8683e03@mail.gmail.com> <200903260855529256817@gmail.com> <200903302001401718613@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1756057753==" Return-path: In-Reply-To: <200903302001401718613@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Zhiyuan Shao Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1756057753== Content-Type: multipart/alternative; boundary=0016e6470e0ce8410a046655f7f4 --0016e6470e0ce8410a046655f7f4 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Have you enabled this options: CONFIG_PARAVIRT_GUEST=3Dy CONFIG_XEN=3Dy CONFIG_HIGHMEM64G=3Dy ...in your domU's config kernel? Good luck! Thiago 2009/3/30 Zhiyuan Shao > I tried this way, but seems it doesnot work. > > [root@Dell1 test-pv]# xm cr -c 1-pv.cfg > Using config file "./1-pv.cfg". > Error: (2, 'Invalid kernel', "elf_xen_note_check: ERROR: Not a Xen-ELF > image: No ELF notes or '__xen_guest' section found.\n") > The configure file of 1-pv.cfg: > > [root@Dell1 test-pv]# cat 1-pv.cfg > > #------------------------------------------------------------------------= ---- > # Kernel image file. > kernel =3D "/boot/vmlinuz-2.6.29" > > # Optional ramdisk. > ramdisk =3D "/boot/initrd-2.6.29.img" > > memory =3D 512 > > # A name for your domain. All domains must have different names. > name =3D "test-pv" > > vcpus =3D 2 > > vif =3D [ 'ip=3D192.168.2.101, mac=3D00:16:3e:00:10:11, bridge=3Dxenbr0' = ] > > disk =3D [ 'file:/root/test-pv/vm1disk,sda1,w' ] > > # Set root device. > root =3D "/dev/sda1 ro" > > extra =3D "4" > > > 2009-03-30 > ------------------------------ > Zhiyuan Shao > ------------------------------ > *=B7=A2=BC=FE=C8=CB=A3=BA* Thiago Camargo Martins Cordeiro > *=B7=A2=CB=CD=CA=B1=BC=E4=A3=BA* 2009-03-26 01:55:58 > *=CA=D5=BC=FE=C8=CB=A3=BA* zyshao.maillist > *=B3=AD=CB=CD=A3=BA* xen-devel@lists.xensource.com > *=D6=F7=CC=E2=A3=BA* Re: [Xen-devel] Upgrage PV domU kernel? > Hi Zyshao, > > You can download the latest kernel from > http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2 within your > domU, compile it as usual, copy vmlinuz (and initramdisk) to your dom0 (i= f > you dont use PyGRUB) and start it! > > Good luck! > Thiago > > 2009/3/24 zyshao.maillist > >> hi pals, >> >> I need to run some HPC applications on the PV Guest (configured with >> multiple VCPUs and the application invokes also multiple processes to >> communicate with each other during the lifetime), and found that in some >> overcommitted cases, the application's performance degrades drastically.= I >> got a Xen installation with both Dom0 and DomU running >> "vmlinuz-2.6.18.8-xen" kernel, i.e., the default configuration. >> >> I am wondering if I can Upgrade the kernel of the PV Guest, i.e., domU, = to >> run other alternative kernel, such as latest stable linux kernel, 2.6.28= .8? >> By this way, it may be possible to avoid the performance sacrifice resul= ted >> by spin-lock problem. >> >> Thanks in advance for any suggestions! >> >> Zhiyuan Shao >> >> >> 2009-03-25 >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> > --0016e6470e0ce8410a046655f7f4 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Have you enabled this options:

CONFIG_PARAVIRT_GUEST=3Dy
CONFIG_X= EN=3Dy
CONFIG_HIGHMEM64G=3Dy

...in your domU's config kernel?=

Good luck!
Thiago

2009/3/30 Zh= iyuan Shao <zyshao.maillist@gmail.com>
I tried this way, = but seems it=20 doesnot work.
 
[root@Dell1 test-pv]# xm cr -c 1-pv.cfg
Using config file=20 "./1-pv.cfg".
Error: (2, 'Invalid kernel', "elf_x= en_note_check: ERROR: Not a=20 Xen-ELF image: No ELF notes or '__xen_guest' section found.\n"= )
The configure file of 1-pv.cfg:
 
[root@Dell1 test-pv]# cat=20 1-pv.cfg
#--------------------------------------------------------------= --------------
#=20 Kernel image file.
kernel =3D "/boot/vmlinuz-2.6.29"
 =
# Optional=20 ramdisk.
ramdisk =3D "/boot/initrd-2.6.29.img"
 
me= mory =3D=20 512
 
# A name for your domain. All domains must have different= =20 names.
name =3D "test-pv"
 
vcpus =3D 2
 vif =3D [=20 'ip=3D192.168.2.101, mac=3D00:16:3e:00:10:11, bridge=3Dxenbr0' ] 
disk =3D [=20 'file:/root/test-pv/vm1disk,sda1,w' ]
 
# Set root devic= e.
root =3D=20 "/dev/sda1 ro"
 
extra =3D "4"
 
=
 
2009-03-30 =

Zhiyuan Shao= =20

=B7=A2=BC=FE=C8=CB=A3=BA Thia= go Camargo Martins=20 Cordeiro
=B7=A2=CB=CD=CA=B1=BC=E4=A3=BA 2009-03-26  01:55:58=20
=CA=D5=BC=FE=C8=CB=A3=BA zysh= ao.maillist=20
=B3=AD=CB=CD=A3=BA=20 xen-deve= l@lists.xensource.com
=D6=F7=CC=E2=A3=BA Re: [Xen-d= evel] Upgrage PV=20 domU kernel?
Hi Zyshao,

 You can down= load the=20 latest kernel from http://kernel.org/pub/linux/kernel/v2.6/= linux-2.6.29.tar.bz2=20 within your domU, compile it as usual, copy vmlinuz (and initramdisk) to yo= ur=20 dom0 (if you dont use PyGRUB) and start it!

Good luck!
Thiago
=
2009/3/24 zyshao.maillist <= zyshao.maill= ist@gmail.com>
hi pals,
 
I need to run some HPC applications on the PV Guest (configured with= =20 multiple VCPUs and the application invokes also multiple processes to=20 communicate with each other during the lifetime), and found that in some= =20 overcommitted cases, the application's performance degrades drastical= ly. I got=20 a Xen installation with both Dom0 and DomU running "vmlinuz-2.6.18.8= -xen"=20 kernel, i.e., the default configuration.
 
I am wondering if I can Upgrade the kernel of the PV Guest, i.e., do= mU,=20 to run other alternative kernel, such as latest stable linux kernel, 2.6.= 28.8?=20 By this way, it may be possible to avoid the performance sacrifice result= ed by=20 spin-lock problem.
 
Thanks in advance for any suggestions!
 
Zhiyuan Shao
 
 
2= 009-03-25=20
 

_______________________________________= ________
Xen-devel=20 mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-dev= el



--0016e6470e0ce8410a046655f7f4-- --===============1756057753== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1756057753==--