NVIDIA GPU not being used by Apps - Assigned VGA Arbitration by TrueNAS?
Description
Problem/Justification
Impact
Attachments
duplicates
Activity

Bug Clerk October 31, 2024 at 6:28 PM
This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Stavros Kois October 31, 2024 at 6:27 PM
Nice, I was expecting that to work.
I’ve mainly seen existing installation have this issue. You can track progress in the linked ticket if you want to ( )
I’ll close this one now, as its essentially a duplicate.
Thanks!

Michael Wesley October 31, 2024 at 5:41 PMEdited
Well that is extemely interesting.
I just created a new Plex container as requested, and now this shows up:
And according to nvidia-smi
Plex is now using my GPU.
I can’t believe it was that simple. Perhaps ElectricEel did fix my issue after all…
I’ll try with Immich as well, although that will take a lot longer as it will need to search through all my photos again.
I guess I just stick with this new Plex container and re-import all my media.

Stavros Kois October 31, 2024 at 5:22 PM
Yes please. You can try plex only, without uninstalling your current app.
Just make sure the current plex app its stopped when you start the second plex app

Michael Wesley October 31, 2024 at 5:19 PMEdited
Hi , I installed the Plex and Immich apps a few days ago after I updated from TrueNAS-CORE to TrueNAS-SCALE (Dragonfish). I updated to ElectricEel today in the hope that this would solve the problem. As such, the containers were ported over from Dragonfish to ElectricEel. I was experiencing the same issue in Dragonfish.
Do you still want me to try and do a fresh install on ElectricEel?
Details
Details
Assignee

Reporter

Impact
Time remaining
Components
Fix versions
Affects versions
Priority

I can’t get my NVIDIA GTX 1660 working with Plex (transcoding) and Immich (machine learning). I recently upgraded from TrueNAS-Core to Scale.
I can confirm that Plex is not using my GPU for encoding, as my CPU usage spikes considerably when it’s transcoding, and there are no processes present in when I run
nvidia-smi
while transcoding.When I run the maching learning pods in Immich i get continual
ERROR Worker was sent code 139
which is a SIGSEGV memory violation error.I think the issue is that my GPU is being used by something and is not available to the system, as
[VGA Controller]
is listed after the GPU when I runlspci
– if I understand the meaning of that correctly.TrueNAS Scale Version:
ElectricEel-24.10.0
Plex Version:
1.0.24
Immich Version:
1.6.24
I do not have any displays connected.
I have followed this post which details adding the following code…
… to the
user_config.yaml
file, located in the ixVolume volume, found at/mnt/.ix-apps/user_config.yaml
, and setting theIOMMU
andUUID
values correcty – which I have done.I also came across this post. However, I’m able to run the
nvidia-smi
command without errors.Interestingly, I don’t have any of the following files on my system:
My system also doesn’t present me with any GPUs avaible for isolation, as shown in the screenshot further below.
Is anyone able to point me in the right direction as to what I should do?
— — — Additional Info — — —
nvidia-smi
Outputmodprobe
Outputlsmod
Outputlspci
OutputNo GPUs available to Isolate
Application Settings
Plex Resources
Plex Transcoding Settings - No specific GPU available
These are all the
iommu
groups I currently have.It seems that my GPU
0000:01:00.0
is the only device in it’s group, and each of it’s other components also has it’s own group.I also ran the following command:
This shows both my GPUs.
My other VGA device, which is my motherboard’s ASpeed AST, is identified as
ast 0000:03:00.0
.This device seems to be designated as the boot VGA, while it seems my NVIDIA GPU (located at
0000:01:00.0
) has also been configured with VGA arbitration – assuming that’s what the references toVGA
andframebuffer
mean.What do I need to do to get TrueNAS to release my NVIDIA GPU so that my apps can actually use it? Assuming that is the issue…