Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Nvidia-Driver

Featured Replies

Since upgrading to 6.12 and updating the nvdia I've been getting GPU errors, like the following:
 

[56386.612293] NVRM: Xid (PCI:0000:08:00): 31, pid=17147, name=ffmpeg, Ch 00000008, intr 10000000. MMU Fault: ENGINE GRAPHICS HUBCLIENT_FE faulted @ 0x1002_06807000. Fault is of type FAULT_PDE ACCESS_TYPE_WRITE
[57317.960662] NVRM: Xid (PCI:0000:08:00): 69, pid=27124, name=ffmpeg, Class Error: ChId 0020, Class 0000c1c0, Offset 00001b0c, Data 00008000, ErrorCode 0000000c


I am using Emby in a docker container, it's the only thing that uses the GPU and once the GPU fault occurs, it kills that ffmpeg which then causes Emby to either just stop playing the stream that was being played, or it jumps ahead to the next episode if it's a TV series that is being watched.

 

Nothing else has changed and the machine was 100% stable prior to updating.

 

I know when I was on a previous Unraid release, I had stuck to an older driver and I never had any issues, when I checked the driver being used it was using "latest", so as a test I changed the settings in the plugin to use " v530.41.03" and all the issues have now gone away, it's back transcoding without any GPU faults.

 

 

  • Replies 5.9k
  • Views 1.2m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • To utilize your Nvidia graphics card in your Docker container(s) the basic steps are:   Add '--runtime=nvidia' in your Docker template in 'Extra Parameters' (you have to enable 'Advanced

  • Recompiled the drivers and they are now just working fine (to get it working scroll down):   Please do the following (this is only necessary if you upgraded before I recompiled the dri

  • I'm currently spinning up my build VM and compiling the drivers again, currently drivers for 6.11.0 stable are not available...

Posted Images

  • Author
On 7/28/2023 at 5:07 PM, Fizzyade said:

Nothing else has changed and the machine was 100% stable prior to updating.

Please post your Diagnostics.


Do you have any kind of scripts or patches installed on your system for the Nvidia driver?

 

EDIT: I have now tried this on my test machine and can‘t reproduce that.

On 7/28/2023 at 10:07 AM, Fizzyade said:

I know when I was on a previous Unraid release, I had stuck to an older driver and I never had any issues, when I checked the driver being used it was using "latest", so as a test I changed the settings in the plugin to use " v530.41.03" and all the issues have now gone away, it's back transcoding without any GPU faults.

I can confirm I had a similar issue with the latest nvidia driver and reverting to v530.41.03 solved almost all issues except for the web player transcoding now just hangs no errors on the browser. Card is P2000

  • Author
50 minutes ago, raftrider said:

I can confirm I had a similar issue with the latest nvidia driver and reverting to v530.41.03 solved almost all issues except for the web player transcoding now just hangs no errors on the browser. Card is P2000

Please report that on the Plex forums since this is a Plex issue also read the first few posts on that page. i also can’t reproduce that on my test machine.

 

If you report anything here I need your Diagnostics where you had that issue.

On 2023/7/20 at PM5点57分, ich777 said:

抱歉,我只为我的插件编译以下分支:

  • 生产分公司
  • 下一个功能分支
  • 旧版分支(驱动程序 v470.x)
  • 开源驱动程序

 

但是,如果您使用稳定扩散,我假设您在 Docker 容器中使用它,如果我没记错的话,该容器运行 Cuda Toolkit 自己的版本,通常您看到的输出是驱动程序最高支持 Cuda 12.2并且应该向后兼容旧的 Cuda Toolkit 版本。

thx for reply, It's helpful for me.

Hello,

Recently after installing power top and tips and tweaks, I noticed that nvidia-smi is constantly pinging various cores of my CPU. And Ia also notice that the GPU is no longer detected by Nvidia-driver or nvidia-smi if I run the command in shell. Any thoughts?

  • Author
1 hour ago, zachlovescoffee said:

Any thoughts?

Only if you post your Diagnostocs. ;) 

Hello, can you please advice how I can put my Nvidia 4060 to sleep

GPU statistics reports 52w of power usage when not in use, power state is P0

when i try one thing - to enter nvidia-smi -i 01:00:0 -pm ENABLED - i have no devices found

Card is passed through to VM, but currenly vm is off and card no passed through to any dockers

I found scrip on my old server - 

#!/bin/bash
# check for driver
command -v nvidia-smi &> /dev/null || { echo >&2 "nvidia driver is not installed you will need to install this from community applications ... exiting."; exit 1; }
echo "Nvidia drivers are installed"
echo
echo "I can see these Nvidia gpus in your server"
echo
nvidia-smi --list-gpus 
echo
echo "-------------------------------------------------------------"
# set persistence mode for gpus ( When persistence mode is enabled the NVIDIA driver remains loaded even when no active processes, 
# stops modules being unloaded therefore stops settings changing when modules are reloaded
nvidia-smi --persistence-mode=1
#query power state
gpu_pstate=$(nvidia-smi --query-gpu="pstate" --format=csv,noheader);
#query running processes by pid using gpu
gpupid=$(nvidia-smi --query-compute-apps="pid" --format=csv,noheader);
#check if pstate is zero and no processes are running by checking if any pid is in string
if [ "$gpu_pstate" == "P0" ] && [ -z "$gpupid" ]; then
echo "No pid in string so no processes are running"
fuser -kv /dev/nvidia*
echo "Power state is"
echo "$gpu_pstate" # show what power state is
else
echo "Power state is" 
echo "$gpu_pstate" # show what power state is
fi
echo
echo "-------------------------------------------------------------"
echo
echo "Power draw is now"
# Check current power draw of GPU
nvidia-smi --query-gpu=power.draw --format=csv
exit

 

But GPU idle power dropped from 52w to 50w on idle

Can be issue that info is reported incorrectly from plugin?

Edited by J05u

2 minutes ago, J05u said:

Hello, can you please advice how I can put my Nvidia 4060 to sleep

 

 

nvidia-persistenced

 

this should take your card to sleep ...

 

3 minutes ago, J05u said:

nvidia-smi -i 01:00:0 -pm ENABLED

 

may also not the proper command ;) if your card is the 1st one, this would be ...

 

