Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU load (RPI3B+) #1013

Closed
1 task done
eloo opened this issue Sep 17, 2020 · 10 comments · Fixed by #1181
Closed
1 task done

High CPU load (RPI3B+) #1013

eloo opened this issue Sep 17, 2020 · 10 comments · Fixed by #1181

Comments

@eloo
Copy link

eloo commented Sep 17, 2020

  • I confirm that this is an issue rather than a question.

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
Copy link
Member

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

@eloo
Copy link
Author

eloo commented Sep 17, 2020

@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
Copy link
Member

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
Copy link
Member

Paulchen-Panther commented Sep 24, 2020

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
Copy link

jueank commented Oct 17, 2020

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
Copy link

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

@eloo
Copy link
Author

eloo commented Nov 22, 2020

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
Copy link
Member

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

@eloo
Copy link
Author

eloo commented Dec 5, 2020

@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
Copy link

mkrsn commented Jan 17, 2021

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

Lord-Grey pushed a commit that referenced this issue Feb 23, 2021
EliteScientist pushed a commit to EliteScientist/hyperion.ng that referenced this issue Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants