homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.59k stars 369 forks source link

High CPU usage with two specific widgets (Log widget & Network Widget) #1960

Closed TheEngineerGuy closed 3 months ago

TheEngineerGuy commented 6 months ago

Describe The Bug

On my RPi 4, CPU, Memory, Status, uptime, sys info, QR code and Weather widgets combined hit 1% CPU usage, which is quite efficient.

However, the moment I enable Logs widget and network widget, they take additional 5% CPU. I am not sure what is so heavy in these widgets' operations to tax the CPU 5 times as much as all the other widgets combined.

Please see the screen shot below. As a side note, all other widgets (listed above) which have 1% combined CPU usage were active throughout, only log and network widgets were toggled to exhibit this observation.

Screenshot 2023-12-30 at 9 58 04 PM

Let me know if you need any additional info, but I think this should be easy to reproduce.

Logs

No response

Config

No response

Homebridge UI Version

v4.54.1

Homebridge Version

v1.7.0

Node.js Version

v20.10.0

Operating System

Raspberry Pi OS / Raspbian

Environment Info

Raspberry Pi Model

Raspberry Pi 4 B

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

TheEngineerGuy commented 5 months ago

Not stale.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

TheEngineerGuy commented 4 months ago

Still active.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

TheEngineerGuy commented 3 months ago

Recent GUI updates seem to have reduced the CPU overhead from these widgets. Now the CPU usage with all widgets enabled, (including network and logs), hovers around 2%.

bwp91 commented 3 months ago

This is awesome to hear 👏