-
Notifications
You must be signed in to change notification settings - Fork 605
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
CPU usage spikes every 5 minutes #3567
Comments
Same here, although it's not so much CPU spikes bothering me, but the fact, that Supervisor checks for new updates every five minutes (as I can see from the log, it's the same in your case). That was asked/mentioned on the forum, but noone knew what's it all about. Is it really necessary for Supervisor to check for updates so often (once or maybe twice per day seems enough to me)? |
I don't think it's checking for updates as that was done before 2022.4 without the every 5 minute checks. I think this is determining if the add-ons, etc running on the system are the official versions (Content Trust feature). I'm not sure why this would need to be done every five minutes though. It seems like at system startup and maybe updates would be good times to run the check. Perhaps I'm not fully understanding the issue. |
No its checking for updates. I'm trying to figure out why now. Doesn't make sense because here's our timings for update and reload tasks supervisor/supervisor/misc/tasks.py Lines 22 to 34 in 8c528f7
You can see they're all like multiple hours. Something is speeding it up and I'm trying to find out what. |
It looks like its the hassio component in core It must be calling an API every 5 minutes that is triggering an update check |
As a temporary mitigation I’ve disabled “Enable polling for updates” on the Supervisor integration which seems to have quietened things down. |
So, can we (plain users) do anything about it? Or we just wait for it to be fixed in the core? |
@AdmiralStipe you could try disabling the hassio integration I suppose but that might have other problems, not sure. Unfortunately it's poll time isn't configurable currently. However a PR has been opened in core to address this home-assistant/core#70075 . So it should be resolved in the next patch. |
@mdegat01, great, thx, I will manually update the hassio files from the PR for testing in advance. |
Just FIY to anyone affected by this issue: I replaced the file from the mentioned PR in my local HA isntance and it works - no more 5 minute checks / CPU spikes. |
Unfortunately this did nothing for me. I'm still at 90%+ CPU usage on a NUC. Hope the patch hits soon, as this is affecting some sensors with delays. |
FYI 2022.4.5 out now with the mentioned fix for the hassio component |
Yes, just installed it 30 minutes ago and the spikes have disappeared. Thanks |
Describe the issue you are experiencing
Typically my Rpi 4b w/ 4G runs at around 3-4% load. When I upgraded to 2022.4, while the typical load was still 3-4%, I was seeing 10-12% spikes every 5 minutes that seems to correspond with the supervisor.store.git activities listed in the supervisor log. I’m guessing this is the Content Trust checking versions. Is that correct? Is there something wrong with my configuration that is causing such large usage spikes? I've seen nothing in the forum about this and I wrote in the 2022.4 blog topic in the forum but received no comments.
What is the used version of the Supervisor?
2022.04.0
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
What is the version of your installed operating system?
7.6
What version of Home Assistant Core is installed?
2022.4.3
Steps to reproduce the issue
...
Anything in the Supervisor logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: