From: Thiago Camargo Martins Cordeiro Subject: Re: Re: Re: Upgrage PV domU kernel? Date: Mon, 30 Mar 2009 11:01:39 -0300 Message-ID: <6b7f6eb0903300701iecd8035y9601eb3a9e6d0566@mail.gmail.com> References: <200903250858311253343@gmail.com> <6b7f6eb0903251055k13d5ca52i43861822a8683e03@mail.gmail.com> <200903260855529256817@gmail.com> <200903302001401718613@gmail.com> <6b7f6eb0903300622s759fb083sc77ca925271dcf@mail.gmail.com> <200903302137152340156@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1171082224==" Return-path: In-Reply-To: <200903302137152340156@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 --===============1171082224== Content-Type: multipart/alternative; boundary=0016e647eb6e7cb11804665685fa --0016e647eb6e7cb11804665685fa Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable No, when you download your kernel source within your domU, you must: tar xjf linux-2.6.29.tar.bz2 cd linux-2.6.29 make defconfig make menuconfig --- Enable HIGHMEM64G, PARAVIRT_GUEST and XEN (only domU are available for 2.6.29) options and save it --- make targz-pkg # So you can copy the generated kernel package to other domUs and/or to dom0... You can make a initramdisk, if you wish (If on Debian) depmod 2.6.29 update-initramfs -k 2.6.29 -c And copy your domU /boot/initrd.img-2.6.29 to your dom0 together your new compiled kernel. Good luck! Thiago 2009/3/30 Zhiyuan Shao > Using the default settings always when make (kernel) asks? > > Thanks, > > 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-30 21:22:05 > *=CA=D5=BC=FE=C8=CB=A3=BA* Zhiyuan Shao > *=B3=AD=CB=CD=A3=BA* xen-devel@lists.xensource.com > *=D6=F7=CC=E2=A3=BA* Re: Re: Re: [Xen-devel] Upgrage PV domU kernel? > 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 (= if >> 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 som= e >>> 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 sacr= ifice >>> resulted 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 >>> >>> >> > --0016e647eb6e7cb11804665685fa Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable No, when you download your kernel source within your domU, you must:
tar xjf linux-2.6.29.tar.bz2
cd linux-2.6.29
make defconfig
make menuconfig

 --- Enabl= e HIGHMEM64G, PARAVIRT_GUEST and XEN (only domU are available for 2.6.29) o= ptions and save it ---

make targz-pkg  # So you can copy the ge= nerated kernel package to other domUs and/or to dom0...

You can make a initramdisk, if you wish (If on Debian)

depmod 2.= 6.29
update-initramfs -k 2.6.29 -c

And copy your domU /boot/initr= d.img-2.6.29 to your dom0 together your new compiled kernel.

Good lu= ck!
Thiago


2009/3/30 Zhiyuan Shao <zyshao.maillist= @gmail.com>
Using the default = settings always=20 when make (kernel) asks?
 
Thanks,
 
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-30  21:22:05=20
=CA=D5=BC=FE=C8=CB=A3=BA Zhiy= uan Shao
=B3=AD=CB=CD=A3=BA=20 xen-deve= l@lists.xensource.com
=D6=F7=CC=E2=A3=BA Re: = Re: Re: [Xen-devel]=20 Upgrage PV domU kernel?
Have you enabled this=20 options:

CONFIG_PARAVIRT_GUEST=3Dy
CONFIG_XEN=3Dy
CONFIG_HIGHM= EM64G=3Dy

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

Good luck!
Thiago

2009/3/30 Zhiyuan 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= _xen_note_check: ERROR: Not=20 a Xen-ELF image: No ELF notes or '__xen_guest' section found.\n&q= uot;)
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"
&nbs= p;
# Optional=20 ramdisk.
ramdisk =3D "/boot/initrd-2.6.29.img"
 
= memory =3D=20 512
 
# A name for your domain. All domains must have differen= t=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' ]<= br> 
disk =3D=20 [ 'file:/root/test-pv/vm1disk,sda1,w' ]
 
# Set root= =20 device.
root =3D "/dev/sda1 ro"
 
extra =3D "= ;4"
 
 
2009-03-30

Zhiyuan Sh= ao=20

=B7=A2=BC=FE=C8=CB=A3=BA Th= iago Camargo Martins Cordeiro=20
=B7=A2=CB=CD=CA=B1=BC=E4=A3=BA<= /b> 2009-03-26  01:55:58=20
=CA=D5=BC=FE=C8=CB=A3=BA zy= shao.maillist
=D6=F7=CC=E2=A3=BA Re: [Xen= -devel] Upgrage PV domU=20 kernel?
Hi Zyshao,

 You can do= wnload 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 = your=20 dom0 (if you dont use PyGRUB) and start it!

Good=20 luck!
Thiago

2009/3/24 zyshao.maillist &l= t;zyshao.mai= llist@gmail.com>
hi pals,
 
I need to run some HPC applications on the PV Guest (configured wi= th=20 multiple VCPUs and the application invokes also multiple processes to= =20 communicate with each other during the lifetime), and found that in som= e=20 overcommitted cases, the application's performance degrades drastic= ally. I=20 got a Xen installation with both Dom0 and DomU running=20 "vmlinuz-2.6.18.8-xen" kernel, i.e., the default configuratio= n.
 
I am wondering if I can Upgrade the kernel of the PV Guest, i.e., = domU,=20 to run other alternative kernel, such as latest stable linux kernel,=20 2.6.28.8? By this way, it may be possible to avoid the performance sacr= ifice=20 resulted by spin-lock problem.
 
Thanks in advance for any suggestions!
 
Zhiyuan Shao
 
 
2009-03-25=20
 

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




--0016e647eb6e7cb11804665685fa-- --===============1171082224== 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 --===============1171082224==--