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

Re: [Xen-users] how can I enable multiple vcpus?

Hi there

Why are you tryuing to allocate vcpus to dom0 ?

Also I am not sure that you can do VPCU's in dom0. Dom0 by default has access to all of the physical CPU's and controls allocation of vcpus to domU... you can give a Dom0 more/less CPUs but I have never seen any reference to vcpus for dom0... after all dom0 is the management domain for the xen hypervisor, and it is expected all the 'real work' will be done in domU's...


On 7 December 2015 at 14:17, Big Strong <fangtuo90@xxxxxxxxx> wrote:
I want to enable multiple vcpus to dom0, instead of domU. And I've configured 4 vcpus to dom0 and pinned it to physical cpu cores in EFI config files. But only one is truly available to dom0, the other three are in pause state as 'xl vcpu-list' shows.

Some added information.
~$ sudo xl info -n
host          : storage
release        Â: 3.13.0-24-generic
version        Â: #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014
machine        Â: x86_64
nr_cpus        Â: 6
max_cpu_id       : 143
nr_nodes        : 1
cores_per_socket    : 6
threads_per_core    : 1
cpu_mhz        Â: 1600
hw_caps        Â: bfebfbff:2c100800:00000000:00007f00:77fefbff:00000000:00000021:000037ab
virt_caps       Â: hvm hvm_directio
total_memory      : 32667
free_memory      Â: 21984
sharing_freed_memory  : 0
sharing_used_memory  Â: 0
outstanding_claims   : 0
free_cpus       Â: 0
cpu_topology      :
cpu:  Âcore  Âsocket   node
 0:    0    Â0    Â0
 1:    1    Â0    Â0
 2:    2    Â0    Â0
 3:    3    Â0    Â0
 4:    4    Â0    Â0
 5:    5    Â0    Â0
device topology    Â:
device      node
No device topology data available
numa_info       Â:
node:  Âmemsize  Âmemfree  Âdistances
 Â0:   34816   Â21984   Â10
xen_major       Â: 4
xen_minor       Â: 6
xen_extra       Â: .0
xen_version      Â: 4.6.0
xen_caps        : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler     Â: credit
xen_pagesize      : 4096
platform_params    Â: virt_start=0xffff800000000000
xen_changeset     Â:
xen_commandline    Â: console=vga,com1 com1=57600,8n1 loglvl=all noreboot dom0_mem=8g,max:8g dom0_max_vcpus=4 dom0_vcpus_pin ${xen_rm_opts} debug
cc_compiler      Â: gcc (Ubuntu/Linaro 4.7.3-12ubuntu1) 4.7.3
cc_compile_by     Â: root
cc_compile_domain   Â:
cc_compile_date    Â: Sun Dec Â6 11:51:01 CST 2015
xend_config_format   : 4

2015-12-06 14:45 GMT+08:00 fangtuo90 <fangtuo90@xxxxxx>:
I've configured 'dom0_max_vcpus=4 dom0_vcpus_pin' in bootloader.

However, 'xl list' shows only one vcpu is available to dom0
~$ sudo xl list
Name                    ÂID  Mem VCPUs   ÂState  Time(s)
Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â8191 Â Â 1 Â Â r----- Â Â 533.2
ubuntu-hvm                  1 Â2048   1   -b----   Â67.3

'xl vcpu-list' shows 3 of the 4 vcpus are paused, even though 'xentop' shows the cpu usage of dom0 is almost 100%
~$ sudo xl vcpu-list
Name                ÂID ÂVCPU  CPU State  Time(s) Affinity (Hard / Soft)
Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â Â 0 Â Â0 Â r-- Â Â 533.6 Â0 / all
Domain-0               0   1  Â-  --p    0.0 Â1 / all
Domain-0               0   2  Â-  --p    0.0 Â2 / all
Domain-0               0   3  Â-  --p    0.0 Â3 / all
ubuntu-hvm              1   0  Â5  -b-   Â67.3 Âall / all

xentop - 14:42:29 Â Xen 4.6.0
2 domains: 1 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 33451548k total, 10939112k used, 22512436k free  ÂCPUs: 6 @ 1600MHz
Domain-0 -----r    1003  93.1  Â8388604  25.1  Â8388608   Â25.1   4 Â
ubuntu-hvm ------ Â Â Â 140 Â 9.6 Â Â2097452 Â Â6.3 Â Â2098176 Â Â Â 6.3 Â Â 1 ÂÂ

Any ideas on how to trully enable the vcpus?

Xen-users mailing list

GPG key fingerprint: 3883 B308 8256 2246 D3EDÂ A1FF 3A1D 0EAD 41C4 C2F0
GPG public key available on pgp(dot)net key server
Xen-users mailing list



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