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

Plugin not suspending when CPU is in use by non-Boinc application #27

Closed
Jojo-A opened this issue Jun 9, 2024 · 6 comments · Fixed by #28
Closed

Plugin not suspending when CPU is in use by non-Boinc application #27

Jojo-A opened this issue Jun 9, 2024 · 6 comments · Fixed by #28

Comments

@Jojo-A
Copy link

Jojo-A commented Jun 9, 2024

Hi,
as the title says the plugin and thus the CPU usage is not suspending when another non-Boinc process is running.

I used the same work preferences through BAM for different clients. This one with the plugin in HA is the only one that is not suspending work when CPU gets loaded.
I verified that on two ways:

  1. started a high-CPU-usage process and checked the logs in the plugin. On my other clients the logs tell you when the CPU gets occupied by another process - not in this case.
  2. started the very same high-CPU-usage process once with the plugin running and once with the plugin deactivated. Result: the process gets finished much earlier when the plugin is deactivated.

In this constellation this is really an issue, because each time when HA requires some more resources it becomes quite laggy very slow because the plugin does not suspend :/ .

As said, I use the very same work preferences on multiple clients. The CPU threshold is set very low to 10% and gets fetched correctly by the plugin.
So for me it seems as if the plugin has no access the the CPU usage, so it maybe does not know about the actual CPU load? Maybe a matter of permissions?

@hectorespert
Copy link
Owner

Thanks @Jojo-A for report the issue

started a high-CPU-usage process and checked the logs in the plugin. On my other clients the logs tell you when the CPU gets occupied by another process - not in this case.

How do you run that process? To try to reproduce it

@Jojo-A
Copy link
Author

Jojo-A commented Jun 10, 2024

Thanks @Jojo-A for report the issue

started a high-CPU-usage process and checked the logs in the plugin. On my other clients the logs tell you when the CPU gets occupied by another process - not in this case.

How do you run that process? To try to reproduce it

Hi,
yeah, thats relatively easy. I just compiled an ESPhome project. This is what usually loads the CPU by 100%. Depending an the Project it takes a couple of minutes. But also other background tasks like creating backups or so should definitely load the system by more than 10% (which is my current threshold). I am running on an aarch64 system.
There is nothing else installed on the system but HAOS.

@hectorespert
Copy link
Owner

Hi @Jojo-A

Could you please verify if the new version fixes that issue in your installation?

@stiltjack
Copy link

stiltjack commented Oct 26, 2024

I also have this issue. Before the update the plug-in was running at 25% of CPU (as defined in Science United). Now it's running at 100%. I see no way to control this in the configuration. I'm using the new version 2.0.0

@hectorespert
Copy link
Owner

@stiltjack Thanks for report the issue

If you need to limit the CPU usage you can define a global_preferences_override.xml file in the addon config folder.

@stiltjack
Copy link

Thanks. Uninstalled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants