[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Xen-users] different number of cpus



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' {
>     insmod part_msdos
>     insmod ext2
>     set root='hd0,msdos1'
>     if [ x$feature_platform_search_hint = xy ]; then
>       search --no-floppy --fs-uuid --set=root --hint-
> bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-
> baremetal=ahci0,msdos1  d9e946b3-a4cf-4a90-8cdf-689d19a2b869
>     else
>       search --no-floppy --fs-uuid --set=root d9e946b3-a4cf-4a90-
> 8cdf-689d19a2b869
>     fi
>     echo    'Loading Xen 4 ...'
>         if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
>             xen_rm_opts=
>         else
>             xen_rm_opts="no-real-mode edd=off"
>         fi
>     multiboot    /boot/xen-4.gz placeholder loglvl=all
> guest_loglvl=all com1=115200,8n1,0x3e8,5
> console=com1,vga  ${xen_rm_opts}
>
This line here is the one.

It needs to contain dom0_max_vcpus=2.

> On Sat, Mar 12, 2016 at 10:18:15AM +0000, tutu sky wrote:
> > 
> > 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?
> > 
> How does your xen.gz command line argument in bootloader look like?
> 
Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.