vCPU和pCPU比率

虚拟化2年前 (2023)更新 刘丰源
180 0 0

From official doc VMware:

the following vcpu:pcpu ratios can be considered a good starting point for a design:

  1. 1:1 to 3:1 is not typically an issue
  2. With 3:1 to 5:1, you might begin to see performance degradation
  3. 6:1 or greater is often going to cause a significant problem for VM performance
    I have found this script in VMware Community Site:

    Foreach($esx in Get-VMHost){
    $vCPU = Get-VM -Location $esx | Measure-Object -Property NumCpu -Sum | select -ExpandProperty Sum
    $esx | Select Name,@{N=‘pCPU’;E={$_.NumCpu}},
        @{N=‘vCPU’;E={$vCPU}},
        @{N=‘Ratio’;E={[math]::Round($vCPU/$_.NumCpu,1)}}
    }

Output is:

Name pCPU vCPU Ratio
phesx01.pre.lab 16 26 1.6
© 版权声明

相关文章

暂无评论

暂无评论...