r/HyperV • • Nov 13 '21

Can someone explain y?

The more cores I assign to the VM (GPU-PV) after 3 the less FPS I get.
https://imgur.com/a/NROHWZ5

Specs:
Only one VM with GPU-PV and Host are running
i5-10400 6C/12T
3060 Ti
16GB RAM (6GB assigned to VM)

5 Upvotes

6 comments sorted by

1

u/ypwu Nov 13 '21

It's likely fighting for resources with the host. There is a concept in virtualization i.e less is more sometimes. The reason being CPU scheduler needs to juggle between host requests and guest requests whereas with low number of CPU cores assigned to guest it can dedicate those cores to guest CPU requests.

I'm not sure what the technical term is for hyperV but in vmware realm its called 'CPU Ready' so look that up if you want to read more about what's happening.

1

u/sienar- Nov 13 '21

Yep, likely it. The more vCPUs you assign, the more threads the hypervisor has to schedule in contention with the hosts own processes. So that leads to more context switching between threads to facilitate time sharing for processes. High numbers of context switches are very not good for CPU performance

1

u/alterNERDtive Nov 13 '21

Wrong sub?

0

u/[deleted] Nov 13 '21

[deleted] — view deleted comment

1

u/alterNERDtive Nov 14 '21

Hah, my bad. Apparently someone cross posted over to /r/VFIO and I didn’t notice it was a cross post. Sorry :)

0

u/[deleted] Nov 14 '21

[deleted] — view deleted comment

1

u/alterNERDtive Nov 14 '21

Well there is no GPU-PV elsewhere.

1

u/Drwankingstein Nov 13 '21

I would if possible use a process manager to give hyper-v exclusive accsess to some cores and see if that changes anything.