Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
a90394e5
Commit
a90394e5
authored
Jun 02, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cyclictest measures and fix small mistakes in the script
parent
a3dc15ae
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
3 deletions
+52
-3
measure-analysis/measure-analysis.py
measure-analysis/measure-analysis.py
+24
-3
measure-analysis/measures/cyclictest_wake-up_latency25.json
measure-analysis/measures/cyclictest_wake-up_latency25.json
+1
-0
measure-analysis/measures/cyclictest_wake-up_latency26.json
measure-analysis/measures/cyclictest_wake-up_latency26.json
+1
-0
measure-analysis/measures/graphs/cyclictest_wake-up_latencywake-up latency.png
...ures/graphs/cyclictest_wake-up_latencywake-up latency.png
+0
-0
measure-analysis/measures/measure-report.md
measure-analysis/measures/measure-report.md
+25
-0
measure-analysis/measures/measure_sets.json
measure-analysis/measures/measure_sets.json
+1
-0
No files found.
measure-analysis/measure-analysis.py
View file @
a90394e5
...
...
@@ -29,6 +29,14 @@ class MeasureSetHandler:
return
s
def
save
(
self
):
remove_list
=
[]
for
mtype
in
self
.
measure_sets
:
if
len
(
self
.
measure_sets
[
mtype
][
'ids'
])
==
0
:
remove_list
.
append
(
mtype
)
for
mtype
in
remove_list
:
del
self
.
measure_sets
[
mtype
]
with
open
(
MeasureSetHandler
.
measure_sets_path
,
'w'
)
as
measure_sets_file
:
json
.
dump
(
self
.
measure_sets
,
measure_sets_file
)
...
...
@@ -57,7 +65,6 @@ class MeasureSetHandler:
print
(
"Saved measure as {}{}"
.
format
(
mtype
,
next_id
))
def
remove_measure_set
(
self
,
mtype
,
mid
):
if
mtype
in
self
.
measure_sets
and
len
(
self
.
measure_sets
[
mtype
][
'ids'
])
>
0
:
self
.
measure_sets
[
mtype
][
'ids'
].
remove
(
mid
)
measure_file_name
=
"{}/{}{}.json"
.
format
(
MeasureSetHandler
.
measures_dir
,
mtype
,
mid
)
...
...
@@ -289,7 +296,7 @@ class MeasureSet:
enumerate_prop
=
list
(
enumerate
(
prop
))
self
.
max
.
append
(
max
(
list
(
map
(
lambda
x
:
x
[
0
]
if
x
[
1
]
else
0
,
enumerate_prop
))))
self
.
min
.
append
(
m
ax
(
map
(
lambda
x
:
x
[
0
]
if
x
[
1
]
else
0
,
enumerate_prop
)))
self
.
min
.
append
(
m
in
(
map
(
lambda
x
:
x
[
0
]
if
x
[
1
]
else
0
,
enumerate_prop
)))
sum_prop
=
sum
(
prop
)
...
...
@@ -379,7 +386,7 @@ class MeasureSet:
vals
=
list
(
map
(
lambda
x
:
min_val
if
x
!=
0
and
x
<
min_val
else
x
,
vals
))
plt
.
bar
(
bins
,
vals
)
plt
.
bar
(
bins
,
vals
,
alpha
=
0.4
)
def
generate_chrono_graph
(
self
,
i
,
color
):
prop
=
self
.
props
[
i
]
...
...
@@ -436,6 +443,7 @@ def parse_args():
parser
=
argparse
.
ArgumentParser
(
description
=
'Measure analysis'
)
parser
.
add_argument
(
'-i'
,
nargs
=
1
,
required
=
False
,
help
=
'import file'
)
parser
.
add_argument
(
'-c'
,
action
=
'store_true'
,
required
=
False
,
help
=
'parse cyclictest histogram'
)
parser
.
add_argument
(
'--remove'
,
nargs
=
1
,
required
=
False
,
help
=
'remove a measure'
)
parser
.
add_argument
(
'--remove-all'
,
action
=
'store_true'
,
help
=
'remove all measure sets'
)
parser
.
add_argument
(
'-t'
,
nargs
=
'?'
,
const
=
'input_file'
,
required
=
False
,
help
=
'generate table'
)
parser
.
add_argument
(
'-R'
,
action
=
'store_true'
,
required
=
False
,
help
=
'generate full measure report'
)
...
...
@@ -446,6 +454,19 @@ def parse_args():
ms_handler
=
MeasureSetHandler
()
if
args
.
remove
is
not
None
:
file_name
=
args
.
remove
[
0
]
mid_start
=
0
for
c
in
range
(
len
(
file_name
)
-
1
,
-
1
,
-
1
):
if
not
str
.
isdigit
(
file_name
[
c
]):
mid_start
=
c
+
1
break
mtype
=
file_name
[:
mid_start
]
mid
=
int
(
file_name
[
mid_start
:])
ms_handler
.
remove_measure_set
(
mtype
,
mid
)
if
args
.
i
is
not
None
:
measure_set
=
MeasureSet
()
...
...
measure-analysis/measures/cyclictest_wake-up_latency25.json
0 → 100644
View file @
a90394e5
{
"measure_type"
:
"cyclictest_wake-up_latency"
,
"props_names"
:
[
"wake-up latency"
],
"units"
:
[
"us"
],
"props"
:
[[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
3
,
71354
,
227648
,
2119727
,
18949203
,
57902118
,
83646995
,
73486890
,
51000779
,
35574312
,
25745841
,
17325399
,
10116697
,
5008749
,
2095840
,
741363
,
226972
,
63008
,
17855
,
6353
,
3275
,
2017
,
1396
,
1075
,
934
,
884
,
817
,
701
,
668
,
563
,
472
,
396
,
401
,
330
,
328
,
318
,
271
,
240
,
160
,
160
,
137
,
97
,
57
,
50
,
27
,
22
,
10
,
8
,
6
,
1
,
3
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
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
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
]],
"props_type"
:
"histogram"
,
"metadata"
:
{
"board"
:
"Slate"
,
"ker"
:
"4.19"
,
"boot_p"
:
"isolcpus"
,
"i"
:
"200us"
,
"delta"
:
"200us"
,
"prio"
:
"99"
,
"load"
:
"hackbench"
,
"duration"
:
"21h22"
}}
\ No newline at end of file
measure-analysis/measures/cyclictest_wake-up_latency26.json
0 → 100644
View file @
a90394e5
{
"measure_type"
:
"cyclictest_wake-up_latency"
,
"props_names"
:
[
"wake-up latency"
],
"units"
:
[
"us"
],
"props"
:
[[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
89
,
226068
,
4712348
,
41843151
,
88650170
,
88277162
,
60997921
,
37379247
,
25081959
,
17888586
,
11083137
,
5453618
,
2109893
,
665225
,
176194
,
42654
,
10652
,
3837
,
1956
,
1390
,
1139
,
1034
,
902
,
823
,
716
,
602
,
504
,
508
,
441
,
360
,
359
,
335
,
296
,
285
,
253
,
203
,
201
,
146
,
121
,
118
,
81
,
48
,
46
,
33
,
18
,
11
,
10
,
3
,
4
,
1
,
1
,
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
,
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
,
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ker"
:
"4.19"
,
"boot_p"
:
"isolcpus"
,
"i"
:
"200us"
,
"delta"
:
"200us"
,
"prio"
:
"99"
,
"load"
:
"hackbench"
,
"duration"
:
"21h22"
}}
\ No newline at end of file
measure-analysis/measures/graphs/cyclictest_wake-up_latencywake-up latency.png
0 → 100644
View file @
a90394e5
21.9 KB
measure-analysis/measures/measure-report.md
0 → 100644
View file @
a90394e5
## Measurements
### Abbreviations used
*
ker: Linux kernel version
*
prio: Task priority
*
i: Interval
*
board: Board name
*
boot_p: Boot Parameters
*
delta: ETF qdisc delta
*
load: Device and processor load
### cyclictest_wake-up_latency tables
**Common metadatas:**
Linux kernel version: 4.19, Boot Parameters: isolcpus, Interval: 200us, ETF qdisc delta: 200us, Task priority: 99, Device and processor load: hackbench, duration: 21h22
Metadata | Min | Max | Avg | Var
--------- | ------------------- | ------------------- | ------------------- | -------------------
**board**
|
**wake-up latency**
|
**wake-up latency**
|
**wake-up latency**
|
**wake-up latency**
Slate | 0.0000us | 65.0000us | 21.2779us | 4.7291us
Emerald | 0.0000us | 112.0000us | 19.5352us | 4.0545us
![
alt text
](
graphs/cyclictest_wake-up_latencywake-up
latency.png "cyclictest_wake-up_latency Graph")
measure-analysis/measures/measure_sets.json
0 → 100644
View file @
a90394e5
{
"cyclictest_wake-up_latency"
:
{
"ids"
:
[
25
,
26
],
"next_id"
:
28
}}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment