All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: tutu sky <ooohooo_u@hotmail.com>, Wei Liu <wei.liu2@citrix.com>
Cc: "Xen-devel@lists.xen.org" <Xen-devel@lists.xen.org>
Subject: Re: [Xen-users] different number of cpus
Date: Wed, 30 Mar 2016 18:27:54 +0200	[thread overview]
Message-ID: <1459355274.5082.100.camel@citrix.com> (raw)
In-Reply-To: <HE1PR05MB1308FE7BF3F40310585D77C68D870@HE1PR05MB1308.eurprd05.prod.outlook.com>


[-- Attachment #1.1: Type: text/plain, Size: 2166 bytes --]

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 #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

  reply	other threads:[~2016-03-30 16:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <HE1PR05MB1308D4C17A1D30841DB0625B8DB60@HE1PR05MB1308.eurprd05.prod.outlook.com>
     [not found] ` <20160317122234.GA23307@citrix.com>
2016-03-29 22:14   ` [Xen-users] different number of cpus tutu sky
2016-03-30 16:27     ` Dario Faggioli [this message]
2016-03-31  7:25       ` tutu sky
2016-03-31 11:22         ` Dario Faggioli
2016-03-31 16:35           ` tutu sky
2016-04-01 13:59             ` Dario Faggioli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459355274.5082.100.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=Xen-devel@lists.xen.org \
    --cc=ooohooo_u@hotmail.com \
    --cc=wei.liu2@citrix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.