CPU Limitation

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

CPU Limitation

Post by SolarFlor »

How many devices you have been able to control with your raspberry?

I have z-way running on a rasp together other softwares to monitor energy production and consumpion.
When Z-Way is running the CPU goes from 30% to 80% and I have only few sensors (3 plugs and a sensor motion).
I'm worried my Rasp cannot manage so many devices.

What is your experience about?
User avatar
kambis
Posts: 36
Joined: 23 Jun 2014 08:06
Location: Germany
Contact:

Re: CPU Limitation

Post by kambis »

This might not be dependent by the number of the devices. You must be aware of how many tasks you are running simultaneously. Active modules and the number of active automation-roles will have definitely an impact.

I'm using htop for monitoring my RPi CPU. If you don't have it, here you can get it:

Code: Select all

sudo apt-get install htop
I have a Network with 11 devices connected, but not much automation stuff running yet. The CPU is almost 75% free.
20140701 - RPi CPU usage.png
20140701 - RPi CPU usage.png (25.07 KiB) Viewed 11008 times
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: CPU Limitation

Post by SolarFlor »

thanks
in fact I'm enjoying to test some rules in Automation. What is the difference between htop and top?
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: CPU Limitation

Post by pofs »

PoltoS has about 30 devices, I believe. But not sure if he's running on Raspberry :)

CPU usage actually doesn't depend on number of devices. Impact from running an internal worker thread is minimal. It is usually JS/HTTP stuff making all that load. So make sure you don't have some heavy JS scripts running.

We're currently reworking JS core almost from scratch.
Now running on my MacBook Air, Z-Way + Blue UI + HA + proxying two camera streams (yes, it will be possible to watch your webcameras through find.z-wave.me), it takes about 2% CPU. Shouldn't take much more on Raspberry.
User avatar
kambis
Posts: 36
Joined: 23 Jun 2014 08:06
Location: Germany
Contact:

Re: CPU Limitation

Post by kambis »

htop gave me more details than top and is in my eyes more well organized in showing the data.
Look in the column CPU% to find out which process is consuming your CPU resources.
You can check this in htop easily.
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: CPU Limitation

Post by SolarFlor »

pofs wrote: We're currently reworking JS core almost from scratch.
Now running on my MacBook Air, Z-Way + Blue UI + HA + proxying two camera streams (yes, it will be possible to watch your webcameras through find.z-wave.me), it takes about 2% CPU. Shouldn't take much more on Raspberry.
You mean that you are working on a new version that is minimising the CPU utilization?
It would be fantastic.
SolarFlor
Posts: 261
Joined: 22 Mar 2014 15:23

Re: CPU Limitation

Post by SolarFlor »

kambis wrote:htop gave me more details than top and is in my eyes more well organized in showing the data.
Yes, I downloaded it just now
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: CPU Limitation

Post by pofs »

SolarFlor wrote:You mean that you are working on a new version that is minimising the CPU utilization?
Well, let's say we're working on it not because of CPU utilization, but complete rewrite might be a good way to get rid of old bugs.

There will be enough changes to name it 2.0, not 1.8 :)
Including (spoiler alert!) native modules, server push (via websockets), pass-thru proxy, black-jack and hookers. I just hope it wouldn't crash somewhere in a bloody brutal way :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: CPU Limitation

Post by pz1 »

pofs wrote:PoltoS has about 30 devices, I believe. But not sure if he's running on Raspberry :)
My system has 15 physical devices at the moment: 8 miscellaneous switches, 5 StellaZ, 1 Fib Universal Sensor, 1 Aeon Range Extender. These result in 35 Widgets one of which is the virtual device created by the battery polling module.
With top command z-way-server running average around 4-5% with shorter peaks up to 90%.
An OpenRemote controller on Synology DS212+ makes frequent polling requests to these devices. Call intervals range from 1s for switches to 16 minutes for the Thermostatic Radiator valves. In the end I expect to have some 50 physical devices. Remains to be seen how well that goes together with some automation modules I intend to move from The OpenRemote controller to Z-Way server...
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply