Page 1 of 1

new smart meter, high CPU?

Posted: Wednesday 03 May 2023 10:37
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

Re: new smart meter, high CPU?

Posted: Wednesday 03 May 2023 14:24
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

Re: new smart meter, high CPU?

Posted: Wednesday 03 May 2023 14:37
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.

Re: new smart meter, high CPU?

Posted: Thursday 04 May 2023 9:06
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?

Re: new smart meter, high CPU?

Posted: Thursday 04 May 2023 9:12
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.

Re: new smart meter, high CPU?

Posted: Thursday 04 May 2023 9:58
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?

Re: new smart meter, high CPU?

Posted: Thursday 04 May 2023 18:13
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.