Jump to content
linuxserver.io

[Plugin] Linuxserver.io - Unraid Nvidia

1939 posts in this topic Last Reply

Recommended Posts

Just read the work that went into releasing the latest version. Thank you to all that are involved in keeping this amazing addition to unraid working. I've been enjoying the benefits of it ever since it was released and as we all know how great it is to have this ability. I really appreciate it.

I searched back a bit and didn't see anything recently about the work being done on combining the Nvidia build and the DVB build. That would be the next dream come true. Is there any place I can follow the development of that build? Seems like it's getting lost in this thread.
Yeah, I'm just too tied up with work at the moment, I'll try and pick that up in the New Year

Sent from my Mi A1 using Tapatalk

Share this post


Link to post

Rc8 has been uploaded.

Sent from my Mi A1 using Tapatalk

Share this post


Link to post

Ok, I fully transferred over to the LinuxServer emby container - it works great!

 

Thank you for working with me to troubleshoot this issue.

Share this post


Link to post

Hi guys,

 

I've been using Unraid Nvidia for a couple months now with Plex and its been working great.  I did notice however that whenever the Plex docker was restarted the fan on my P2000 would ramp up to about 90% until Plex was restarted.  This wasn't bothersome as I always kept Plex running, however when I recently switched to Emby I noticed that the GPU fan would ramp to 75-90% whenever there were no running processes in nvidia smi, so as soon as a transcode completes the fan speeds up.  I have tried to find solutions to this, but haven't come across anyone speaking of the same issue.  My server is on my desk and the fan is tolerable but not ideal, does anyone know of a way to fix this?  I am running version 6.7.2 and the fan is usually at about 55% with the GPU at 55-60C with a transcode running.  At idle it is usually about 80% with the GPU at 35-40C.

 

Thank you all.

Share this post


Link to post
3 hours ago, satmeiler said:

Hi guys,

 

I've been using Unraid Nvidia for a couple months now with Plex and its been working great.  I did notice however that whenever the Plex docker was restarted the fan on my P2000 would ramp up to about 90% until Plex was restarted.  This wasn't bothersome as I always kept Plex running, however when I recently switched to Emby I noticed that the GPU fan would ramp to 75-90% whenever there were no running processes in nvidia smi, so as soon as a transcode completes the fan speeds up.  I have tried to find solutions to this, but haven't come across anyone speaking of the same issue.  My server is on my desk and the fan is tolerable but not ideal, does anyone know of a way to fix this?  I am running version 6.7.2 and the fan is usually at about 55% with the GPU at 55-60C with a transcode running.  At idle it is usually about 80% with the GPU at 35-40C.

 

Thank you all.

I can't remember the source, but I added the below script using the Userscripts plugin and have it running hourly (need to update to a shorter time window) that will check to see if the gpu is being used, otherwise return it to an idle state of P0. Others had cited that once the card was fired up it would not return to idle once done, this script check for any processes and then forces the return. See if it helps for you.

 

#!/bin/bash
TOKILL=""
CPT_TRANSCODE=-1
CPT_SERVER=-1

for ELEMENT in $(lsof /dev/nvidia0 | awk '{print $1 "@" $2}')
do
 IFS='@' read -r -a array <<< "$ELEMENT"
 if [ "${array[0]}" != "Xorg" ] && [ "${array[0]}" != "ffmpeg" ]
 then
  if [ "${array[0]}" = "Plex\x20T" ]
  then
  ((CPT_TRANSCODE++))
  fi
  if [ "${array[0]}" = "Plex\x20M" ]
  then
   ((CPT_SERVER++))
   TOKILL="${array[1]}"
  fi
 fi
done

if [ $CPT_SERVER -gt 0 ] && [ $CPT_TRANSCODE -lt 1 ] && [ "$1" != "test" ]
then
 kill -9 "$TOKILL"
fi
if [ "$1" == "test" ]
then
 echo "$TOKILL"
fi

 

Edited by dewlite

Share this post


Link to post
5 hours ago, dewlite said:

I can't remember the source, but I added the below script using the Userscripts plugin and have it running hourly (need to update to a shorter time window) that will check to see if the gpu is being used, otherwise return it to an idle state of P0. Others had cited that once the card was fired up it would not return to idle once done, this script check for any processes and then forces the return. See if it helps for you.

 


#!/bin/bash
TOKILL=""
CPT_TRANSCODE=-1
CPT_SERVER=-1

for ELEMENT in $(lsof /dev/nvidia0 | awk '{print $1 "@" $2}')
do
 IFS='@' read -r -a array <<< "$ELEMENT"
 if [ "${array[0]}" != "Xorg" ] && [ "${array[0]}" != "ffmpeg" ]
 then
  if [ "${array[0]}" = "Plex\x20T" ]
  then
  ((CPT_TRANSCODE++))
  fi
  if [ "${array[0]}" = "Plex\x20M" ]
  then
   ((CPT_SERVER++))
   TOKILL="${array[1]}"
  fi
 fi
done

if [ $CPT_SERVER -gt 0 ] && [ $CPT_TRANSCODE -lt 1 ] && [ "$1" != "test" ]
then
 kill -9 "$TOKILL"
fi
if [ "$1" == "test" ]
then
 echo "$TOKILL"
fi

 

