June 28, 20197 yr I did look for this but didn't find it. If you have a single GPU can you still use it for transcoding or while that cause an issue in unRAID? I don't use the GUI mode at all and my unRAID boxes onboard video died. I only have room for one video card unless I pick up a PCI card but I'd rather not do that if I can avoid it.
June 29, 20197 yr Hello, is there a possibility to downgrade drivers? Im running an older card, which is not supported by the current driver (418), so I need to "downgrade" drivers. I know which driver it is and it does have a Linux 64-bit version if I say so...
June 29, 20197 yr 2 hours ago, cztrollolcz said: Hello, is there a possibility to downgrade drivers? Im running an older card, which is not supported by the current driver (418), so I need to "downgrade" drivers. I know which driver it is and it does have a Linux 64-bit version if I say so... No, we only use the current version at the time of building.
June 29, 20197 yr 4 hours ago, cztrollolcz said: Hello, is there a possibility to downgrade drivers? Im running an older card, which is not supported by the current driver (418), so I need to "downgrade" drivers. I know which driver it is and it does have a Linux 64-bit version if I say so... Most likely your card doesn't have nvenc support if it's not supported anymore.
July 1, 20197 yr On 6/29/2019 at 7:37 AM, CHBMB said: v6.7.2 uploaded Thank you, upgraded with no issues. Love this plugin and appreciate all the hard work put into it.
July 4, 20197 yr On 5/27/2019 at 6:59 PM, Xaero said: @CHBMB I too see this high power consumption. I know why it's happening, too. Basically, the nvidia driver doesn't initialize power management until an Xorg server is running. The only way to force a power profile on Linux currently is to use nvidia-smi like so: nvidia-settings --ctrl-display :0 -a "[gpu:0]/GPUPowerMizerMode=2" Which requires a running Xorg display. I've been trying to dig around in sysfs to see if there is another place that this value is stored, but there doesn't seem to be. It looks like the cards are locked into performance mode... Perhaps this is worth bringing up to nvidia? In the meantime, I'm going to continue digging to see if I can find a way (perhaps an nvidia-settings docker?) to force the power state. Did you get any further with that? I would love to see the card going back to P8 state after transcoding with plex. I don't really understand what you mean with the Xorg server. I know it's a display server but don't get how this two things are connected to each other. Could you explain that? Thanks.
July 4, 20197 yr 1 hour ago, pappaq said: Did you get any further with that? I would love to see the card going back to P8 state after transcoding with plex. I don't really understand what you mean with the Xorg server. I know it's a display server but don't get how this two things are connected to each other. Could you explain that? Thanks. Basically, the Nvidia Linux drivers are designed such that they aren't fully independent of the display server. Parts of the driver aren't active until a display server like X11 or Wayland hooks the driver resources. As a result of there not being an active display in the unraid environment, nvidia-settings can't be called to change driver settings. In the example above ":0" is shorthand for: "localhost:0.0" which is the first screen, on the first display server, on the local machine. That display doesn't exist, so the n idia settings application just tells you it can't do what you asked. Normally, in Linux land, we have "sysfs" nodes for driver and hardware settings. "Sysfs" is the /sys/ folder on Linux systems. All of the driver flags, power states, temperature sensors, etc live in this folder as files. Nvidia, for whatever reason, has avoided embracing both KMS (kernel mode setting, which let's the kernel make decisions about what the display should be doing during boot) and sysfs nodes. This honestly is something Nvidia should be fixing. We might be able to band-aid it by running a display server in a docker with the Nvidia settings application and using it to manage the power state. It also might fail horribly. It might be better to create a fake second X server on unraid itself using a userscript as the temporary solution. EDIT2: Just tested my above theory with a fake X server on unraid and it works perfectly. Let me write a userscript to create one of these fake environments on the fly. Edited July 4, 20197 yr by Xaero
July 4, 20197 yr 27 minutes ago, Xaero said: Basically, the Nvidia Linux drivers are designed such that they aren't fully independent of the display server. Parts of the driver aren't active until a display server like X11 or Wayland hooks the driver resources. As a result of there not being an active display in the unraid environment, nvidia-settings can't be called to change driver settings. In the example above ":0" is shorthand for: "localhost:0.0" which is the first screen, on the first display server, on the local machine. That display doesn't exist, so the n idia settings application just tells you it can't do what you asked. Normally, in Linux land, we have "sysfs" nodes for driver and hardware settings. "Sysfs" is the /sys/ folder on Linux systems. All of the driver flags, power states, temperature sensors, etc live in this folder as files. Nvidia, for whatever reason, has avoided embracing both KMS (kernel mode setting, which let's the kernel make decisions about what the display should be doing during boot) and sysfs nodes. This honestly is something Nvidia should be fixing. We might be able to band-aid it by running a display server in a docker with the Nvidia settings application and using it to manage the power state. It also might fail horribly. It might be better to create a fake second X server on unraid itself using a userscript as the temporary solution. EDIT2: Just tested my above theory with a fake X server on unraid and it works perfectly. Let me write a userscript to create one of these fake environments on the fly. That sound promising! I look forward to that! Would it be too much to ask if you could explain how to implement it and run it when you are done writing the script? Thank you so much in advance!
July 4, 20197 yr Give me a bit here, there are some problems with this - for one, I think persistencemode may need to be forced on, it seems like the driver is releasing the card when the rendering finishes, which sets it back to a P0 state, restarting the X server isn't enough to get the p-state back. I'll work on it a bit, and make sure it's ready for prime time before I push anything out. It is the first time my card has dropped back from the P0 state since it was installed in the server though, so it's definitely progress in the right direction
July 4, 20197 yr 10 minutes ago, Xaero said: Give me a bit here, there are some problems with this - for one, I think persistencemode may need to be forced on, it seems like the driver is releasing the card when the rendering finishes, which sets it back to a P0 state, restarting the X server isn't enough to get the p-state back. I'll work on it a bit, and make sure it's ready for prime time before I push anything out. It is the first time my card has dropped back from the P0 state since it was installed in the server though, so it's definitely progress in the right direction Hey, no worries! I discovered the thing with the persistencemode too. It's the only way to get my two cards into P8 state. I'm too happy that someone does have the same problem as me and is willing to do the work I can't for now! Thanks! Edited July 4, 20197 yr by pappaq
July 4, 20197 yr Edit: This is not a problem with an easy solution at all. I can monitor the transcode processes and make sure that everything is killed - but the only solution is to kill Plex:https://forums.plex.tv/t/stuck-in-p-state-p0-after-transcode-finished-on-nvidia/387685/24 I can user fuser -vk /dev/nvidia* and it will immediately switch to a P8 state. The only process using the card when this is run is "Plex Media Server" It's not hard to write a script that will only do this if: There are no processes using the card and the card is in a P0 state. I just don't know if there are any undesirable side-effects of doing it this way. Here is such a script: #!/bin/bash while true; do cur_pstate=$(nvidia-smi --query-gpu=pstate --format=csv,noheader) running_processes=$(ps --no-headers "$(nvidia-smi |tail -n +16 | head -n -1 | sed 's/\s\s*/ /g' | cut -d' ' -f3)" | wc -l) 2>/dev/null if [[ $cur_pstate = "P0" && $running_processes -eq 0 ]]; then # if we got here, the card is only running the Xorg process and is in the P0 state, let's fix that. fuser -kv /dev/nvidia* echo "Reset Power State" fi #sleep so we aren't blocking a thread constantly. sleep 1 done Starting the X server on Unraid does allow one to open nvidia settings; to do this you can use a script like this to start the X server (note, that since chvt and fgconsole aren't available, you will have to switch back to VT7 by pressing Ctrl+Alt+F7): #!/bin/bash ##This will only work on single GPU systems: GPUID=$(nvidia-xconfig --query-gpu-info | grep BusID | sed 's/^[^:]*: //') #Now that we know the PCI BusID of the card we can create the X server with a fake display: nvidia-xconfig -s -a --allow-empty-initial-configuration --use-display-device=None --virtual=640x480 --busid "$GPUID" -o /dev/stdout | X :99 -config /dev/stdin& Once you have that server running, you can return to the default unraid GUI and run: nvidia-settings -c :99 To open nvidia-settings on the card. You could also store an xorg configuration file and use that for the virtual X display, and to set persistent nvidia settings. The only way I can think of to fix this properly is to figure out why the Plex process is claiming the card and prevent that from happening. I'll look into it some more, but this needs to be fixed properly by Plex/nVidia. The linked thread at the Plex forums has more information. I may be able to detach the Plex Transcoder process with the wrapper script, making it it's own entity, and then trapping the SIGINT/SIGKILL in the wrapper and using it to kill the transcoder, effectively using the wrapper script to separate the Plex Media Server process from the Plex Transcoder process. It's pretty kludgy, but might work. Oh Boy: We're in idle P-State while transcoding territory! Edited July 4, 20197 yr by Xaero
July 7, 20197 yr Could anyone guide what's the difference between stock unraid builds and nvidia unraid builds. Sorry for asking stupid questions😅
July 7, 20197 yr 20 minutes ago, Max said: Could anyone guide what's the difference between stock unraid builds and nvidia unraid builds did you read the first post of this thread?
July 7, 20197 yr 6 minutes ago, uldise said: did you read the first post of this thread? I did and just to be sure i read it again just now but still can't figure it out. Sorry for being idiot. Actually i have gtx 750 laying around so i planning to use it with plex and handbrake.
July 7, 20197 yr 50 minutes ago, uldise said: did you read the first post of this thread? 41 minutes ago, Max said: I did and just to be sure i read it again just now but still can't figure it out. Sorry for being idiot. Actually i have gtx 750 laying around so i planning to use it with plex and handbrake. Is stock build option is for situation in which you dont wanna use it for some reason and revert back to stock unraid drivers in way to uninstall nvidia drivers and install back the original unraid drivers which won't have the ability to use your gpu with dockers.
July 7, 20197 yr 5 hours ago, Max said: Could anyone guide what's the difference between stock unraid builds and nvidia unraid builds. Sorry for asking stupid questions😅 The stock builds are released by limetech and are official, but have only the open source graphics drivers, which are missing features from the proprietary driversm The unraid Nvidia builds have the Nvidia proprietary driver packages added in,.which enable.things like CUDA, nvenc and nvdec. By using the card inside of Dockers you can take advantage of this for things like hardware accelerated transcoding and GPGPU computing.
July 7, 20197 yr On 7/4/2019 at 1:23 PM, Xaero said: Edit: This is not a problem with an easy solution at all. I can monitor the transcode processes and make sure that everything is killed - but the only solution is to kill Plex:https://forums.plex.tv/t/stuck-in-p-state-p0-after-transcode-finished-on-nvidia/387685/24 I can user fuser -vk /dev/nvidia* and it will immediately switch to a P8 state. The only process using the card when this is run is "Plex Media Server" It's not hard to write a script that will only do this if: There are no processes using the card and the card is in a P0 state. I just don't know if there are any undesirable side-effects of doing it this way. Here is such a script: #!/bin/bash while true; do cur_pstate=$(nvidia-smi --query-gpu=pstate --format=csv,noheader) running_processes=$(ps --no-headers "$(nvidia-smi |tail -n +16 | head -n -1 | sed 's/\s\s*/ /g' | cut -d' ' -f3)" | wc -l) 2>/dev/null if [[ $cur_pstate = "P0" && $running_processes -eq 0 ]]; then # if we got here, the card is only running the Xorg process and is in the P0 state, let's fix that. fuser -kv /dev/nvidia* echo "Reset Power State" fi #sleep so we aren't blocking a thread constantly. sleep 1 done Starting the X server on Unraid does allow one to open nvidia settings; to do this you can use a script like this to start the X server (note, that since chvt and fgconsole aren't available, you will have to switch back to VT7 by pressing Ctrl+Alt+F7): #!/bin/bash ##This will only work on single GPU systems: GPUID=$(nvidia-xconfig --query-gpu-info | grep BusID | sed 's/^[^:]*: //') #Now that we know the PCI BusID of the card we can create the X server with a fake display: nvidia-xconfig -s -a --allow-empty-initial-configuration --use-display-device=None --virtual=640x480 --busid "$GPUID" -o /dev/stdout | X :99 -config /dev/stdin& Once you have that server running, you can return to the default unraid GUI and run: nvidia-settings -c :99 To open nvidia-settings on the card. You could also store an xorg configuration file and use that for the virtual X display, and to set persistent nvidia settings. The only way I can think of to fix this properly is to figure out why the Plex process is claiming the card and prevent that from happening. I'll look into it some more, but this needs to be fixed properly by Plex/nVidia. The linked thread at the Plex forums has more information. I may be able to detach the Plex Transcoder process with the wrapper script, making it it's own entity, and then trapping the SIGINT/SIGKILL in the wrapper and using it to kill the transcoder, effectively using the wrapper script to separate the Plex Media Server process from the Plex Transcoder process. It's pretty kludgy, but might work. Oh Boy: We're in idle P-State while transcoding territory! Any idea about us emby users?
July 7, 20197 yr 26 minutes ago, Dazog said: Any idea about us emby users? I was under the impression that Emby doesn't have this behavior? To see if it does, and part of "why" run watch nvidia-smi Check the power state is not latched to P0. Start a stream, verify the power state latches to P0 Stop the stream, verify the process has ended, and that the power state is stuck in P0 Run fuser -v /dev/nvidia* To see what processes are still using the driver.
July 7, 20197 yr 3 hours ago, Xaero said: The stock builds are released by limetech and are official, but have only the open source graphics drivers, which are missing features from the proprietary driversm The unraid Nvidia builds have the Nvidia proprietary driver packages added in,.which enable.things like CUDA, nvenc and nvdec. By using the card inside of Dockers you can take advantage of this for things like hardware accelerated transcoding and GPGPU computing. ohh but if unraid build don't have anything like cuda, nvenc and nvdec then, why would someone will ever use and what for ? doesn't it makes them pretty much useless.😅
Archived
This topic is now archived and is closed to further replies.