Jump to content

Emby randomly stops using Nvidia GPU and switches to on-board Intel


txrxsystems

Recommended Posts

txrxsystems

Hey all, I'm a long-time lurker, first time poster on the forum.

I've got a Dell Precision Rack R3930 running Ubuntu server 20.04 (bare metal) with an Arr stack, NZBGet and Emby running on it. 

I have an Nvidia Tesla P4 GPU installed in it and it shows up just fine in the system and Emby detects it too. I have selected the Tesla as the primary transcoding GPU by dragging the Nvidia entries to the top of each list.

The problem is that randomly I'll notice that the machine is running it's fans very loud so I ssh into the box and try running htop and nvtop to see how hard the CPU/GPU are working. Sometimes nvtop will return the error "no gpu to monitor"

If I go into the Emby dashboard, under transcoding I will see that the Tesla entries are missing.

So far the only way I can find to fix it is to reinstall the Nvidia drivers/modules and reboot. This is happening almost every week so I'm getting more than a little tired of it.

Any ideas what I can do to stop this?  

Link to comment
Share on other sites

GrimReaper
1 hour ago, txrxsystems said:

Sometimes nvtop will return the error "no gpu to monitor"

If I go into the Emby dashboard, under transcoding I will see that the Tesla entries are missing.

That sounds more like system issue than Emby issue but nevertheless, post hardware detection log and ffmpeg log(s) when you observe reoccurrence. 

Link to comment
Share on other sites

txrxsystems

OK I'll do that. 

I've just fixed it so I will monitor it closely and post the logs when it re-occurs.

Thanks

  • Thanks 1
Link to comment
Share on other sites

txrxsystems

Hey @grimreaper0744The problem has re-occurred already. 

I've grabbed a copy of the most recent Emby ffmpeg log and the Emby log but where do I find the hardware detection log?

Link to comment
Share on other sites

GrimReaper
On 5/22/2023 at 5:03 PM, txrxsystems said:

strange that it's trying to use Cuvid when I have Nvenc as the first option in all my lists under Transcoding?

It ain't using CUVID, NVENC/NVDEC are used, CUDA is just denoting using CUDA cores/api. 

Quote
>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'NVENC Tesla P4 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Tesla P4 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'NVDEC Tesla P4 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Tesla P4 - H.264 (AVC)'

 

On 5/22/2023 at 5:03 PM, txrxsystems said:

Any advice on how I should go about finding the root cause?

Exactly what you thought as odd: try putting CUVID as top preferred HW decoder and compare results, as there is no one-fits-all solution: on some systems NVDEC works better, on others CUVID does, that's why there are options. 

Link to comment
Share on other sites

  • 2 weeks later...

@txrxsystems - The Nvidia drivers provided by Ubuntu are known to be unstable. Please try to switch to the proprietary drivers (also provided by Ubuntu) or install the drivers from the Nvidia website, running their installer.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...