nvidia-smi -i 0 -pm 1

 

but be aware, this feature is may dropped sooner or later, persistenced is the actual one

42 minutes ago, alturismo said:

 

nvidia-persistenced

 

this should take your card to sleep ...

 

 

may also not the proper command ;) if your card is the 1st one, this would be ...

 

nvidia-smi -i 0 -pm 1

 

but be aware, this feature is may dropped sooner or later, persistenced is the actual one

Thanks

Means I need to replace in script nvidia-smi --persistence-mode=1 to nvidia-smi --persistenced-mode=1

 

And by the way I tested with my UPS, card is actually gooing to sleep, issue that nvidia reports incorrect idle power state

Same gpu as mine - https://forum-en.msi.com/index.php?threads/rtx-4060-ventus-high-power-draw-when-idle.387442/

  • Author
13 minutes ago, J05u said:

Means I need to replace in script nvidia-smi --persistence-mode=1 to nvidia-smi --persistenced-mode=1

No, this means you need to replace this whole line with:

nvidia-persistenced

 

14 minutes ago, J05u said:

And by the way I tested with my UPS, card is actually gooing to sleep, issue that nvidia reports incorrect idle power state

This is nothing new to me, software readings are most certainly wrong.

1 minute ago, ich777 said:

No, this means you need to replace this whole line with:

nvidia-persistenced

 

This is nothing new to me, software readings are most certainly wrong.

Sorry for being dumb.

It means in Script nvidia-smi --persistence-mode=1 should be replace to nvidia-persistenced and thats it?

  • Author
48 minutes ago, J05u said:

It means in Script nvidia-smi --persistence-mode=1 should be replace to nvidia-persistenced and thats it?

Yes.

  • Author
31 minutes ago, zachlovescoffee said:

So sorry! I always forget diagnostics. Here you go along with my thanks for all your excellent support of our community.

Do you have any custom scripts installed?

I would recommend that you remove PowerTOP for now and see if this helps, seems that your GPU fails to initialize:

Jul 31 22:15:37 darkstar kernel: NVRM: GPU at PCI:0000:01:00: GPU-ea06c034-1c38-9a48-60ea-e0779d32f6a1
Jul 31 22:15:37 darkstar kernel: NVRM: GPU Board Serial Number: 1322722038690
Jul 31 22:15:37 darkstar kernel: NVRM: Xid (PCI:0000:01:00): 62, pid='<unknown>', name=<unknown>, 20c2(2bc4) 00000000 00000000
Jul 31 22:15:47 darkstar kernel: NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x23:0x65:1426)
Jul 31 22:15:47 darkstar kernel: NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
Jul 31 22:15:51 darkstar kernel: NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x23:0x65:1426)
Jul 31 22:15:51 darkstar kernel: NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

 

Does the card work or does it not work at all?

45 minutes ago, ich777 said:

Do you have any custom scripts installed?

I would recommend that you remove PowerTOP for now and see if this helps, seems that your GPU fails to initialize:

Jul 31 22:15:37 darkstar kernel: NVRM: GPU at PCI:0000:01:00: GPU-ea06c034-1c38-9a48-60ea-e0779d32f6a1
Jul 31 22:15:37 darkstar kernel: NVRM: GPU Board Serial Number: 1322722038690
Jul 31 22:15:37 darkstar kernel: NVRM: Xid (PCI:0000:01:00): 62, pid='<unknown>', name=<unknown>, 20c2(2bc4) 00000000 00000000
Jul 31 22:15:47 darkstar kernel: NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x23:0x65:1426)
Jul 31 22:15:47 darkstar kernel: NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
Jul 31 22:15:51 darkstar kernel: NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x23:0x65:1426)
Jul 31 22:15:51 darkstar kernel: NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

 

Does the card work or does it not work at all?

