Arbuzov / hass-broadlink-ac-mqtt

Home Assistant broadlink MQTT addon repository
Apache License 2.0
30 stars 7 forks source link

Issue with CPU consumption #8

Closed balkonrad closed 1 year ago

balkonrad commented 2 years ago

Hi, thanks for you hard work. Plugin work like a charm but I have noticed big CPU consumption. Take a look:

image

Can you check what the problem is?

oopiicaa commented 2 years ago

Anything special in the Log tab of the add-on?

balkonrad commented 2 years ago

Only that kind of messages s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification) s6-rc: info: service legacy-services successfully started Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor... (200, ('192.168.1.103', 80)) Stopping Starting Monitor...

balkonrad commented 2 years ago

and.... almost in the same time:

image

This is constant - I'm not observing any changes when it comes to this consumption %.

oopiicaa commented 2 years ago

Sorry, I don't understand - is high CPU usage constant or not? Or does it spike at one point and stays high?

balkonrad commented 2 years ago

High CPU usage is constant from my observations. It jumps up to 45% immediately after starting and doesn't drop even after 5 minutes.

balkonrad commented 1 year ago

Closed - new version of HA Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3

seems to fix this problem.