-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaomi Multimode Gateway 2 high CPU load_avg #1420
Comments
You can use telnet to enter gateway's shell and run |
This is main gateway's application. I'll check my gateway when I have time. |
I appreciate! |
Maybe it's default behaviour. Better to check situation when integration haven't make any changes with gateway after reboot. Only open telnet. |
It can be unique issue only for model 2. |
This is my gateway:
mha_master - 0% load |
The issue is simple to fix: turn off z3 support in the openmiio_agent and make sure that mZ3GatewayHost_MQTT is never running. Remove the string "z3" from here: https://github.com/AlexxIT/XiaomiGateway3/blob/master/custom_components/xiaomi_gateway3/core/shell/const.py#L2 |
Thank you for your solution, but 'mZ3GatewayHost_MQTT' only consumes a small amount of CPU load ,and the ‘mha_master --log-level 6 --background’ consumes a lot of CPU load. Are you sure there is a correlation between them? |
I'm also don't see any correlation. Previous gateway has similar bug. It was because integration restarts MQTT on public port. And sometime main app starts consume a lot of CPU after that. The solution was - restart this main app. I thought this gateway model not affected. mha_master is main app |
Try it, mha_master is what goes haywire if the mZ3GatewayHost_MQTT is always restarting. Ever since I fixed this, there is no excessive CPU usage on my gateway. |
If possible, could you please provide your Gateway model, Gateway firmware version, Gateway3 version, and the CPU load? I will try it when I have time. |
After upgrading the Multimode Gateway 1 to Multimode Gateway 2, during a routine inspection, it was found that the CPU load_avg of Multimode Gateway 2 was abnormally high: 9.29|9.15|9.17|2/130|1796 (according to the document, this value should be less than 3). And this gateway has only 25 sub devices.
However, this device did not show any unnormal operation and there were no error logs.
Multimode Gateway 2 Firmwares: 1.0.7_0021 (I have the key)
Gateway3 version: v4.0.5
Home Assistant Core: 2023.12.3
PS: It's interesting that I have a Multimode Gateway 1 in another house, but its load is within the normal range.(2.84|2.73|2.74|1/102|29388)
The text was updated successfully, but these errors were encountered: