rragu 0 Posted January 23, 2020 Share Posted January 23, 2020 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! Link to comment Share on other sites More sharing options...
Luke 37009 Posted January 23, 2020 Share Posted January 23, 2020 Hi there, please attach an emby server log from when this happened. Thanks. Link to comment Share on other sites More sharing options...
Luke 37009 Posted January 23, 2020 Share Posted January 23, 2020 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. Link to comment Share on other sites More sharing options...
rragu 0 Posted January 23, 2020 Author Share Posted January 23, 2020 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.? embyserver.txt Link to comment Share on other sites More sharing options...
rragu 0 Posted January 23, 2020 Author Share Posted January 23, 2020 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. embyserver2.txt Link to comment Share on other sites More sharing options...
rragu 0 Posted January 25, 2020 Author Share Posted January 25, 2020 Hi there, please attach an emby server log from when this happened. Thanks. Hi, Any thoughts on what caused this behavior from Emby? Thanks! Link to comment Share on other sites More sharing options...
Q-Droid 634 Posted January 25, 2020 Share Posted January 25, 2020 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? Link to comment Share on other sites More sharing options...
Luke 37009 Posted January 27, 2020 Share Posted January 27, 2020 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. Link to comment Share on other sites More sharing options...
rragu 0 Posted January 27, 2020 Author Share Posted January 27, 2020 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? Link to comment Share on other sites More sharing options...
rragu 0 Posted January 27, 2020 Author Share Posted January 27, 2020 (edited) 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. embyserver-01-27-2020.txt ffmpeg-transcode-1.txt ffmpeg-transcode-2.txt ffmpeg-transcode-3.txt ffmpeg-transcode-4.txt ffmpeg-transcode-5.txt ffmpeg-transcode-6.txt Edited January 27, 2020 by rragu Link to comment Share on other sites More sharing options...
Luke 37009 Posted February 5, 2020 Share Posted February 5, 2020 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. Link to comment Share on other sites More sharing options...
Luke 37009 Posted February 5, 2020 Share Posted February 5, 2020 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? Link to comment Share on other sites More sharing options...
rragu 0 Posted February 5, 2020 Author Share Posted February 5, 2020 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 Link to comment Share on other sites More sharing options...
Luke 37009 Posted February 6, 2020 Share Posted February 6, 2020 Thanks we'll test that out. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now