Gpu passthrough is very slow on qubes

I get less than 30 fps in games for both windows and linux vm. I get more than 100 fps without a vm. And sometimes my fps increases in games while playing in a vm but it only lasts until I close the game and after that it returns to less than 30 fps. Has anyone fixed it?

could you share some details about your hardware?

Intel i7-10750H (12) @ 2.601GHz NVIDIA GeForce RTX 2070 Mobile / Max-Q Refresh. The performance in games is horrible inside of vm

And can you shares some details about the problematic software and configuration ?
(So if some peoples are willing, they can test the same things to compare the result/performance)

Like, I tried the run game XXX using YYY. In the game the graphics settings are configured to ZZZ. When I am playing on a VM it run at around 30 fps, GPU is running at XX% load, ZZ% of free ram in the vm, cpu is running at YY% load, I am using WWW vcpu, screenshot of the output of “top” while playing the game. Playing it without VM, it run at 100fps with the same settings

2 Likes

I tried to run heaven benchmark without changing any settings and in the vm I get 15 fps Graphics: 645 Mhz Memory: 405Mhz Temperature: 50. Without vm 100 fps Graphics 2100Mhz Memory: 5001Mhz Temperature:53. the vm has 6 vcpu and 8GB of ram. I don’t know how to look at the load and free ram in the vm since heaven benchmark runs full screen.

The frequency difference is weird, I think that is the thing to investigate. ( Is it running in eco mode ? )

I tried with my setup, same configuration, I get over 600 fps. Memory ~11 Ghz; Graphics ~2.8 Ghz. ( we have very different hardware, but the hardware difference can’t explain a difference between 15 fps and over 600 fps ).

What kind of VM are you using ?

In dom0, run the following command, post the output here, and rerun the benchmark

xenpm get-cpufreq-para
xenpm enable-turbo-mode
xenpm set-scaling-governor performance
xenpm get-cpufreq-para
1 Like

The third command fails since I use hwp driver and I still get 15 fps. I use windows 10 hvm vm and I don’t know what eco mode is
cpu id : 0
affected_cpus : 0
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [8]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 1
affected_cpus : 1
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 2
affected_cpus : 2
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [8]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 3
affected_cpus : 3
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 4
affected_cpus : 4
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 5
affected_cpus : 5
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 6
affected_cpus : 6
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 7
affected_cpus : 7
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 8
affected_cpus : 8
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 9
affected_cpus : 9
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 10
affected_cpus : 10
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled

cpu id : 11
affected_cpus : 11
cpuinfo frequency : base [2600000] turbo [5000000]
scaling_driver : hwp-cpufreq
scaling_avail_gov : hwp-internal
current_governor : hwp-internal
hwp variables :
hardware limits : lowest [1] most_efficient [14]
: guaranteed [26] highest [50]
configured limits : min [1] max [255] energy_perf [128]
: activity_window [0 hardware selected]
: desired [0 hw autonomous]
turbo mode : enabled