Could there be anything happening on the proxmox side that could be impacting the resources available to HA.
Also, for the glances info, if after starting the glances UI, click on the glances window & press ‘z’ to list all processes to see a more detailed breakdown of what HA is doing.
The firsts picture is off the expanded view, so it is some python in the home assistant container that seems to cause it.
What does the Home Assistant Core, Supervisor and Host logs say?
You might be able to use this during the excess use events:
I have no idea how to interpret its output though. There’s a topic about it and Py-Spy where one of the devs will look at it for you if you ask. I’ll see if I can find it.
I have basically the same problem. python3 spikes to 100% in the homeassistant container and it’s a mystery what exactly is causing it. This has persisted across a move from an RPi3 to VMWare so it’s not a hardware-specific issue.
As you point out py-spy doesn’t work with 3.12. The Profiler might work but seems like overkill just to find out what’s causing this.
Maybe if I list my integrations and add-ons, readers of this can find the intersection of all of those with their setup and that will be the culprit. One I suspect is the nmap tracker because once during this occurrence, I was doing top or ps or something and saw “nmap”. But perhaps that’s a red herring.
Ambient Weather
Android Debug Bridge
Blue Iris
Broadlink
Emporia Vue
Ge Home
Google Nest
HACS
IPP
Lutron Caseta
Mobile App
MQTT
Nmap Tracker
OpenWeatherMap
Pushover
Radio
Roku
Scheduler
Sun
TP-Link Smart Home
TUya
Upnp
Well, in my case it disappeared mysteriously as it appeared.
I disabled all add-ons, native and from HACS. The plan was to enable few at a time, until the culprit was found. The issue remained with everything off, so I re-enabled all of them, and decided to live with it untill I had a chance to re-install everything from scratch.
Next day, the problem was gone, and my CPU usage dropped from 20% when idle, to 4%.
That was before the 2024.3 update, and it still behaves as it should.