Logic Machine Forum
Load average questions - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: Load average questions (/showthread.php?tid=308)



Load average questions - Sandstrand - 20.05.2016

Hi! 

The load average numbers  I get on one of my LM4s are a bit high at times, usually with peaks of CPU/IO 1.7 1.4 1.2
Usually it ranges from 0.8 to 1.2 with a memory usage of ~20%, will this affect the LM4s operation in a negative way? 

What are the recommended loads and what values should I strive for?


RE: Load average questions - AEK - 20.05.2016

(20.05.2016, 13:43)Sandstrand Wrote: Hi! 

The load average numbers  I get on one of my LM4s are a bit high at times, usually with peaks of CPU/IO 1.7 1.4 1.2
Usually it ranges from 0.8 to 1.2 with a memory usage of ~20%, will this affect the LM4s operation in a negative way? 

What are the recommended loads and what values should I strive for?

thats normal load, you can get peaks when you have a lot of telegrams on knx tp bus. some of our partners have lm with CPU/IO near 7 and it works.Smile

normal CPU/IO is under 2.0


RE: Load average questions - buuuudzik - 20.05.2016

(20.05.2016, 14:33)AEK Wrote:
(20.05.2016, 13:43)Sandstrand Wrote: Hi! 

The load average numbers  I get on one of my LM4s are a bit high at times, usually with peaks of CPU/IO 1.7 1.4 1.2
Usually it ranges from 0.8 to 1.2 with a memory usage of ~20%, will this affect the LM4s operation in a negative way? 

What are the recommended loads and what values should I strive for?

thats normal load, you can get peaks when you have a lot of telegrams on knx tp bus. some of our partners have lm with CPU/IO near 7 and it works.Smile

normal CPU/IO is under 2.0

But if LM CPU load is high constantly LM will auto reboot.


RE: Load average questions - Sandstrand - 24.05.2016

(20.05.2016, 19:11)buuuudzik Wrote:
(20.05.2016, 14:33)AEK Wrote:
(20.05.2016, 13:43)Sandstrand Wrote: Hi! 

The load average numbers  I get on one of my LM4s are a bit high at times, usually with peaks of CPU/IO 1.7 1.4 1.2
Usually it ranges from 0.8 to 1.2 with a memory usage of ~20%, will this affect the LM4s operation in a negative way? 

What are the recommended loads and what values should I strive for?

thats normal load, you can get peaks when you have a lot of telegrams on knx tp bus. some of our partners have lm with CPU/IO near 7 and it works.Smile

normal CPU/IO is under 2.0

But if LM CPU load is high constantly LM will auto reboot.

Good to know! 


Thank you for the replies Smile


RE: Load average questions - cdebackere - 27.05.2016

(24.05.2016, 08:25)Sandstrand Wrote:
(20.05.2016, 19:11)buuuudzik Wrote:
(20.05.2016, 14:33)AEK Wrote:
(20.05.2016, 13:43)Sandstrand Wrote: Hi! 

The load average numbers  I get on one of my LM4s are a bit high at times, usually with peaks of CPU/IO 1.7 1.4 1.2
Usually it ranges from 0.8 to 1.2 with a memory usage of ~20%, will this affect the LM4s operation in a negative way? 

What are the recommended loads and what values should I strive for?

thats normal load, you can get peaks when you have a lot of telegrams on knx tp bus. some of our partners have lm with CPU/IO near 7 and it works.Smile

normal CPU/IO is under 2.0

But if LM CPU load is high constantly LM will auto reboot.

Good to know! 


Thank you for the replies Smile

a load > 1 doesn't mean that the cpu is occupied 100%. For that purpose you have to look at the cpu idle %. 
A load ~1 means that the cpu knows what to do and that there are several processes demanding cpu, and that some might have to wait a little (ms). But typically a load ~1 will still show that the cpu is idle for ~80%, so only occupied for 20%. That's because many of these processes only need the cpu for a fraction of the time.
If you know how to term into the device, then you can use top to see how much idle time is left for the cpu.

read this the get on top : http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

If you have a badly running script, what can happen is that load ~1 and that cpu idle=0%. In that case your lm will be very slow and you should reboot the device. The problem is not always the script itself, but it's interaction with the lm system/drivers. We see this behaviour from time to time if a customer plugs in/out a sms/modem in the usb port. It causes a lot to happen in the background, with renumbering of ports numbers, but sometimes the script will still has an open socket to the old/wrong port. In 99% of the cases that goes well, closing the socket and reopening a new one, but in some rare cases it causes 100% cpu (0%idle)
In such case you can stop/start the script (if you know which one through a top command) or simply reboot the entire lm