Hello,
I have a VM with 1 socket and 1 core.
However PowerCli reports 1 NumCpu and 2 Cores per socket.
PS> Get-VM -Name MyComputer | Select-Object -Property NumCpu,CoresPerSocket
NumCpu CoresPerSocket
------ --------------
1 2
Any idea about the origin of the wrong PowerShell output ?
PowerCli version is: 13.0.0
UPDATE:
There are in fact more VMs with inconsistent CPU information.
In the output below, the third column is supposed to be an integer.
But sometimes the number of Socket Per Cpu exceeds the total number of Cores (NumCpu).
However, when I look at the console, numbers are different.
For example the VM with a NumCpu of 2 and 4 CoresPerSocket displays 1 CorePerSoket and 2 sockets in the console.
PS> Get-VM |Select-Object -Property NumCpu,CoresPerSocket,@{Label = 'Socket'; Expression = {$_.NumCpu/$_.CoresPerSocket}}
NumCpu CoresPerSocket Socket
------ -------------- ------
12 12 1
...
1 1 1
8 2 4
1 2 0,50
4 2 2
16 2 8
...
2 2 1
2 2 1
1 2 0,50
1 1 1
1 1 1
...
4 4 1
2 2 1
2 4 0,50
16 2 8
...
2 2 1
2 1 2
1 2 0,50
1 1 1
4 4 1
...