Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
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
osie
Commits
be47fac3
Commit
be47fac3
authored
Apr 04, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate latency plot.
parent
af11179f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
rt_analyzer/cyclictest_latency_plot.sh
rt_analyzer/cyclictest_latency_plot.sh
+48
-0
No files found.
rt_analyzer/cyclictest_latency_plot.sh
0 → 100644
View file @
be47fac3
#!/bin/bash
# based on https://www.osadl.org/Create-a-latency-plot-from-cyclictest-hi.bash-script-for-latency-plot.0.html
# generate latency plot for Lime2
cyclictest
-l100000000
-m
-Sp90
-i200
-h400
-q
>
output
max
=
`
grep
"Max Latencies"
output |
tr
" "
"
\n
"
|
sort
-n
|
tail
-1
|
sed
s/^0
*
//
`
grep
-v
-e
"^#"
-e
"^$"
output |
tr
" "
"
\t
"
>
histogram
cores
=
2
for
i
in
`
seq
1
$cores
`
do
column
=
`
expr
$i
+ 1
`
cut
-f1
,
$column
histogram
>
histogram
$i
done
echo
-n
-e
"set title
\"
Latency plot
\"\n\
set terminal png
\n\
set xlabel
\"
Latency (us), max
$max
us
\"\n\
set logscale y
\n\
set xrange [0:400]
\n\
set yrange [0.8:*]
\n\
set ylabel
\"
Number of latency samples
\"\n\
set output
\"
plot.png
\"\n\
plot "
>
plotcmd
for
i
in
`
seq
1
$cores
`
do
if
test
$i
!=
1
then
echo
-n
", "
>>
plotcmd
fi
cpuno
=
`
expr
$i
- 1
`
if
test
$cpuno
-lt
10
then
title
=
" CPU
$cpuno
"
else
title
=
"CPU
$cpuno
"
fi
echo
-n
"
\"
histogram
$i
\"
using 1:2 title
\"
$title
\"
with histeps"
>>
plotcmd
done
gnuplot
-persist
<plotcmd
echo
"OK"
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