hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.04k stars 377 forks source link

High CPU load (RPI3B+) #1013

Closed eloo closed 3 years ago

eloo commented 4 years ago

Bug report

Hi, i'm using the ng project since a while (alpha6) on my RPI3B+ and also after this update i still see a high CPU load caused by hyperiond.

When the system is idling (just in the kodi menu) i see a CPU load of around 20% - 30% for hyperiond. This seems to be quite a lot to me.

I've also checked the CPU load for the "old" hyperion setup (the kodi plugin) on the same hardware and its only creating a CPU load of around 2% - 5%.

My first thougths was that maybe the internal grabber is producing the load. But also when i disabled everything in the hyperion-UI the CPU load is still around 20%

Steps to reproduce

Install and configure hyperion-ng on libreelec on a RPI3B+

What is expected?

The new hyperion generation is consumed as less CPU as the previous version has.

What is actually happening?

CPU load of hyperiond is quite high

System

System: RPI3B+ OS: LibreElec 9.2.4 Platform: Raspberry Pi Controller type: adalight Instance: First LED Hardware instance Ports (flat|proto): 19400 | 19445 Your Hyperion version: 2.0.0-alpha.8 Watched version branch: Stable Latest Hyperion version: 2.0.0-alpha.8

I hope i have provided all necessary information you need to investigate this topic. If not please let me know.

Thanks a lot. And by the, i really like the new hyperion!

Best regards eloo

Paulchen-Panther commented 4 years ago

Thanks for your report. But you are aware that Hyperion.ng is not officially supported under LibreELEC?

eloo commented 4 years ago

@Paulchen-Panther ah okay.. no i was not aware.. but at least this is also mentioned in the forum where i come from.

but did you think its highly related to libreelec especially? If so i can also test a raspbian or hyperbian image.

Paulchen-Panther commented 4 years ago

I cannot say whether it is explicitly up to LibreELEC. I haven't paid attention to the CPU usage yet. You are welcome to test it on Raspbian or HyperBian. No problem.

Paulchen-Panther commented 3 years ago

Tested on Raspberry Pi OS (RPI3B+). Here the load in idle without internal grabber: Raspi_OS

And here the CPU load with internal grabber: Raspi_OS

jueank commented 3 years ago

i can report the same issue on a RPi3+ with Retropie 4.6 (based on Raspbian Buster) using Alpha 8. ~20% CPU load. Buster is up to date (Oct 16th, 2020). This is while no game or emulation station is running. Basic shell after boot.

OBrown92 commented 3 years ago

I can report the same issue with alpha8 on LibreElec. I'm not able to watch prime video without glitches when running hyperionng.

eloo commented 3 years ago

So i've just checked the Haspbian. With a complete fresh installation i still see a high amount of cpu usage.

image

Please mind that i have NOT configured any grabbing or LED hardware yet. This seems pretty high to me for "doing nothing".

I've also tested to disable everything (blackbar detection, internal grabber and so on) but this didn't change the CPU load.

Paulchen-Panther commented 3 years ago

Please deactivate the boot and background effect. I think it's because of the effect engine. Thanks for testing.

eloo commented 3 years ago

@Paulchen-Panther Okay that was a good hint. I've just deactivated the boot and background effects. Result: Boot effect doesn't have an impact on the CPU Load But the background effect has dropped the CPU load to around 6%

So its still a bit more than with the "legacy" hyperion but it feels better. While watching the CPU load increases to 7-9% now . I guess thats pretty fine.

Maybe it would make sense to have a hint in the web ui that the background effect will increase the CPU load .

Thanks

mkrsn commented 3 years ago

Same problem here. hyperiond (2.0.0-alpha.9) eats ~20% from one core while idling. After disabling the boot effects and restarting hyperion the usage drops to ~2% while idling.

When enabling the boot effects and restarting hyperion the load goes to ~20% again. After disabling the boot effects and restarting again the load drops to ~2%. So it is reproducible, each time i enable boot effects the load steps up to ~20% idle usage.

Thanks for the hint