High CPU usage with two specific widgets (Log widget & Network Widget)
TheEngineerGuy opened this issue · 7 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.
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?
- Using hb-service?
Raspberry Pi Model
Raspberry Pi 4 B
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.
Not stale.
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.
Still active.
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.
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%.
This is awesome to hear 👏