-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
higher CPU usage with 2022.12.X caused by a "python3" process #83845
Comments
I can confirm that cpu usage is now higher than in 2022.11.x releases. |
Can you generate a profile to see where the time is being spend? https://www.home-assistant.io/integrations/profiler |
Oh nice tool, @balloob ! Ok, I installed the Profiler integration, and ran the service for 60 seconds. Here are the files it generated. I changed the extension to txt so I can upload it here. If there is any sensitive information in, please let me know and I will remove it. thank you. profile.1670862529728020.cprof.txt |
@Anto79-ops There's nothing sensitive in the files. Could you collect a profile during also with Home Assistant 2022.1, where you don't see the issue? |
@emontnemery no problem sure. Could you tell me how to downgrade to 2022.12.1? I've never actually done this before. Thanks |
@Anto79-ops Use an SSH or web terminal and run the following command:
(please note, this command should not be used to downgrade to other major versions, jumping patch versions should be fine). |
thanks @frenck for the instructions and disclaimer for using the downgrade option! Good news, after successfully downgrading to 2022.12.1, my CPU usage goes back to normal (i.e. between 14 and 18%), as shown here at the green dot in the CPU trace. I waited about 15 minutes to collect the profile trace, and here are those files. Hopefully something comes out at you @emontnemery thanks again for looking into this. callgrind.out.1670875369047342.txt |
Thank you very much all! I upgraded to 2022.12.4 last night (8 hrs ago) and my CPU is back to normal levels! Cheers |
The problem
Hello all,
Since updating to 2022.12.2 I've noticed an increased CPU usage by about 8 to 12%. Glances tells me is its python3 process here:
and this is my CPU trace for the last couple of days. Please ignore those spikes in CPU in the red section. Those are FW updates to my ESP32 boards via ESPhome and not related to reported issue. The issue here starts in green section of the CPU trace, the constant elevated background CPU usage around 30%.
At first, I thought it was related to this issue, but I did not notice a leak and I only have Nest cameras and a generic camera for my Fully Kiosk FireTab HD10.
I did not add:
The higher CPU usage started immediately after restart to 2012.12.2 from 2012.12.1 Shutting down the system for a few minutes and rebooting does not solve the issue either.
Running Raspberry Pi 4B, 4Gb.
What version of Home Assistant Core has the issue?
2022.12.3 and 2022.12.2
What was the last working version of Home Assistant Core?
2022.12.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
core
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homeassistant/
Diagnostics information
see photos above
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: