Hyper-V Easy-GPU-PV - How dose the gpu partitioning work

Thomas Hawkins 10 Reputation points
2023-04-24T20:28:28.65+00:00

Confused about GPU allocation in Hyper-V Hi everyone, I'm running Windows 11 with a 4090 GPU and have been using the easy-gpu-pv scripts to create a virtual machine with GPU resource allocation set to 50%. From what I understand, this means that the host still has 100% use of the GPU but the guest only has access to 50% of the GPU.

My interpretation is that to the guest, 100% GPU usage would show up as 50% in task manager on the host. If the guest is running at 20% load, that would equate to 10% on the host. If the guest is powered off, the host can use 100% of the GPU again.

However, I've come across conflicting information that suggests that once you partition the GPU and the guest is off, you're still losing 50% of the GPU at all times. I'm hoping the Hyper-V community, who are more experienced in this than me, can shed some light on this.

I'd also like to know if there's a way to check if my GPU is currently at 50% or 100% in the host if its the case that 50% of the GPU is fully reserved (if that's how it works).

Thank you in advance for any insights you can provide. I've received mixed answers on Discord groups and Reddit posts, and my head is starting to hurt from trying to figure this out! I have done some benchmarks before and after doing hyper v and it seems the first 3 haven benchmarks i got

Test 1

and after doing the script and then turning off the VM in Hyper-V so its off, and shouldn't effect the gpu performance Test 2

Its hard to figure out if the fps drop is circumstantial
I'm basically trying to figure out if

  1. Dose the gpu loose performance to Easy-GPU-PV when the vm is "off"
  2. How dose the partitioning work
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,557 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,966 Reputation points
    2023-04-25T14:03:30.92+00:00

    Hello there, Hyper-V provides two different options for assigning GPUs to virtual machines. One option is to use RemoteFX. The other option is to use a discrete device assignment. GPU-PV allows you to partition your systems dedicated or integrated GPU and assign it to several Hyper-V VMs. It's the same technology that is used in WSL2, and Windows Sandbox. Easy-GPU-PV aims to make this easier by automating the steps required to get a GPU-PV VM up and running. https://github.com/jamesstringerparsec/Easy-GPU-PV Hope this resolves your Query !! --If the reply is helpful, please Upvote and Accept it as an answer--