homebridge-config-ui-x icon indicating copy to clipboard operation
homebridge-config-ui-x copied to clipboard

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

Open TheEngineerGuy opened this issue 1 year ago • 2 comments

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

  • [ ] Using Docker?
  • [ ] Using Hyper-V?
  • [X] Using hb-service?

Raspberry Pi Model

Raspberry Pi 4 B

TheEngineerGuy avatar Dec 31 '23 05:12 TheEngineerGuy

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.

github-actions[bot] avatar Jan 31 '24 11:01 github-actions[bot]

Not stale.

TheEngineerGuy avatar Jan 31 '24 14:01 TheEngineerGuy

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.

github-actions[bot] avatar Mar 02 '24 11:03 github-actions[bot]

Still active.

TheEngineerGuy avatar Mar 02 '24 15:03 TheEngineerGuy

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.

github-actions[bot] avatar Apr 03 '24 11:04 github-actions[bot]

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%.

TheEngineerGuy avatar Apr 03 '24 19:04 TheEngineerGuy

This is awesome to hear 👏

bwp91 avatar Apr 03 '24 20:04 bwp91