Commit 660a9ae0 authored by Joanne Hugé's avatar Joanne Hugé

Fix min being always 0 and add RTT measure

parent 66c56024
......@@ -350,7 +350,7 @@ class MeasureSet:
enumerate_prop = list(enumerate(prop))
self.max.append(max(list(map(lambda x: (x[0] - self.middle) if x[1] else 0, enumerate_prop))))
self.min.append(min(map(lambda x: (x[0] - self.middle) if x[1] else 0, enumerate_prop)))
self.min.append(min(map(lambda x: (x[0] - self.middle) if x[1] else self.max[-1], enumerate_prop)))
sum_prop = sum(prop)
......
......@@ -18,9 +18,9 @@
Metadata | Min | Max | Avg | Var
------------------- | ------------------- | ------------------- | ------------------- | -------------------
**board, duration** | **wake-up latency** | **wake-up latency** | **wake-up latency** | **wake-up latency**
Slate, 21h22 | 0.0000us | 65.0000us | 21.2779us | 4.7291us
Emerald, 21h22 | 0.0000us | 112.0000us | 19.5352us | 4.0545us
Onyx, 46h | 0.0000us | 72.0000us | 20.5580us | 3.9283us
Slate, 21h22 | 14.0000us | 65.0000us | 21.2779us | 4.7291us
Emerald, 21h22 | 14.0000us | 112.0000us | 19.5352us | 4.0545us
Onyx, 46h | 14.0000us | 72.0000us | 20.5580us | 3.9283us
![alt text](graphs/cyclictest_wake-up_latencywake-up latency.png "cyclictest_wake-up_latency Graph")
......@@ -31,9 +31,9 @@ Onyx, 46h | 0.0000us | 72.0000us | 20.5580us
Metadata | Min | Max | Avg | Var
---------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -----------------------------
**board, i, duration** | **user_space - kernel_space** | **user_space - kernel_space** | **user_space - kernel_space** | **user_space - kernel_space**
Onyx, 100000us, 0h17 | 0.0000us - 0.0000us | 12.0000us - 145.0000us | 2.3099us - 51.8681us | 0.2716us - 56.2809us
Slate, 1000us, 1h00 | 0.0000us - 0.0000us | 12.0000us - 222.0000us | 2.0360us - 36.6218us | 0.0493us - 9.1563us
Slate, 1000us, 0h2 | 0.0000us - 0.0000us | 12.0000us - 118.0000us | 1.9341us - 36.6011us | 0.0768us - 3.7223us
Onyx, 100000us, 0h17 | 2.0000us - 42.0000us | 12.0000us - 145.0000us | 2.3099us - 51.8681us | 0.2716us - 56.2809us
Slate, 1000us, 1h00 | 1.0000us - 32.0000us | 12.0000us - 222.0000us | 2.0360us - 36.6218us | 0.0493us - 9.1563us
Slate, 1000us, 0h2 | 1.0000us - 32.0000us | 12.0000us - 118.0000us | 1.9341us - 36.6011us | 0.0768us - 3.7223us
![alt text](graphs/packet_send_timestampsuser_space.png "packet_send_timestamps Graph")
......@@ -46,7 +46,7 @@ Slate, 1000us, 0h2 | 0.0000us - 0.0000us | 12.0000us - 118.0000us
Min | Max | Avg | Var
----------------------------- | ----------------------------- | ----------------------------- | -----------------------------
**user_space - kernel_space** | **user_space - kernel_space** | **user_space - kernel_space** | **user_space - kernel_space**
0.0000us - 0.0000us | 26.0000us - 142.0000us | 0.1151us - 55.4212us | 0.1646us - 58.2870us
0.0000us - 44.0000us | 26.0000us - 142.0000us | 0.1151us - 55.4212us | 0.1646us - 58.2870us
![alt text](graphs/packet_recv_timestampsuser_space.png "packet_recv_timestamps Graph")
......@@ -63,4 +63,15 @@ Min | Max | Avg | Var
![alt text](graphs/packet_jitterjitter.png "packet_jitter Graph")
### packet_rtt results
**Common test metadata:** Board name: Onyx, Linux kernel version: 4.19, Boot Parameters: isolcpus, Interval: 10000us, ETF qdisc delta: 200us, Task priority: 99, Device and processor load: ssh, Test duration: 0h4
Min | Max | Avg | Var
---------- | ---------- | ---------- | ----------
**rtt** | **rtt** | **rtt** | **rtt**
636.0000us | 972.0000us | 674.0051us | 241.7037us
![alt text](graphs/packet_rttrtt.png "packet_rtt Graph")
{"cyclictest_wake-up_latency": {"ids": [25, 26, 28], "next_id": 30}, "packet_send_timestamps": {"ids": [0, 5, 6], "next_id": 7}, "packet_recv_timestamps": {"ids": [0], "next_id": 1}, "packet_jitter": {"ids": [0], "next_id": 1}}
\ No newline at end of file
{"cyclictest_wake-up_latency": {"ids": [25, 26, 28], "next_id": 30}, "packet_send_timestamps": {"ids": [0, 5, 6], "next_id": 7}, "packet_recv_timestamps": {"ids": [0], "next_id": 1}, "packet_jitter": {"ids": [0], "next_id": 1}, "packet_rtt": {"ids": [0], "next_id": 1}}
\ No newline at end of file
{"measure_sets": [{"measure_type": "packet_rtt", "props_names": ["rtt"], "units": ["us"], "middle": 0, "props": [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 4, 10, 17, 23, 29, 66, 86, 114, 166, 223, 261, 351, 401, 487, 556, 660, 667, 773, 878, 888, 931, 1029, 1025, 1099, 950, 1018, 1063, 1006, 995, 985, 922, 804, 815, 703, 682, 630, 593, 530, 497, 388, 379, 332, 311, 343, 239, 216, 224, 197, 198, 168, 154, 160, 144, 164, 138, 135, 133, 116, 115, 112, 117, 87, 97, 99, 86, 77, 59, 77, 64, 48, 59, 47, 47, 32, 28, 32, 37, 28, 38, 16, 23, 21, 29, 20, 13, 17, 12, 7, 11, 17, 10, 8, 6, 4, 7, 3, 7, 5, 7, 5, 0, 4, 4, 1, 3, 6, 2, 0, 1, 5, 4, 4, 1, 0, 2, 2, 1, 1, 2, 2, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "props_type": "histogram", "metadata": {"board": "Onyx", "ker": "4.19", "boot_p": "isolcpus", "i": "10000us", "delta": "200us", "prio": "99", "load": "ssh", "duration": "0h4"}}]}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment