Posts: 45
Threads: 14
Joined: Aug 2021
Reputation:
0
Hi,
I would like to be able to add the performance metrics of wiser (CPU/memory/KNS-bus utilization) to the trends so I could see the charts related to them - is there a way to achieve it?
Thank you!
Morkov
Posts: 4956
Threads: 28
Joined: Aug 2017
Reputation:
226
------------------------------
Ctrl+F5
Posts: 45
Threads: 14
Joined: Aug 2021
Reputation:
0
I guess it's not correct to include it because the load is not in the actual KNX bus / TP
Also I wonder if using telegram counting is the most correct way to establish the load - please correct me if I'm wrong, but it seems like in the case of TP the limitation is the bandwidth rather than the 'telegram rate', and due to different telegram sizes the maximum rate of telegrams/sec could alternate between 20-40 or so. In the Wiser (and I guess LM) UI the rate is used to establish the load, with a assumed maximum of 30 telegrams/sec - which could be wrong.
Seems like it be more accurate to look a the RX/TX/Repeat bytes instead of telegrams, knowing the maximum is 9.6 kbits/s - this way we could establish and display a 100% accurate KNX bus load with no assumptions.
Would be nice for the bytes stats to be exposed in knxlib.getstats()
Thank you!
Morkov
Posts: 8095
Threads: 43
Joined: Jun 2015
Reputation:
471
The current stats are good enough for most cases as usually telegrams contain not more than 2 bytes of data. What is the point of 100% bus load statistics?
Posts: 8095
Threads: 43
Joined: Jun 2015
Reputation:
471
This example is not fully correct. First, repeats are already included in the received telegrams counter. Second, 30 telegrams per second is too high.
Anyway it's not trivial to calculate the real bus load. Apart from data telegrams there are also short ACK/NACK/BUSY frames and a specific free time between the telegrams. It's not a simple serial interface where the baudrate defines the throughput.
Posts: 45
Threads: 14
Joined: Aug 2021
Reputation:
0
30.08.2021, 13:49
(This post was last modified: 30.08.2021, 13:49 by morkovka.)
Well in the statistics I screenshotted above there was a total of 1 TP repeat so it doesn't account for 11% deviation between the script load and the UI load calculation.
About the 30 telegrams per second - this is the assumption that the UI makes (and also my script) - in the last minute it shows:
TP RX (92) + TX (58) + IP RX (0) + IP TX (150) / divided by 60 seconds / divided by the "TP Load" of 16.67% == 30 seconds assumption
(92+58+150)/60/16.67 = 0.299...
This means the current user interface makes the same assumption: that there are 30 telegrams per second. And it also proves that it uses the IP statistics (RX/TX) in the calculation of the TP load - which is a mistake.
Thank you!
Morkov
Posts: 1794
Threads: 6
Joined: Jul 2015
Reputation:
120
30.08.2021, 17:29
(This post was last modified: 30.08.2021, 17:31 by Erwin van der Zwart.)
Well in my opinion you should not have this at all, if you continuously need to monitor the busload like this it means you are always on the limit of the bandwidth…
In my honest opinion the busload only needs to be checked when issues might surface after initial deployment and a short monitoring should tell you where it goes wrong, if you need to monitor full time your (TP) architecture needs to be changed if you ask me..
Anyway that is my 50ct..