When I do this:
if ((pPipe = _wpopen(L"powershell -Command \"Get-Counter '\\Hyper-V VM VID Partition(*)\\*'\"", L"rt")) == NULL) exit(1);
I get this output wherein the VM is mapped to its preferred Numa Node index (Socket ID):
\\win-3t40ilvkkvh\hyper-v vm vid partition(lg5)\remote physical pages : 0\\win-3t40ilvkkvh\hyper-v vm vid partition(lg5)\preferred numa node index : 0
\\win-3t40ilvkkvh\hyper-v vm vid partition(lg5)\physical pages allocated : 264200
\\win-3t40ilvkkvh\hyper-v vm vid partition(lg2)\remote physical pages : 0
\\win-3t40ilvkkvh\hyper-v vm vid partition(lg2)\preferred numa node index : 1
\\win-3t40ilvkkvh\hyper-v vm vid partition(lg2)\physical pages allocated : 264200
My question is how can I get the mapping between the VM and Logical processor. If some kind soul could answer, I would be grateful.
Ex: VM LG5 is mapped to LP1 of Socket0(numa node) or VM LG2 is mapped to LP0 of Socket 1
thanks
ananda