[Plugin] Intel-GVT-g


Recommended Posts

11 hours ago, ich777 said:

I see nothing suspicious from the Diagnostics.

 

Have you enabled throttling in Emby?

Maybe try to disable it for testing purposes.

Thank you for your reply!

 

no ,i didn't enabled throttling.

 

I tried more and found something new.

I changed the mode, I used NAS use GVTg_V5_4 and win10 use GVTg_V5_4 before.

When I promoted NAS mode,it has become more efficient.

This seems to be related to the size allocation ratio of video memory.

here is result:

1、NAS use GVTg_V5_2 and win10 use GVTg_V5_8

415294065_28.png.0e84b8594fbf65e3c24652e88bb9c5b3.png336616886_28power.png.f6e93543949b958d9e175e598220e1eb.png

2、NAS use GVTg_V5_2 and win10 use GVTg_V5_4

647594574_24.png.14fa6e8931eac30d2f67358228004666.png1610478248_24power.png.66c234b9b9a53fa8c324026dd7e3750b.png

Link to comment
27 minutes ago, kkkk said:

This seems to be related to the size allocation ratio of video memory.

From what I see in the screenshot you are transcoding h265 to h264.

May I ask from and to what resolution you are transcoding?

Keep in mind if you are transcoding 4K to 4K that thia is not the best thing you could do since h264 was never really meant to be used for 4K.

If you transcode for example 4K to 1080p it would be more appropriate and the transcoder would be quicker.

Link to comment
1 hour ago, ich777 said:

From what I see in the screenshot you are transcoding h265 to h264.

May I ask from and to what resolution you are transcoding?

Keep in mind if you are transcoding 4K to 4K that thia is not the best thing you could do since h264 was never really meant to be used for 4K.

If you transcode for example 4K to 1080p it would be more appropriate and the transcoder would be quicker.

It doesn't matter. I just found this problem during the test.

The chrome browser does not support h265, so it will be transcoded to H264

Edited by kkkk
Link to comment
1 minute ago, kkkk said:

The chrome browser does not support h265, so it will be transcoded to H264

Correct, you also can't transcode to h265 with Emby/Jellyfin/Plex, it always defaults to h264 (at time of writing).

 

2 minutes ago, kkkk said:

It doesn't matter. I just found this problem during the test.

This is really strange since I can't reproduce this on my i5-10600 at least not with that performance hit.

Link to comment
On 12/5/2021 at 9:46 AM, ich777 said:

Please report back about your findings.

After reading the document from Arclinux, I am thinking this item is not enabled"Set i915 module parameter enable_gvt=1 to enable GPU virtualization"

 

When I checked my GPU:

/boot/config/modprobe.d/i915.conf 

it has blacklist i915 there.

 

then I realized the intel gpu top plugins added the blacklist i915. I was able to add this one line above the blacklist:

options i915 enable_gvt=1
blacklist i915

 

and after that, I can add the vGPU inside my VM without any issues. however, now the intel gpu top is broken, said it needs blacklist i915 on the file.

 

 

Edited by qy2009
Link to comment
8 hours ago, qy2009 said:

then I realized the intel gpu top plugins added the blacklist i915.

No, Intel-GPU-TOP won't do that.

If you are on 6.10.0+ then the GVT-g plugin will create this file because otherwise I can't GVT-g get to work. A recent change for the 6.10.0 series introduced that the graphic drivers are loaded automatically at boot and without disabling them and loading the module with a custom command, what GVT-g does on boot, it won't be able to work.

 

8 hours ago, qy2009 said:

I was able to add this one line above the blacklist

Why would you do that? Intel GVT-g is enabling the module on it's own.

 

8 hours ago, qy2009 said:

and after that, I can add the vGPU inside my VM without any issues.

That is very unlikely to be the case, if you are on 6.9.2 the module isn't activated by default so the blacklist file isn't necessary because it's not activated until the plugin is installed.

 

8 hours ago, qy2009 said:

however, now the intel gpu top is broken, said it needs blacklist i915 on the file.

No, that's also not the case, why should it break if the i915 file is loaded?

 

Delete the i915.conf file reboot and report back if this is working too please.

Link to comment
24 minutes ago, ich777 said:

No, Intel-GPU-TOP won't do that.

If you are on 6.10.0+ then the GVT-g plugin will create this file because otherwise I can't GVT-g get to work. A recent change for the 6.10.0 series introduced that the graphic drivers are loaded automatically at boot and without disabling them and loading the module with a custom command, what GVT-g does on boot, it won't be able to work.

 

Why would you do that? Intel GVT-g is enabling the module on it's own.

 

That is very unlikely to be the case, if you are on 6.9.2 the module isn't activated by default so the blacklist file isn't necessary because it's not activated until the plugin is installed.

 

No, that's also not the case, why should it break if the i915 file is loaded?

 

Delete the i915.conf file reboot and report back if this is working too please.

 

I have deleted i915.conf under /boot/config/modprobe.d. 

but after the reboot, the file came back again. and inside it has this content:

blacklist i915

 

when I manually added options i915 enable_gvt="Y". it will auto add blacklist in the end. and I cannot use GVT-g anymore. please see the attached screenshot.

 

image.thumb.png.4d6ef029aa28ff5553137e5be7cb3acf.png

 

 

Link to comment
22 minutes ago, qy2009 said:

I have deleted i915.conf under /boot/config/modprobe.d. 

but after the reboot, the file came back again. and inside it has this content:

blacklist i915

 

when I manually added options i915 enable_gvt="Y". it will auto add blacklist in the end. and I cannot use GVT-g anymore. please see the attached screenshot.

Maybe there is something wrong in the change that I've made for 6.10.0 will look into this and report back.

Can you please not try to add:

options i915 enable_gvt="Y"

to the file and reboot, leave the file as it is and see if GVT-g get's enabled after you've change it back to:

blacklist i915

 

The activation is handled by the plugin at the boot process and not by this file.

Link to comment
7 hours ago, ich777 said:

Maybe there is something wrong in the change that I've made for 6.10.0 will look into this and report back.

Can you please not try to add:

options i915 enable_gvt="Y"

to the file and reboot, leave the file as it is and see if GVT-g get's enabled after you've change it back to:

blacklist i915

 

The activation is handled by the plugin at the boot process and not by this file.

 

If I changed back to blacklist i915. I don't see the red error message anymore from GVT-g setttings page.

Link to comment
  • 3 weeks later...

I can't seem to get passthrough to work

 

Intel® Core™ i3-10100

gpu_top works fine and reports performance 

intel-gpu-top: Intel Cometlake (Gen9)

 

The intel gvt-g shows available modes and I am able to bind it to a vm 

 

the vga controller is in its own iommu group 

IOMMU group 1:[8086:9bc8] 00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630] (rev 03)

 

but I am unable to bind the GPU to the vm when using Q35-5.1 machine type. I get an error 

VM creation error

XML error: 'model' attribute in <hostdev> is only supported when type='pci'

 

I've tried setting the guc/huc firmware to both 'default' and '2' but it hasnt made a difference, not quite sure what I'm doing wrong. 

tower-diagnostics-20220107-1322.zip

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.