High CPU utilization -> temporary

Hello together.

I hope you can help me at the following problem. First, regarding the installation:

My HA is installed on Proxmox as a virtual machine: 8GB RAM / 40 GB HDD. For some time now, I have noticed that the CPU load, which can be seen both under Proxmox and under Home Assistant, occasionally spikes significantly.

Unfortunately, I don’t have a good starting point for where to look. The error log does not provide any direct clues.

Has anyone else noticed this? Can you give me some tips on where I could look? At the moment, I’m a bit at a loss.

Thanks a lot for your help.

Ronny

Does it impact anything at all? If not I wouldn’t think about this, a small period of time at 20% and a single spike at 40% isn’t worrying.

2 Likes

Hello @fleskefjes.

Thanks for your reply.

No. But I also have a spike of network activities. See here:

CPU2

I think, thats not normal, isn’t it?

I would have expected increased activity during nights on backup times, but you do not seem to have those. At what times are backups scheduled, and do these get uploaded to e.g. Nabu Casa or a NAS? If you do not backup to anything or only to SD, that would be way more worrysome.

2 Likes

Thank you also to you. No, I haven’t any planned backups. And I also haven’t a Nabu Casa Account.

In adguard I cann’t see anything potentially dangerous:

checkonline.home-assistant.io

googleapis.com

mobile-apps.home-assistant.io
stun.home-assistant.io

And also my OpnSense shows nothing dangerous. Only internal IPs and Adguard. But what I can see, thats Home Assistant contact the following ARPA addresses:

xxx.60.0.10.in-addr.arpa

But why do Home Assistant that??? I have in this VLAN only 3 valid addresses.

I would be more worried by this if I were you :slight_smile: Always do backups!

2 Likes

Thank you for your hint. :wink: The sensor data are stored in a MariaDB outside of HA in a separate LXC Proxmox Container. Each container or VM in Proxmox will be backuped each week. And before each Update in HA I always make a backup on my Synology DS918+.

I think it works very well. :+1:

I think, I found the problem: I use the Reolink integration and have also a dashboard with picture overview card. We my wife or I use this dashboard, which shows the camera live view, the CPU raises up. Any idea for making it better???

in-addr-arpa addresses are for reverse-DNS, which means IP to hostname lookups.
Some integrations and addons do those lookups and there is nothing dangerous in it.
I think some integrations/addons might be using it as a sort of discovery method.

1 Like

First my day job used to be a performance engineer.

Are you actually seeing any issues magnifying glass to your chart

That graph shows a machine idling at best. You don’t have an issue. It’s single digit mostly of the time and ten to fifteen in a burst. That’s normal use of an idle box. There was one high pop and it lasted for nearly no time. Unless the machine froze during that one spike

Machines are ‘spiking’ when they jump and sustain utilization at an abnormal level that impacts performance. Your machine is simply responding to a request and handling it and clearing it out

The reason I bring this up is… As a perf guy I don’t see anything here’s concerning… Hell I don’t even concern myself with a machine less than 50% loaded if there’s no apparent latency…

If the box isn’t doing anything weird I’d leave it alone… If you spend your time chasing anomalies like this forever you’ll never actually use the thing. So is it actually acting up?

1 Like

Also thanks to you, for your help and reply. When I have two cams and the network throughput of 2 MB bringt a 4 core VM in Proxmox up 30-50% of utilization, I like to fix it a little bit. :wink:

I completly understand your points of sight, but when I sit here nearby my MiniPC with Proxmox and get some wind by the fan, it isn’t so nice :joy:.

Nevertheless I will try to change the configuration a little bit, so the that the cam stream on Dashboard will doesn’t requires so much CPU load.

Thank a lot to all, for helping me and have a nice weekend.

Don’t bother until it’s over 70% sustained. You have nothing to fix here.

Thanks to all for helping me. I have changed the resolution on dashboard from high definition (2560x1440 // 20FPS // 2048 Bitrate) to standard fluent (640x480 // 15FPS // 512 Bitrate).

For the dashboard perfectly adequate. So my CPU don’t raise up higher than 5% CPU usage. Perfekt for me. If I need a higher resolution, I will find another way, with popup or something.