No custom scripts installed to my knowledge. The GPU was working before when transcoding was necessary. I cannot find any content that requires transcoding right now to test it but the card appears to be persistently 'offline'. I tried uninstalled PowerTop from NerdTools but toggling it to 'off' but it's not uninstalling. Any ideas?

Screenshot 2023-08-01 at 8.26.21 AM.png

I successfully appear to have removed power top. Now nvidia-smi isn't taking a single core to 100% and rotating among those cores to 100% ever few seconds. But, it is still running anywhere from 15-30% of a single CPU core every few seconds.

Screenshot 2023-08-01 at 9.26.55 AM.png

Edited by zachlovescoffee

  • Author
50 minutes ago, zachlovescoffee said:

The GPU was working before when transcoding was necessary. I cannot find any content that requires transcoding right now to test it but the card appears to be persistently 'offline'.

You have to reboot, the GPU is now in a state where it is not available to the system, you can look at your syslog, it says that it failed to initialize the GPU.

Did you reboot already, you have to reboot to get your GPU in a working state.

 

I will try this later too when I'm home because I've got the same GPU as you.

 

50 minutes ago, zachlovescoffee said:

NerdTools but toggling it to 'off' but it's not uninstalling. Any ideas?

I would report that in the NerdTools support thread.

11 minutes ago, ich777 said:

You have to reboot, the GPU is now in a state where it is not available to the system, you can look at your syslog, it says that it failed to initialize the GPU.

Did you reboot already, you have to reboot to get your GPU in a working state.

 

I will try this later too when I'm home because I've got the same GPU as you.

 

I would report that in the NerdTools support thread.

I've rebooted and power top seems to still be installed. Since it resets every every cycle it's not doing it's 'mojo' to power down the system. the GPU is functional again in the system but as you can see from my post just above, nvidia-smi is constantly pinging the CPU.

  • Author
1 hour ago, zachlovescoffee said:

nvidia-smi is constantly pinging the CPU.

This is due to GPU Statistics, it polls nvidia-smi to get the readings, this was always the case.
I would recommend that you set a lower polling rate in the GPU Statistics plugin or simply don't visit the Dashboard, this will stop the polling and also the spikes. ;)

 

EDIT: I just tested it and transcoding is working with Plex and Jellyfin just fine with the latest Nvidia driver on unRAID 6.12.3

On 7/29/2023 at 2:07 PM, raftrider said:

I can confirm I had a similar issue with the latest nvidia driver and reverting to v530.41.03 solved almost all issues except for the web player transcoding now just hangs no errors on the browser. Card is P2000

@raftriderwere you able to get any help on this over on the Plex forums? 

  • Author
6 minutes ago, Jase said:

@raftriderwere you able to get any help on this over on the Plex forums? 

Do you also have issues with Plex and transcoding?

I can't reproduce this over here with the latest driver.

@Jase i still can confirm its working flawlessly here, tested now with both cards here

 

GTX1060 card 1

image.thumb.png.ba3b644f87e26d4581058355797d58ea.png

 

RTX3080ti card 0

image.thumb.png.6d47266564eb2ed86a77ebc5ffb2fd55.png

 

h264 and hevc tested, also live tv ... so overall i wouldnt say its a plugin issue, even not a plex issue ...

 

running plexinc Docker and as you see upper latest nvidia driver package ...

 

image.thumb.png.55409d264c2287c74489e614bcfc2984.png

On 8/1/2023 at 11:31 AM, Jase said:

@raftriderwere you able to get any help on this over on the Plex forums? 

Nope, but I didn't try tbh. Everything is working now except for the plex web transcoding.

Hi,

My System has 4 GPUs all Nvidia.

2 1030s and 1 2070 1 3060

My Server recognized all 4 when I was running 6.11.5 (I have a witness for that)

I updated to 6.12.3 and the server showed initally all 4 GPUs. Everything worked fine. As far as I am concerned I did not do anything to mess with the server itself (i had one vm running) went away from my computer for a coupe of hours, came back and the vm did not work anymore. It was paused (by itself). I tried to start it but I got an error so I checked the Nvidia Drivers page.

The Nvidia Drivers page showed:

1541024225_103030601030.png.56b07506502d7bb433f6bfd4ba545425.png

So the 2070 was not recognized (i had this problem when i showed my server to @SpaceInvaderOne) And we fixed it by changing the cards around on the mainboard.

I was a bit devestated because i thought that my beloved 2070 is just faulty/broken.

Again I did not do anything afterwards. I literally left the server alone (I was cooking a rather large meal for my family to be exact) I came back and what I wanted to do was now change the GPU of the VM (used to be the 2070) to the 3060 so that i could at least work with my VM.

I checked the Nvidia drivers page again, and to my surprise it now shows this....

428500666_2070and21030.thumb.png.a29fae734a0d10cce119b4f068c0f9f7.png

This is weirding me out. sometimes the driver recognizes the 2070 sometimes it recognizes the 3060. Apparently sometimes it does both.

 

server-diagnostics-20230810-1254.zip

Edited by Zeze21

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.