Re: [one-users] VM is always using a single CPU

2014-08-01 Thread Ondrej Hamada

Hi Olivier,
as far as I know, the CPU attribute in One is used by scheduler only in order 
to decide how much CPU is consumed on hosts. It has no effect on VM unless you 
are using cgroups.
The vCPU sets how many threads could be used by the VM. The number of vCPU in 
Nebula determines the number of sockets in '-smp' option of KVM.

Ad setting number of CPU:
Let's look on following example: my hypervisor has two quad-core CPUs with 
hyperthreadig giving me 16 threads in total. In such case Nebula presents the 
CPU value of 1600 for the hypervisor. Now I decide that I do not want to run 
more than 20 VMs on such hyperviso, so 1600/20=80. But because Nebula divides 
these values by 100, you get 80/100 = 0.8. So if you want to run no more than 
20 VMs on 16 threads, you shoud set the CPU value of the templates to 0.8.

Ondra

On 08/01/2014 05:07 PM, Olivier Sallou wrote:

On 08/01/2014 03:44 PM, Steffen Claus wrote:
Did you configure the value for "vCPU" as well?
It was not set at all.
Adding it indeed add some core to the VM, but this is a little misleading

But should CPU be equal to VCPU for full CPU usage? (I want to really use 2 cores 
=> CPU = 2, VCPU = 2)

Thanks


Hi,
I have an issue with CPUs, all my VMs have a single CPU whatever is set in my 
sunstone template.

Executed command is:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp 
1,sockets=1,cores=1,threads=1 


while in my template in sunstone I see :
CPU 2
I expect to have here 2 CPUs.

The generated deployment file is below:


   one-984
   
   2048
   
   2097152
   
   hvm
   
   
   
   /usr/bin/kvm
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   




Could you explain what is wrong ?

I am using OpenNebula 4.2  (expecting an upgrade soon...)

Thanks

Olivier

--


gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



--
Steffen Claus

Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)
Schloss Birlinghoven
D-53754 Sankt Augustin
Tel: +49 2241 14-2511
steffen.cl...@scai.fraunhofer.de
http://www.scai.fraunhofer.de


--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438





___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you for understanding.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM is always using a single CPU

2014-08-01 Thread Olivier Sallou

On 08/01/2014 03:44 PM, Steffen Claus wrote:
> Did you configure the value for "vCPU" as well?
It was not set at all.
Adding it indeed add some core to the VM, but this is a little
misleading

But should CPU be equal to VCPU for full CPU usage? (I want to really
use 2 cores => CPU = 2, VCPU = 2)

Thanks
>
> 
>
> Hi,
> I have an issue with CPUs, all my VMs have a single CPU whatever
> is set in my sunstone template.
>
> Executed command is:
> /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp
> 1,sockets=1,cores=1,threads=1 
>
>
> while in my template in sunstone I see :
> CPU   2
>
> I expect to have here 2 CPUs.
>
> The generated deployment file is below:
>
>  xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
> one-984
> 
> 2048
> 
> 2097152
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  keymap='fr'/>
> 
> 
> 
> 
> 
>
>
>
> Could you explain what is wrong ?
>
> I am using OpenNebula 4.2  (expecting an upgrade soon...)
>
> Thanks
>
> Olivier
>
> -- 
>
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
> -- 
> Steffen Claus
>
> Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)
> Schloss Birlinghoven
> D-53754 Sankt Augustin
> Tel: +49 2241 14-2511
> steffen.cl...@scai.fraunhofer.de
> http://www.scai.fraunhofer.de

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM is always using a single CPU

2014-08-01 Thread Steffen Claus
Did you configure the value for "vCPU" as well? 

- Ursprüngliche Mail -

> Hi,
> I have an issue with CPUs, all my VMs have a single CPU whatever is
> set in my sunstone template.

> Executed command is:
> /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp
> 1,sockets=1,cores=1,threads=1 

> while in my template in sunstone I see :

> CPU   2 I expect to have here 2 CPUs.

> The generated deployment file is below:

> 
> one-984
> 
> 2048
> 
> 2097152
> 
> hvm
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

> Could you explain what is wrong ?

> I am using OpenNebula 4.2 (expecting an upgrade soon...)

> Thanks

> Olivier
> --

> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 

Steffen Claus 

Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI) 
Schloss Birlinghoven 
D-53754 Sankt Augustin 
Tel: +49 2241 14-2511 
steffen.cl...@scai.fraunhofer.de 
http://www.scai.fraunhofer.de 
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] VM is always using a single CPU

2014-08-01 Thread Olivier Sallou
Hi,
I have an issue with CPUs, all my VMs have a single CPU whatever is set
in my sunstone template.

Executed command is:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp
1,sockets=1,cores=1,threads=1 


while in my template in sunstone I see :
CPU 2

I expect to have here 2 CPUs.

The generated deployment file is below:


one-984

2048

2097152

hvm



/usr/bin/kvm
























Could you explain what is wrong ?

I am using OpenNebula 4.2  (expecting an upgrade soon...)

Thanks

Olivier

-- 


gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org