From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [Xen-users] different number of cpus Date: Wed, 30 Mar 2016 18:27:54 +0200 Message-ID: <1459355274.5082.100.camel@citrix.com> References: , <20160317122234.GA23307@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3730360423650157808==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: tutu sky , Wei Liu Cc: "Xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============3730360423650157808== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NK+wpEugaY4oXA1VgU0r" --=-NK+wpEugaY4oXA1VgU0r Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2016-03-29 at 22:14 +0000, tutu sky wrote: > menuentry 'Ubuntu GNU/Linux, with Xen hypervisor' --class ubuntu -- > class gnu-linux --class gnu --class os --class xen > $menuentry_id_option 'xen-gnulinux-simple-d9e946b3-a4cf-4a90-8cdf- > 689d19a2b869' { > =C2=A0=C2=A0=C2=A0=C2=A0insmod part_msdos > =C2=A0=C2=A0=C2=A0=C2=A0insmod ext2 > =C2=A0=C2=A0=C2=A0=C2=A0set root=3D'hd0,msdos1' > =C2=A0=C2=A0=C2=A0=C2=A0if [ x$feature_platform_search_hint =3D xy ]; the= n > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0search --no-floppy --fs-uuid --set=3D= root --hint- > bios=3Dhd0,msdos1 --hint-efi=3Dhd0,msdos1 --hint- > baremetal=3Dahci0,msdos1=C2=A0=C2=A0d9e946b3-a4cf-4a90-8cdf-689d19a2b869 > =C2=A0=C2=A0=C2=A0=C2=A0else > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0search --no-floppy --fs-uuid --set=3D= root d9e946b3-a4cf-4a90- > 8cdf-689d19a2b869 > =C2=A0=C2=A0=C2=A0=C2=A0fi > =C2=A0=C2=A0=C2=A0=C2=A0echo=C2=A0=C2=A0=C2=A0=C2=A0'Loading Xen 4 ...' > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if [ "$grub_platform" =3D= "pc" -o "$grub_platform" =3D "" ]; then > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0x= en_rm_opts=3D > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0else > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0x= en_rm_opts=3D"no-real-mode edd=3Doff" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fi > =C2=A0=C2=A0=C2=A0=C2=A0multiboot=C2=A0=C2=A0=C2=A0=C2=A0/boot/xen-4.gz p= laceholder loglvl=3Dall > guest_loglvl=3Dall com1=3D115200,8n1,0x3e8,5 > console=3Dcom1,vga=C2=A0=C2=A0${xen_rm_opts} > This line here is the one. It needs to contain dom0_max_vcpus=3D2. > On Sat, Mar 12, 2016 at 10:18:15AM +0000, tutu sky wrote: > >=20 > > Hi all, > > i have installed Xen and while setting number of vcpus in Dom0 to > > 2, then go to terminal and issue "top" command, it shows me 4 core! > > these all happen while i have 2 cores available in > > /sys/devices/system/cpu (just cpu0 and cpu1), so what does it mean? > > I become totally confused, as i don't know what is the exact number > > of cores which are assigned to Xen or Dom0. > > in other words, when using "xl vcpu-set Domain-0 2" command, whys > > this two vcpus are showed 4 in "top" command? > >=20 > How does your xen.gz command line argument in bootloader look like? >=20 Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-NK+wpEugaY4oXA1VgU0r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlb7/ooACgkQk4XaBE3IOsSUEQCfZ1UgfY98OP5ZT5rdJSmUHXVM 55EAni2IONpSlICfPI6oIQmAk/BEx+On =wOu0 -----END PGP SIGNATURE----- --=-NK+wpEugaY4oXA1VgU0r-- --===============3730360423650157808== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============3730360423650157808==--