new smart meter, high CPU?

Moderator: leecollings

Post Reply
PierreT
Posts: 52
Joined: Wednesday 03 May 2023 10:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

new smart meter, high CPU?

Post by PierreT »

Hi,

I received a new smart meter and I'm noticing CPU usage being a lot higher than it was with the old meter. I already set the rate limit to once every ten seconds but I think this only affects the number of entries written to the database and does not actually stop processing of the reports that come in every second now?

PierreT
User avatar
FireWizard
Posts: 1967
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: new smart meter, high CPU?

Post by FireWizard »

Hi,

See the discussion at Github: https://github.com/domoticz/domoticz/issues/5677,

Perhaps you will find an indication, that will help you.
In my case my RPi2, with Smart meter, with ESMR 5 protocol and setting of 10 seconds, never exceeds 6% CPU load.

Regards
Last edited by FireWizard on Wednesday 03 May 2023 14:50, edited 1 time in total.
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: new smart meter, high CPU?

Post by waltervl »

If you have Domoticz scripts that are triggered by updates of P1 Meter devices the new high update frequency due to the new meter could introduce i higher CPU load.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
PierreT
Posts: 52
Joined: Wednesday 03 May 2023 10:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: new smart meter, high CPU?

Post by PierreT »

FireWizard wrote: Wednesday 03 May 2023 14:24 Hi,

See the discussion at Github: [Disallowed quote?],

Perhaps you will find an indication, that will help you.
In my case my RPi2, with Smart meter, with ESMR 5 protocol and setting of 10 seconds, never exceeds 6% CPU load.

Regards
Thanks, but that seems to be about different hardware, wifi plugs pretending to be P1?
PierreT
Posts: 52
Joined: Wednesday 03 May 2023 10:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: new smart meter, high CPU?

Post by PierreT »

waltervl wrote: Wednesday 03 May 2023 14:37 If you have Domoticz scripts that are triggered by updates of P1 Meter devices the new high update frequency due to the new meter could introduce i higher CPU load.
Thanks, that sort of proves my suspicion that Domoticz is still doing something with the incoming report from the meter. I don't have any scripts running on the P1 that I'm aware of though.
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: new smart meter, high CPU?

Post by waltervl »

PierreT wrote: Thursday 04 May 2023 9:06
FireWizard wrote: Wednesday 03 May 2023 14:24 Hi,

See the discussion at Github: [Disallowed quote?],

Perhaps you will find an indication, that will help you.
In my case my RPi2, with Smart meter, with ESMR 5 protocol and setting of 10 seconds, never exceeds 6% CPU load.

Regards
Thanks, but that seems to be about different hardware, wifi plugs pretending to be P1?
The root cause of the issue was that the P1 Meter in latest beta got extra functionality. New smart meters sends data every 1 second so that overloaded the RPi causing MQTT to stutter if the refresh time was too low.
What if you set the refresh time of P1 Smart meter to 60 seconds? Will your CPU drop?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
PierreT
Posts: 52
Joined: Wednesday 03 May 2023 10:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: new smart meter, high CPU?

Post by PierreT »

No change :(

Honestly didn't expect any. That rate limit thing seems to be purely cosmetic. Guess my little machine is too underpowered to handle this which is a shame because Domoticz was the only home automation system that I managed to get running on it decently.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest