Powered by System Center
Posts tagged virtual processor
Get processor info from Hyper-V Servers
Feb 7th
In his blog “Using PowerShell to find the virtual processor to logical processor ratio of Hyper-V” Ben Amstrong shows us a way to calculate the virtual processor to logical processor ratio of Hyper-V. I used this script as starting point to collect some more processor information from servers running Hyper-V.
# Specifies hosts to query.
# When using a small array.
# $hosts = @('', '')
#When using a specific OU.
import-module activedirectory
$hosts = Get-ADComputer –filter * -SearchBase "OU=,DC=CONTOSO,DC=local"
foreach($hostName in $hosts)
{
# When using an small array please disable $hostName = $hostName.name
$hostName = $hostName.name
$VProc2LProcRatio = 8
$MaxVProc = ((gwmi -cn $hostName Win32_Processor) | measure -p NumberOfLogicalProcessors -sum).Sum * $VProc2LProcRatio
$VProcActive = (gwmi -cn $hostName -ns root\virtualization MSVM_Processor).count
$VProcLProc = (@(gwmi -cn $hostName -ns root\virtualization MSVM_Processor).count / (@(gwmi Win32_Processor) | measure -p NumberOfLogicalProcessors -sum).Sum)
$PProc = (@(gwmi -cn $hostName –ns root\cimv2 -Class Win32_Processor).count)
$PCores = (@(gwmi -cn $hostName -ns root\cimv2 -Class Win32_Processor) | measure -p NumberOfCores -sum).Sum
$LProc = (@(gwmi -cn $hostName Win32_Processor) | measure -p NumberOfLogicalProcessors -sum).Sum
Write-Host ' '
Write-Host 'Processor info for :' $hostName
Write-Host 'Physical processor(s) on this host :' $PProc
Write-Host 'Number of cores on this host :' $PCores
Write-Host 'Logical processor on this host :' $LProc
Write-Host '-------------------------------------------------'
Write-Host 'Used Virtual processor:Logical processor ratio :' $VProc2LProcRatio
Write-Host 'Maximum number of virtual processors :' $MaxVProc -f red
Write-Host 'Active virtual processors :' $VProcActive
Write-Host '-------------------------------------------------'
Write-Host 'Used virtual processor(s) per logical processor :' $VProcLProc -f yellow
Write-Host ' '
}
More guests per logical processor in Hyper-V R2 SP1
Jan 7th
In a TechNet blog Michael Kleef announced that the number of VM’s per logical processor (LP) has been increased from 8:1 to 12:1, a 50% increase of VM density.
The increased ratio is supported if all guests run Windows 7. This is clearly aimed at Virtual Desktop Infrastructure (VDI) environments on Hyper-V R2. During the keynote of TechNet Europe 2010 we already heard increased VM density per host by at least 40%.









Twitter
RSS