Kodi Community Forum

Full Version: HIGH cpu usage in 17 from nightly and also latest beta
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Seems there is something odd with 17 it uses massive amounts of cpu even for xvid. Where as the old kodi 16.1 uses 4-5% the new 17 uses 20-25%. HW decoding is turned on. Anyone seen this on Sierra?
Yeah. Me too. I'm running it on an external monitor though, not sure if that's the reason.
Post a debug log to see whats going on, if its high CPU then there is a chance hardware acceleration is not working for some reason.

A log will explain this.
There you go: https://drive.google.com/file/d/0B-jJA4x...sp=sharing

Also, I noticed that even higher CPU usage occurs when I'm on the Kodi interface just browsing stuff (and mostly when a long filename is automatically scrolling in the file list - and this is happening in Kodi 16 too!)

Just remember, I'm running Kodi on an external monitor (different resolution than my MacBook Air) and in mirror mode!
here you go....

http://pastebin.com/ubJax8Hs


this does not happen to me in kodi 16. Kodi 17 goes around 25% steady cpu usage while playing. If i turn off HW decode it uses 50-60%
In kodi 16 with HW decode it uses something like 5-6% with the same movie.
I tested this just a min ago. Playing h264 1080p mkv:

1. Kodi 16.1 ffmpeg-vda:
8-10% CPU load
2. Kodi 16.1 our old vda codec:
18% CPU load
3. Kodi 17 Beta5 ffmpeg-vtb:
- 12 - 15%

I measured the cpu load with "top" on a shell (this is the only sane method for getting accurate cpu stats...). Not sure what exactly you played that only needed 6% - but i don't seee that it got that much higher compared to 16...
I even have 4.4% when playing 1080p on the macbook 12 retina with intel 5300 gpu. When playing on kodi 17 it uses at least 25% and that is quite easy to know since the laptop gets considerable hot and the battery is going down fast.

I used X264.
In your log all i see that hardware acceleration is used. I have no idea what to tell you else.

In Kodi 16.1 we use ffmpeg-vda (VideoDecodeAcceleration) hardware decoder in Kodi 17 we switched to ffmpeg-vtb (VideoToolbox) which is a lower layer (and the new standard in latest osx versions). There is no real tuning possible for us when it comes to those hardware acceleration frameworks.
Granted a lot of playback stuff changed in Kodi 17 additionally but its a bit hard to know what the cause is in your case (you are using a beta version of macos and a newer gpu generation then i have available for testing). Do you have any other macos versions on that macbook by any chance?
Mkv at 1080p x264

1. Kodi 16.1 ffmpeg-vda:
memory ?
8-12% CPU load

2. Kodi 17 Beta5 ffmpeg-vtb:
memory 7%
CPU 18 - 25%
Which content at which resolution? For v17 there is a big difference when playing files with e.g. 24 fps at 60 hz. It should be "the same" when running at video's fps rate.
can anybody compare sw decoding between v16 and v17?
(2016-11-20, 16:14)FernetMenta Wrote: [ -> ]can anybody compare sw decoding between v16 and v17?

Do you need logs while playing the same content in v16.1 and v17 with the hardware acceleration switched off ?
If so i could do that. Lett me know if you need specific logging.
Here is my Mac mini, but I'm using El Capitan on there so this may or may not help. I'm using 17 b5.


PID COMMAND %CPU TIME #TH #WQ #PORT MEM
28937 Kodi 14.9 03:21:03 29 0 514 268M- 16M

Jeff
(2016-11-20, 15:59)fritsch Wrote: [ -> ]Which content at which resolution? For v17 there is a big difference when playing files with e.g. 24 fps at 60 hz. It should be "the same" when running at video's fps rate.

Updated My post. It was an x264 1080p file. And i think its 24 fps at 60 Hz, Kodi is set at 1920x1080p - 60 hz
(2016-11-20, 17:37)jdf76 Wrote: [ -> ]Here is my Mac mini, but I'm using El Capitan on there so this may or may not help. I'm using 17 b5.


PID COMMAND %CPU TIME #TH #WQ #PORT MEM
28937 Kodi 14.9 03:21:03 29 0 514 268M- 16M

Jeff

It might help if we know what the cpu load on the same system is with kodi 16.1 in comparison. CPU load is dependend on the CPU as you might know - and we have no clue if 15% os OK or not OK for your particular system.
Pages: 1 2