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] Linuxserver.io - Unraid Nvidia

Featured Replies

Well i made it 37 hours and had the memory crash :( The hunt for the fix continues.

 

  • Replies 2.5k
  • Views 662k
  • Created
  • Last Reply
45 minutes ago, drpete said:

The hunt for the fix continues.

are you tried long memtest for your RAM?

 

On 1/1/2020 at 8:49 PM, rmeaux said:

Haha, I'll learn something too. I may be doing this next week. I found this: 

 

Step 1. Go to tools -> system devices and look for the ID of what you want to stub

 

Step 2. Copy the number that looks like this:

 

8086t:8d31

 

Step 3. Go back to "Main" and click on "Flash"

 

Step 4. Add this to your syslinux config 


pci-stub.ids=8086:8d31

(replace "8086:8d31" with the number from Step 2.)

 

 

Let me know if this is helps. I already have a P2000. Getting a free 1050ti next week for gaming. May be in your shoes. 

Alright, found the device IDs, added them (both the video and audio portions) to syslinux file (added it to the bottom of the global config part) rebooted the server and still can't get a VM to boot with the card passed through... Just not sure where to go from here!

14 hours ago, uldise said:

are you tried long memtest for your RAM?

Gonna try this soon. I doubt its this becuase I see no errors with any other dockers or vm's. But i thought this also. Re-installed plex completely fresh install and chose a different version (used lnio but chose public instead of latest) and did clean install of nvidia plugin and re entered all gpu info checking for no spaces. Will run this for a week or so and see. If I still get error then Im gonna try a memtest. Thanks for suggestion though, i think it is a great idea. Will keep everyone informed.

Thanks for this great plugin.

 

Is there anyway to downgrade CUDA to 10.0?

6 hours ago, Tylercollins590 said:

Thanks for this great plugin.

 

Is there anyway to downgrade CUDA to 10.0?

No, much like the drivers (as explained in the first post.) We compile this with whatever the latest versions are available.

drpete I have a Quadro P2200 installed and plex has not crashed.  That being said I'm not sure if the encoding/decoding is working correctly for me.  Perhaps someone can enlighten me on my setup.

 

I followed spaceinvaader's video,  no issues there.  Using the latest unraid/nvidia build 6.8 and lsio plex docker.  When I run a sample video transcode test, my 4 core E3-1245 v5 xeon cpu maxes out on load. 

 

This is what's shown on the plex dashboard:

Video- 4K (HEVC Main 10 HDR)
4K (H264)—Transcode

AudioEnglish (TRUEHD 7.1)
EAC3—Transcode

 

- when running the command "watch nvidia-smi" the empty processes box gets populated

Unless I understand it wrong, since it says both video and audio are being transcoded, I should see the hw beside them in plex to show it's being done by the hardware?

 

- when running the command "nvidia-smi dmon -s u" all 5 columns are zero's

Shouldn't these columns have numbers in them? (gpu, sm, mem, enc, dec)

 

So I decided to force plex to decode by using this information as the Plex Transcode

#!/bin/sh
/usr/lib/plexmediaserver/Plex\ Transcoder2 -hwaccel nvdec "$@"

 

Now when I rerun the sample, the process gets populated (same as before) but now for the 5 columns, these 3 headings have numbers in them (sm, mem, dec)

 

Only thing I can think of is that my cpu is not good enough, was hoping that the video card would have helped since I heard of people running like 15 streams with a dedicated video card and I can't even do 1 stream.

 

 

16 minutes ago, Mogo said:

drpete I have a Quadro P2200 installed and plex has not crashed.  That being said I'm not sure if the encoding/decoding is working correctly for me.  Perhaps someone can enlighten me on my setup.

 

I followed spaceinvaader's video,  no issues there.  Using the latest unraid/nvidia build 6.8 and lsio plex docker.  When I run a sample video transcode test, my 4 core E3-1245 v5 xeon cpu maxes out on load. 

 

This is what's shown on the plex dashboard:

Video- 4K (HEVC Main 10 HDR)
4K (H264)—Transcode

AudioEnglish (TRUEHD 7.1)
EAC3—Transcode

 

- when running the command "watch nvidia-smi" the empty processes box gets populated

Unless I understand it wrong, since it says both video and audio are being transcoded, I should see the hw beside them in plex to show it's being done by the hardware?

 

- when running the command "nvidia-smi dmon -s u" all 5 columns are zero's

Shouldn't these columns have numbers in them? (gpu, sm, mem, enc, dec)

 

So I decided to force plex to decode by using this information as the Plex Transcode

#!/bin/sh
/usr/lib/plexmediaserver/Plex\ Transcoder2 -hwaccel nvdec "$@"

 

Now when I rerun the sample, the process gets populated (same as before) but now for the 5 columns, these 3 headings have numbers in them (sm, mem, dec)

 

Only thing I can think of is that my cpu is not good enough, was hoping that the video card would have helped since I heard of people running like 15 streams with a dedicated video card and I can't even do 1 stream.

 

 

 

Hi, did you made sure to "check" the settings inside PLEX settings itself?  Especially, in the "transcoder" section :

 

 

"Use hardware acceleration if available"

"Use hardware-accelerated video encoding"

 

If you already check them, it is suppose to use it.

13 minutes ago, Pducharme said:

 

Hi, did you made sure to "check" the settings inside PLEX settings itself?  Especially, in the "transcoder" section :

 

 

"Use hardware acceleration if available"

"Use hardware-accelerated video encoding"

 

If you already check them, it is suppose to use it.

In Plex I have the following checked "Use hardware acceleration when available"

13 hours ago, Mogo said:

In Plex I have the following checked "Use hardware acceleration when available"

I suspect it'll be the audio that's getting transcoded via the CPU.

with "nvidia-smi dmon -s u" you can see more details what the gpu is doing (decode/encode)

Occasionally my GPU seemingly 'disappears' from Unraid/Docker. Running nvidia-smi produces:

 

image.png.1220b01b2cef5e8beabb117ec223e7fb.png

 

but if I check Settings/Unraid Nvidia the device is still present:

image.png.5523f096a512592b9dd67138a7e1ef83.png

 

The server log is filled with some nvidia driver errors:

image.png.98a07ed0359fa1e79c1601fd2e78c119.png

A server reboot usually fixes the issue but it's rather annoying. How would I go about debugging this?

 

Running 6.8.0

 

EDIT: Just after I posted this nvidia-smi showed the card correctly and the docker containers that use the GPU were working correctly, I did not reboot. It basically just showed back up again.

Edited by PTRFRLL
Add additional info

After installing the plugin, I was unable to locate it under settings. It is showing as installed under plugins. 

 

Running 6.8 stable

 

Edit: After a reboot, the plugin is now showing under settings. 

Occasionally my GPU seemingly 'disappears' from Unraid/Docker. Running nvidia-smi produces:
 
image.png.1220b01b2cef5e8beabb117ec223e7fb.png
 
but if I check Settings/Unraid Nvidia the device is still present:
image.png.5523f096a512592b9dd67138a7e1ef83.png
 
The server log is filled with some nvidia driver errors:
image.png.98a07ed0359fa1e79c1601fd2e78c119.png
A server reboot usually fixes the issue but it's rather annoying. How would I go about debugging this?
 
Running 6.8.0
 
EDIT: Just after I posted this nvidia-smi showed the card correctly and the docker containers that use the GPU were working correctly, I did not reboot. It basically just showed back up again.
The settings page just reads a record of what cards were present at boot, it isn't dynamically loaded at each page load.

Your card is dropping out on occasion. The cause could be anything.

Try a different slot, BIOS up to date.

Different Unraid version and/or associated Nvidia version, but ultimately there's not much I can do to help unless you conclusively identify a driver issue and even then you're probably going to have to wait until a new upstream driver is released.

Sent from my Mi A1 using Tapatalk

21 minutes ago, CHBMB said:

The settings page just reads a record of what cards were present at boot, it isn't dynamically loaded at each page load.

Your card is dropping out on occasion. The cause could be anything.

Try a different slot, BIOS up to date.

Different Unraid version and/or associated Nvidia version, but ultimately there's not much I can do to help unless you conclusively identify a driver issue and even then you're probably going to have to wait until a new upstream driver is released.

Sent from my Mi A1 using Tapatalk
 

Ok, I'll assume it's hardware related and not Unraid or this plugin until I rule that out. Thanks for the suggestions.

Hello,

 

I recently set this up with a Plex pass and my CPU breathed a sigh of relief as my GPU took over transcoding (thanks for making this!)

 

My question is, previous to do this, I had transcode going to /tmp (ie RAM).  Should I turn this off or leave it be?

 

Thanks!

1 hour ago, aidenpryde said:

Hello,

 

I recently set this up with a Plex pass and my CPU breathed a sigh of relief as my GPU took over transcoding (thanks for making this!)

 

My question is, previous to do this, I had transcode going to /tmp (ie RAM).  Should I turn this off or leave it be?

 

Thanks!

here it still transcode to RAM, no problems or whatsoever... if it not eating all its RAM its fine...

You can limit the amount of ram use with a script. (so Plex won't use all the ram that result in a server crash)

 

#!/bin/bash
mkdir /tmp/PlexRam
mount -t tmpfs -o size=18g tmpfs /tmp/PlexRam

set it with the User scripts, scheduler "at first array start only" and you fine ;)

 

('size=Xg' is max allowed ram use)

6 hours ago, sjaak said:

here it still transcode to RAM, no problems or whatsoever... if it not eating all its RAM its fine...

You can limit the amount of ram use with a script. (so Plex won't use all the ram that result in a server crash)

 


#!/bin/bash
mkdir /tmp/PlexRam
mount -t tmpfs -o size=18g tmpfs /tmp/PlexRam

set it with the User scripts, scheduler "at first array start only" and you fine ;)

 

('size=Xg' is max allowed ram use)

Thanks.  I have 32GB of RAM, so no issues with the amount.  I'll probably be getting 64GB+ later this year when I decide on which generation of CPU.

 

However, shouldn't it transcode in GPU VRAM?  I mean, wouldn't it be better to let it transcode there?

21 minutes ago, aidenpryde said:

However, shouldn't it transcode in GPU VRAM?  I mean, wouldn't it be better to let it transcode there?

Not the audio, no.  AFAIK that's still the responsibility of the main system.

VRAM is used for the transcode but the finished transcode data will be temporary stored in RAM.

(one 2.5hour 4k stream can eat 12G of RAM, it looks like Plex doesn't remove old transcode data unless the stream ended...)

2 hours ago, Cessquill said:

Not the audio, no.  AFAIK that's still the responsibility of the main system.

Okay, thanks.  I'll leave it with /tmp.

HI all, what's the deal about getting builds updated for the beta's / rc's these days?  It feels wrong to me that I can't help test anything when I have this plugin installed.  Thanks.

8 minutes ago, Marshalleq said:

HI all, what's the deal about getting builds updated for the beta's / rc's these days?  It feels wrong to me that I can't help test anything when I have this plugin installed.  Thanks.

I'm going to go out on a limb here and speak for @CHBMB.  

 

This plugin (and the DVB plugin) are built and maintained by him on a volunteer basis and it isn't always convenient for him (or anyone else) to continually keep up with every release as soon as it's released.  There is significant time required to build and test each and every release which isn't always doable because of other commitments which are probably far more important.  Cut him some slack.

 

To be honest, at times I'm surprised due to the time required for this that he even bothers to support RC's.

waiting for 6.8.1 (out now!) with brand new nvidia driver 😁

Edited by Gee1

@Gee1Me too - these plugins are a problem in that it's challenging to beta test.  @steini84 with the ZFS plugin is very responsive, not sure about the unraid nvidia dev yet, which is why I asked.  @DarphBobo yes we appreciate this which is why the question.  What would be fantastic is if @limetech provided a means for triggering localised rebuilds of any third party plugins that require re-compilation to match the kernel.  I've seen this done at boot with new / different kernels back when I did OpenSuse / Novell.  They did this to get around licencing restrictions and binary driver issues whereby they stopped working when a kernel update came along.

Edited by Marshalleq
Clarity

Archived

This topic is now archived and is closed to further replies.

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.