CPU and VCPU it stays difficult to overcome.

Copper Contributor

Hi,

After reading and searching the internet it still hasn't revealed th truth for me.

I keep struggeling with provisioning.

 

In this example (real case) i setup a Server 2019 as hyper-v machine.

it has 2 processor with each 12 cores, so i have 24 cores in total (if i look in task manager it says 24 cores and 48 logical cores)

After lots of reading and searching 'the internet says' that a 1 to 4 ratio is a good ratio for calculating VCPU's. Since i have 24 cores, a assume that i have 96 VCPU's available.

 

The setup is as follows, Server 2019 as hyper-v layer, i installed one VM machine on it, thats the VDI server. In that VDI server (VM) i installed an configured all my vdi-clients, computers 1 to 15.

 

The idea was to keep 1 core for the hyper layer, and to give the other (cores) VCPU's to the VDI-server. So 4 VCPU(s for the layer and 92VCPU for the VDI server. in that case we have enough VCPU's on the VDI server to give to our vdi-clients.

 

And thats were our idea falls apart. If we want to give 92 vcpu to the VDI server it does not work, we can only give a maximum of 48 VCPU ? (which is the same as the logical processors)

 

1 Reply
This is the Windows Virtual Desktop forum section, which mean this is related to the Azure VDI solution only. If you want a straight answer from Microsoft, you should probably try to another forum section dedicated to Hyper-V.

The user/CPU ratio is a variable that change depending of the user workload and app deployment types, like session host vs VDI. For a VDI scenario I would probably bet for a 1:1 1:2 scenario. All depend of the workload. The only recommendation I can give for the ratio, is test your workload.

In this configuration you have 12 cores and 24 VCPU. Hyper-V might see hyper-threads as core, but they are not. Leading to the logical number 48.
If you want to do CPU overcommitting you will probably need to change the scheduler type to Classic for server 2019.
See:
https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/manage-hyper-v-schedul...
and
https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/about-hyper-v-schedule...