Jump to content


Photo

CPU Usage from Emby Docker seems high


  • Please log in to reply
13 replies to this topic

#1 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 23 January 2020 - 03:49 PM

Platform: Unraid/Docker, using Emby Server v4.3.1.0 (using the official Docker image)
Hardware: Ryzen 5 2600X; Quadro P2000
 
Hi, 
 
I notice that although I have hardware transcoding enabled on Emby, I am still seeing significant (~8-12%) CPU usage coming from the Emby docker container when playing Live TV (while I have other docker containers installed, unRAID reports very little CPU usage from them). On the Emby Dashboard, I see that it does say "NVENC/DEC" for a given Live TV stream. 
 
So how do I go about finding out what is causing CPU usage from Emby?
 
Thanks!


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 23 January 2020 - 03:53 PM

Hi there, please attach an emby server log from when this happened. Thanks.

#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 23 January 2020 - 03:54 PM

Although to be honest you said you're playing live TV. If there's any conversion happening for that then I would say this is pretty normal.

#4 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 23 January 2020 - 04:03 PM

Please see attached for log.

 

Also, it has been at least a few minutes since I stopped playback on Emby (in fact I exited out of the app back to the main Roku home page).

 

However, I'm still seeing about 4-8% CPU usage from the Emby docker. Is this just some background tasks etc.?

Attached Files



#5 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 23 January 2020 - 04:19 PM

Just wanted to add: It's been more than 30 minutes of no playback on Emby. Yet, I'm still seeing ~4-8% CPU usage from the docker. Attached a more up-to-date server log.

Attached Files



#6 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 25 January 2020 - 03:14 AM

Hi there, please attach an emby server log from when this happened. Thanks.

 

Hi,

 

Any thoughts on what caused this behavior from Emby?

 

Thanks!



#7 Q-Droid OFFLINE  

Q-Droid

    Advanced Member

  • Members
  • 388 posts
  • Local time: 06:24 PM

Posted 25 January 2020 - 09:53 AM

Is this only for Live TV? Check your transcoding temp path, are files there and still growing? Sometimes Live TV can get stuck and continue playing after you exit the app.

 

Does the Dashboard show any playback activity?



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 27 January 2020 - 03:11 PM

Just wanted to add: It's been more than 30 minutes of no playback on Emby. Yet, I'm still seeing ~4-8% CPU usage from the docker. Attached a more up-to-date server log.

 

Hi, what time was that? It seems like this whole log is filled with playback activity.



#9 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 27 January 2020 - 03:43 PM

Hi, what time was that? It seems like this whole log is filled with playback activity.

 

If I remember correctly, I stopped all playback around 2:45PM (the dashboard no longer showed anything playing).

 

So, if the log shows playback activity past that time, then I assume that the playback session kept going in the background?



#10 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 27 January 2020 - 07:02 PM

Hi, what time was that? It seems like this whole log is filled with playback activity.

 

I tried to see if I could replicate the behavior

 

So, again the setup:
CPU: Ryzen 5 2600X
GPU: Nvidia Quadro P2000
Emby Server Version: 4.3.1.0 (using the official EmbyServer docker on unRAID 6.8.1)
Transcoding folder is on a Samsung 970 EVO NVMe SSD
Network Conditions: Server is wired and has FiOS Gigabit upload; remote client (Roku Streaming Stick+) location has 200Mbps download
 
I restarted the Emby Docker around 4:55PM or so
From 5:00PM-5:10PM:
  • no Emby playback
  • ~0% CPU usage by Emby
  • 0% GPU usage
  • ~110MiB RAM usage by Emby
From 5:10PM-5:20PM: 
  • Emby Live TV playback (remote client; 720p HD 4Mbps; went back and forth between Direct Playing and hardware transcoding; MPEG-2 NVENC/DEC -> H.264 [AVC] NVENC/DEC)
  • ~5-12% CPU usage by Emby
  • ~2-5% GPU usage
  • ~160MiB RAM usage by Emby
  • playback repeatedly hangs up and restarts no less than 5 times in the space of 10 minutes (see multiple transcode logs)

From 5:20PM-5:30PM:

  • no Emby playback
  • ~3-8% CPU usage by Emby
  • 0% GPU usage
  • ~120MiB RAM usage by Emby
  • HDHomeRun reports that the tuner that was in use by Emby is still in use, despite Emby playback having ended 10 minutes ago

I decided to compare to Plex Live TV playback

From 5:30PM-5:40PM:

  • no Emby playback, Plex Live TV playback (remote client; 720p HD 4Mbps; transcoded 1080i MPEG-2 to 720p H.264 using hardware transcoding, playback was clean with not a single hiccup)
  • ~0-1% CPU usage by Plex, ~3-8% CPU usage by Emby (despite no playback)
  • 5-10% GPU usage
  • 1GiB RAM usage by Plex, ~120MiB RAM usage by Emby
  • HDHomeRun reports that the tuner in use by Plex was no longer in use as soon as playback ended
  • HDHomeRun reports that the tuner that was in use by Emby is still in use, despite Emby playback having ended 20 minutes ago.

I finally restarted the Emby docker around 6:05PM. Only then did CPU usage from Emby go back to ~0% and the HDHomeRun tuner get released.

Attached Files


Edited by rragu, 27 January 2020 - 07:06 PM.


#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 05 February 2020 - 03:28 PM

Hi, please keep in mind you can't very easily compare usage of that other server to ours because they spread the server functions across multiple processes, whereas we do not do that.



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 05 February 2020 - 03:29 PM

 

 

HDHomeRun reports that the tuner that was in use by Emby is still in use, despite Emby playback having ended 20 minutes ago.

How did you stop playback?



#13 rragu OFFLINE  

rragu

    Newbie

  • Members
  • 7 posts
  • Local time: 06:24 PM

Posted 05 February 2020 - 05:34 PM

How did you stop playback?

 

I'm using a Roku Streaming Stick+. So when playing Live TV, I just hit the "Back" button on the Roku remote to go back to the guide/home screen



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148690 posts
  • Local time: 06:24 PM

Posted 06 February 2020 - 02:32 PM

Thanks we'll test that out.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users