Thank you, Ill give that a shot later today when I have time, I don't have any experience installing a script into the Nvidia Drivers, but I assume there is documentation about that.  Ill report back if that fixes it.

Share this post


Link to post
20 hours ago, dewlite said:

I can't remember the source, but I added the below script using the Userscripts plugin and have it running hourly (need to update to a shorter time window) that will check to see if the gpu is being used, otherwise return it to an idle state of P0. Others had cited that once the card was fired up it would not return to idle once done, this script check for any processes and then forces the return. See if it helps for you.

 


#!/bin/bash
TOKILL=""
CPT_TRANSCODE=-1
CPT_SERVER=-1

for ELEMENT in $(lsof /dev/nvidia0 | awk '{print $1 "@" $2}')
do
 IFS='@' read -r -a array <<< "$ELEMENT"
 if [ "${array[0]}" != "Xorg" ] && [ "${array[0]}" != "ffmpeg" ]
 then
  if [ "${array[0]}" = "Plex\x20T" ]
  then
  ((CPT_TRANSCODE++))
  fi
  if [ "${array[0]}" = "Plex\x20M" ]
  then
   ((CPT_SERVER++))
   TOKILL="${array[1]}"
  fi
 fi
done

if [ $CPT_SERVER -gt 0 ] && [ $CPT_TRANSCODE -lt 1 ] && [ "$1" != "test" ]
then
 kill -9 "$TOKILL"
fi
if [ "$1" == "test" ]
then
 echo "$TOKILL"
fi

 

I installed the user scripts plugin and ran that script however I saw now change in the GPU temp.  When I clicked view log, the log showed that the actual log was stored in the /tmp folder.  I attempted to use midnight commander to copy that txt file somewhere it could be accessed.  Midnight commander seems to work at random for me I'm not sure if I'm missing something but I was unable to perform any actions of the file.  To install the script I mounted the flash share and browsed to the file created when I added a script with the plugin.  I then copied the script from this post into that txt file and ran it.  Am I doing all of this right?

Share this post


Link to post
4 hours ago, satmeiler said:

hen I clicked view log, the log showed that the actual log was stored in the /tmp folder.  I attempted to use midnight commander to copy that txt file somewhere it could be accessed.

Why not simply hit the download log button?

Share this post


Link to post
23 hours ago, aptalca said:

It's hosted on Digitalocean Spaces

It's not downloading at all for me. Something up with the CDN?

Share this post


Link to post
It's not downloading at all for me. Something up with the CDN?
Dude, I've already replied to you on the ls.io forum.

Sent from my Mi A1 using Tapatalk

Share this post


Link to post
On 12/7/2019 at 4:57 AM, CHBMB said:

RC9 uploaded

Sent from my Mi A1 using Tapatalk
 

It's not downloading at all for me. Traceroute to digitalocean is fine. What's up?

Share this post


Link to post
2 minutes ago, CHBMB said:

Dude, I've already replied to you on the ls.io forum.

Sent from my Mi A1 using Tapatalk
 

And I appreciate it. Also going to post in the Discord if that's alright with you.

Edited by ripeart

Share this post


Link to post
10 minutes ago, ripeart said:

And I appreciate it. Also going to post in the Discord if that's alright with you.

Are you being serious?

Share this post


Link to post

Let me start off by saying, thank you for the work that goes into this plugin. Honestly should be something that is built into Unraid by default. Anyway, I am now upgraded to 6.8 RC9 but I do not see my quadro card as an availble card.

image.png.3cdf444b626a729f15547deaaac9dbee.png

 

But using watch nvidia-smi I see my quadro (1080 is being used in a VM)

 

image.png.0c80b23740bb2a1630574b27c58f8792.png

 

Any reason why I no longer see the P2000?

 

Thank you

Share this post


Link to post
12 hours ago, Squid said:

Why not simply hit the download log button?

That downloaded the log telling me to access the tmp folder.

Share this post


Link to post

That is the file referenced

Share this post


Link to post
3 hours ago, Eggman1414 said:

Let me start off by saying, thank you for the work that goes into this plugin. Honestly should be something that is built into Unraid by default. Anyway, I am now upgraded to 6.8 RC9 but I do not see my quadro card as an availble card.

image.png.3cdf444b626a729f15547deaaac9dbee.png

 

But using watch nvidia-smi I see my quadro (1080 is being used in a VM)

 

image.png.0c80b23740bb2a1630574b27c58f8792.png

 

Any reason why I no longer see the P2000?

 

Thank you

Probably since it's passed through to your vm?

Share this post


Link to post
6 hours ago, saarg said:

Probably since it's passed through to your vm?

he is using the gtx1080 to the VM, not the P2000 ;)

Edited by sjaak

Share this post


Link to post
Let me start off by saying, thank you for the work that goes into this plugin. Honestly should be something that is built into Unraid by default. Anyway, I am now upgraded to 6.8 RC9 but I do not see my quadro card as an availble card.
image.png.3cdf444b626a729f15547deaaac9dbee.png
 
But using watch nvidia-smi I see my quadro (1080 is being used in a VM)
 
image.png.0c80b23740bb2a1630574b27c58f8792.png
 
Any reason why I no longer see the P2000?
 
Thank you
Is the Quadro still supported on the driver version?

Sent from my Mi A1 using Tapatalk

Share this post


Link to post

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.