Home assistant take 100 % of ressource

Hello,
From one or two version, H.A take 100 % of ressource.
I see it with htop from the console of the system and from Glances, it take 102% !

Here is what I can see with Glances:
homeassistant 111.9% mem 2.04G
addon_a0d7b954_glances 7.0 %, 92.2M
addon_a0d7b954_nut 5.1 % 98.7M
addon_core_ada 1,5 % 77,4 M
hassio_supervisor 0,4% 4,2 G

How can I reduce the ressource taked by H.A ?

Just for info, in the config.yaml, I have following values for the recorder:
recorder:

purge_keep_days: 62
 exclude:
   entities:
      - sun.sun # Don't record sun data
      - sensor.last_boot # Comes from 'systemmonitor' sensor platform
      - sensor.date

Many thanks for your help, the fan is allways running !

Regards

What machine are you running Home Assistant on?

Also, what install method of Home Assistant are you using?

The machine is a nuc intel i9 16 Go RAM SSD, very new.
Ubuntu 20.04 Docker.

Thanks for your help

You could have some templates that you haven’t fixed after the changes in (I think) 0.115

An i9, or a 9th gen NUC?

As I understand it, HTOP reports CPU% usage in relation to the power of 1 thread/core (like many other Linux CPU usage reporting tools), i.e if your task takes up 200% CPU then it’s occupying two cores to their maximum.

It depends on the CPU in your NUC, but for example if you had a 9th gen NUC with the i7-9850H processor, that’s a 12 thread processor, so the CPU % will max out at 12000% according to HTOP (all 12 threads occupied 100% of the time). So 100% CPU usage according to HTOP is only ~8% of maximum utilization of the system as a whole.

This could still be high, depending on if it was much lower before and this is a recent occurrence.

Are you noticing slowdowns or performance issues?

1 Like

Hello,
The machine is a I9 9980.
The fan is working nearly all the time.
I think it is not normal…

Is that a means to estimate wich process / functionality take a lot of ressource ?

Many thanks for your help.
Nest regards

Hello,
Thanks for your reply.
Effectively I don’t do any update even the version of H.A.

Wich kind of template must I change to restore the normal charge of the machine ?

Best regards
Thierry

What version are you on now?

Version 247

Yeah that is a 16 thread CPU. So 111.9/16 = 7% of CPU resources used.

Having said that, I too have noticed strange temperature increases on my system. A restart will instantly drop the temperature by 5 to 10°C. It is not tied in with excessive CPU use, profiler and py-spy failed to reveal any issue. Monitoring the core, supervisor and addon resources has also revealed no culprit. Really very odd.

of home assistant I mean.

Ho I restarted h.a and it will fix the issue.
I saw before restart two process of home assistant…

Best regards
Thierry