Updating ESPHome devices causes 100% cpu

Updating ESPHomefrom 2024.12.0 to 2025.2.1

Why on earth is this happening… Considering the update should take place on the device (this is the Olimex POE), and not on the HA host itself, would this be a HA issue?

note this Not an an RPI2… it’s a miniPC with plenty of Memory and Disk as you can see, but it is overtasking the Celeron (admitted not the largest available…) processor.

Or, are we expecting this to be regular behavior. In which case I have to rewrite alerting automations to not be triggering an alert the updating ESPHome devices.

Have a look at compile_process_limit:.

  • compile_process_limit (Optional, int): The maximum number of simultaneous compile processes to run. Defaults to the number of cores of the CPU which is also the maximum you can set.’

Setting a value there that is less than the total number of cores can stop it being so aggressive on compile.

1 Like

thanks, but I have no clue as to what we could set it to…
this is the setting in the Dashboard I take it, but there is no further info on the actual device as far as I can see, not would I know how to get to that info…

btw, would this only apply if we update from within the Dashboard, or also when we click the update button on the Update entity (I show in the opening post)

You can set it in each yaml file, thus it would apply regardless of where the update is run from. See the link I posted.

Try setting it to 1 and see whether your compiles run fast enough.

ok will do, and wait for the next update :wink:
wouldn’t there be some sort of generic advice per type of device (processor)? I did a quick search in the ESPHome web pages but nothing I could find so far

I haven’t seen one, but I have seen this option discussed in the forums so maybe someone will chime in… :smiley:

Well, i have my HA on Intel nuc skull canyon with i7 8-core cpu and 32 GB of ram and it spikes up above 80% (near 90%) when compiling, so i’d say 100% on celeron is quite normal. It’s CPU intensive process, i guess. Nothing to be worried about, though, since it’s only short-term load.

Another option is to do the compiling (either for a version update or for any other change you make) on another machine.

I installed the ESPHome Command Line on my laptop, which is where I typically do my updates from anyway. No sense getting the production HA machine in the middle of that development work anyway.

yes, that makes sense, I’ll look into that, ESPHome in Docker on the MacOs Laptop…
otoh, it doesnt get easier with that.
Guess Ill try to limit the updating as much as possible, and actually check what was added/changed even more than before.