虚拟化小白对VMcpu分配的理解

论坛 期权论坛     
选择匿名的用户   2021-5-23 01:40   88   0
<div class="artical-content-bak main-content editor-side-new">
<div class="con editor-preview-side" id="result">
  <p><span style="font-family:&#39;宋体&#39;;">虚拟化小白对</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VMcpu</span><span style="font-family:&#39;宋体&#39;;">分配的理解</span></p>
  <p><strong><em><span style="font-family:&#39;宋体&#39;;color:#FF0000;">首先说下:小弟才疏学浅,还请各路大神指教。</span></em></strong></p>
  <p><span style="font-family:Verdana, &#39;sans-serif&#39;;"> </span></p>
  <p><span style="font-family:&#39;宋体&#39;;">我这里以</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">vSphere 5.5</span><span style="font-family:&#39;宋体&#39;;">来举例说明</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">      </span></p>
  <p><span style="font-family:&#39;宋体&#39;;">在我们虚拟化的环境中,</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">cpu</span><span style="font-family:&#39;宋体&#39;;">数量如何分配,影响着</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">的计算性能,更影响着</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">ESXi</span><span style="font-family:&#39;宋体&#39;;">主机的性能。</span></p>
  <p><span style="font-family:&#39;宋体&#39;;">如果虚拟机少,能做到</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">cpu</span><span style="font-family:&#39;宋体&#39;;">不超分,那肯定是没问题,但是这种情况实在是太少了。</span></p>
  <p><span style="font-family:&#39;宋体&#39;;">随着虚拟化的应用,我们的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">数量总是在增加,那这就涉及到</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">cpu</span><span style="font-family:&#39;宋体&#39;;">分配问题。</span></p>
  <p><span style="font-family:Verdana, &#39;sans-serif&#39;;"> </span></p>
  <p><span style="font-family:&#39;宋体&#39;;">首先,我们先理解几个和</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VMcpu</span><span style="font-family:&#39;宋体&#39;;">相关的概念</span></p>
  <p><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">Socket--------</span></strong><strong><span style="font-family:&#39;宋体&#39;;">插槽数,物理</span></strong><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">cpu</span></strong><strong><span style="font-family:&#39;宋体&#39;;">个数</span></strong></p>
  <p><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">Core----------</span></strong><strong><span style="font-family:&#39;宋体&#39;;">核心数</span></strong></p>
  <p><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">Lcpu----------</span></strong><strong><span style="font-family:&#39;宋体&#39;;">每个核心上同时可以执行的线程数,一台</span></strong><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span></strong><strong><span style="font-family:&#39;宋体&#39;;">至少对应一个</span></strong><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">Lcpu</span></strong></p>
  <p><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">vCPU/vSMP----------</span></strong><strong><span style="font-family:&#39;宋体&#39;;">虚拟机的</span></strong><strong><span style="font-family:Verdana, &#39;sans-serif&#39;;">CPU</span></strong></p>
  <p><span style="font-family:Verdana, &#39;sans-serif&#39;;"> </span></p>
  <p><span style="font-family:&#39;宋体&#39;;">以</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">5.5</span><span style="font-family:&#39;宋体&#39;;">为例,官方给出的数据是单台</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">ESXi</span><span style="font-family:&#39;宋体&#39;;">主机做多能分配出</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">4096</span><span style="font-family:&#39;宋体&#39;;">个</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">vcpu。</span></p>
  <p><span style="font-family:&#39;宋体&#39;;">这里的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">4096</span><span style="font-family:&#39;宋体&#39;;">指的是单台主机上所有</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">分配的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">vcpu</span><span style="font-family:&#39;宋体&#39;;">总数,而不是一台</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">VM</span><span style="font-family:&#39;宋体&#39;;">就能分配这么多的</span><span style="font-family:Verdana, &#39;sans-serif&#39;;">vcpu</span><span style="font-family:&#39;宋体&#39;;">。</span></p>
  <p><span style="font-family:&#39;宋体&#39;;">单台</span><span style="f
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP