<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">what's more, libvirt cann't see the CPU parameter! sou i think CPU is only used for overcommiting in opennebula level. <br><br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2013-01-24 11:42:31,"cmcc.dylan" <dx10years@126.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br>if VCPU=4, i think the host will fork 4 process on behalf of this vm, because i see it is so implemented in the qemu code.<div>I am very confused about this part of opennebula!<br><div></div><div></div><br>At 2013-01-24 11:31:34,"Steven C Timm" <<a href="mailto:timm@fnal.gov">timm@fnal.gov</a>> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<style></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">VCPU is the parameter that controls how many cores appear internally in the virtual machine. I. e. if you have VCPU=4<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Your VM will have 4 cores, but there will still only be one kvm process as seen in the hypervisor that corresponds to it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In a typical KVM setup it is possible to allocate more VCPU per VM host than the VM host has real cores.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I am not exactly sure what CPU does, but it does affect the FCPU and ACPU as seen in the onehost list output.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Steve Timm<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:users-bounces@lists.opennebula.org">users-bounces@lists.opennebula.org</a> [mailto:<a href="mailto:users-bounces@lists.opennebula.org">users-bounces@lists.opennebula.org</a>]
<b>On Behalf Of </b>cmcc.dylan<br>
<b>Sent:</b> Wednesday, January 23, 2013 9:26 PM<br>
<b>To:</b> <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
<b>Subject:</b> [one-users] the problem of the CPU in the virtual machine's template<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Hi, everyone!<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> I have a doubt what's the accurately means of CPU in the vm's template. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> For a example, if we define a vm which has CPU=1 and VCPU = 4. In this condition , what's result in the host os?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> Does the host os fork 4 process on behalf of this vm and does the 4 process get 4 cores if the host's scheduler allows that.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> I want to know the differences between "CPU=4,VCPU=4" and "CPU=1,VCPU=4".<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
</blockquote></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>