<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Olivier,<br>
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.<br>
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.<br>
<br>
Ad setting number of CPU:<br>
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.<br>
<br>
Ondra<br>
<br>
<div class="moz-cite-prefix">On 08/01/2014 05:07 PM, Olivier Sallou wrote:<br>
</div>
<blockquote cite="mid:53DBAD27.1070308@irisa.fr" type="cite"><br>
<div class="moz-cite-prefix">On 08/01/2014 03:44 PM, Steffen Claus wrote:<br>
</div>
<blockquote cite="mid:731687757.118028.1406900687843.JavaMail.root@scai.fraunhofer.de" type="cite">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">
Did you configure the value for "vCPU" as well?<br>
</div>
</blockquote>
It was not set at all.<br>
Adding it indeed add some core to the VM, but this is a little misleading....<br>
<br>
But should CPU be equal to VCPU for full CPU usage? (I want to really use 2 cores => CPU = 2, VCPU = 2)<br>
<br>
Thanks<br>
<blockquote cite="mid:731687757.118028.1406900687843.JavaMail.root@scai.fraunhofer.de" type="cite">
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">
<br>
<hr id="zwchr">
<blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
Hi,<br>
I have an issue with CPUs, all my VMs have a single CPU whatever is set in my sunstone template.<br>
<br>
Executed command is: <br>
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp 1,sockets=1,cores=1,threads=1 ....<br>
<br>
<br>
while in my template in sunstone I see :<br>
<table id="template_template_table" class="info_table
transparent_table" style="box-sizing: border-box;
border-top-left-radius: 3px; border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; margin: 0px 0px 18px;
border: 0px !important; border-collapse: collapse;
border-spacing: 0px; color: rgb(34, 34, 34); font-family:
'Open Sans', sans-serif; font-size: 14px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 28px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; width: 662px;
background-image: none !important; background-attachment:
initial !important; background-color: rgb(253, 253, 253);
background-size: initial !important; background-origin:
initial !important; background-clip: initial !important;
background-position: initial !important;
background-repeat: initial !important;">
<tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box; border: 0px
!important; background: none !important;">
<td class="key_td" style="box-sizing: border-box;
margin: 0px; padding: 6px 10px; font-size: 14px;
direction: ltr; text-align: left; display:
table-cell; line-height: 18px; color: rgb(51, 51,
51); vertical-align: top; border-style: none none
solid; border-bottom-width: 1px;
border-bottom-color: rgb(204, 204, 204);
font-weight: bold;">
CPU</td>
<td class="value_td" style="box-sizing: border-box;
margin: 0px; padding: 6px 10px; font-size: 14px;
direction: ltr; text-align: left; display:
table-cell; line-height: 18px; color: rgb(51, 51,
51); vertical-align: top; border-style: none none
solid; border-bottom-width: 1px;
border-bottom-color: rgb(204, 204, 204);
text-overflow: ellipsis; word-break: break-all;">
2</td>
</tr>
</tbody>
</table>
I expect to have here 2 CPUs.<br>
<br>
The generated deployment file is below:<br>
<br>
<domain type='kvm' xmlns:qemu='<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank">http://libvirt.org/schemas/domain/qemu/1.0</a>'><br>
<name>one-984</name><br>
<cputune><br>
<shares>2048</shares><br>
</cputune><br>
<memory>2097152</memory><br>
<os><br>
<type arch='x86_64'>hvm</type><br>
<boot dev='hd'/><br>
</os><br>
<devices><br>
<emulator>/usr/bin/kvm</emulator><br>
<disk type='file' device='disk'><br>
<source file='/var/lib/one//datastores/0/984/disk.0'/><br>
<target dev='vda'/><br>
<driver name='qemu' type='raw' cache='none'/><br>
</disk><br>
<disk type='file' device='cdrom'><br>
<source file='/var/lib/one//datastores/0/984/disk.1'/><br>
<target dev='hda'/><br>
<readonly/><br>
<driver name='qemu' type='raw'/><br>
</disk><br>
<interface type='bridge'><br>
<source bridge='br0'/><br>
<mac address='00:04:c0:a8:02:40'/><br>
</interface><br>
<graphics type='vnc' listen='0.0.0.0' port='6884' keymap='fr'/><br>
</devices><br>
<features><br>
<acpi/><br>
</features><br>
</domain><br>
<br>
<br>
<br>
Could you explain what is wrong ?<br>
<br>
I am using OpenNebula 4.2 (expecting an upgrade soon...)<br>
<br>
Thanks<br>
<br>
Olivier<br>
<pre class="moz-signature">--
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote>
<br>
<br>
<br>
-- <br>
<div><span name="x"></span>Steffen Claus<br>
<br>
Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)<br>
Schloss Birlinghoven<br>
D-53754 Sankt Augustin<br>
Tel: +49 2241 14-2511<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:steffen.claus@scai.fraunhofer.de">steffen.claus@scai.fraunhofer.de</a><br>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.scai.fraunhofer.de">http://www.scai.fraunhofer.de</a>
<span name="x"></span><br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<hr>
<p class="MsoNormal"><span style="font-size:7.5pt;line-height:115%;font-family:
"Arial","sans-serif";mso-fareast-font-family:"Times New Roman";color:gray">This e-mail and any attachment
<span class="GramE">is</span> for <span class="SpellE">authorised</span> 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.</span></p>
</body>
</html>