blob: c8c8e2b2dadd63cfd716e26e76408e981a2a5122 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
#!/bin/bash
SAMPLES_DIR=../../../Samples/cut/
MODEL_DIR=../../../Model/cut/final
OPLOT=~/diss/sw/plot/oplot.py
function plot_trends() {
ALGS=$1
SRC="${MODEL_DIR}/${ALGS}/"
echo "Plotting trends $SRC -> $ALGS/"
$OPLOT -p "$ALGS/" ${SRC}/otrend*.csv
rm $ALGS/*-RM_*RELEASE-LATENCY_*.pdf
}
function plot_ticks() {
$OPLOT -p event-driven/ -i 0 -x 7 -y 100000 ${SAMPLES_DIR}/event-driven/*overhead=TICK.sbn
$OPLOT -p pfair-aligned/ -i 0 -x 30 -y 120000 \
${SAMPLES_DIR}/pfair-aligned/*scheduler=*{L2,L3}*_*overhead=TICK.sbn
$OPLOT -p pfair-aligned/ -i 0 -x 130 -b 2 -y 400000 \
${SAMPLES_DIR}/pfair-aligned/*scheduler={PD2,PD2-RM}_*overhead=TICK.sbn
$OPLOT -p pfair-staggered/ -i 0 -x 15 -y 600000 ${SAMPLES_DIR}/pfair-staggered/*overhead=TICK.sbn
}
function plot_release() {
$OPLOT -p event-driven/ \
-i 0 -y 25000 -x 280 -b 4 \
${SAMPLES_DIR}/event-driven/*scheduler=G-*_*overhead=RELEASE.sbn
$OPLOT -p event-driven/ \
-i 0 -y 45000 -x 60 -b 1 \
${SAMPLES_DIR}/event-driven/*scheduler={P,C}-*_*overhead=RELEASE.sbn
$OPLOT -p pfair-aligned/ -i 0 -x 9 -y 70000 \
${SAMPLES_DIR}/pfair-aligned/*overhead=RELEASE.sbn
$OPLOT -p pfair-staggered/ -i 0 -x 9 -y 70000 \
${SAMPLES_DIR}/pfair-staggered/*overhead=RELEASE.sbn
}
function plot_sched() {
# manual filtering for SCHED
$OPLOT -o ${SAMPLES_DIR}/event-driven/sched-outliers.csv -p event-driven/ \
-i 0 -y 140000 -x 280 -b 4 \
${SAMPLES_DIR}/event-driven/*scheduler=G-*_*overhead=SCHED.sbn
$OPLOT -o ${SAMPLES_DIR}/event-driven/sched-outliers.csv -p event-driven/ \
-i 0 -y 160000 -x 45 -b 1 \
${SAMPLES_DIR}/event-driven/*scheduler={P,C}-*_*overhead=SCHED.sbn
$OPLOT -o ${SAMPLES_DIR}/pfair-aligned/sched-outliers.csv -p pfair-aligned/ \
-i 0 -x 130 -y 100000 -b 2 \
${SAMPLES_DIR}/pfair-aligned/*scheduler={PD2,PD2-RM}_**overhead=SCHED.sbn
$OPLOT -o ${SAMPLES_DIR}/pfair-aligned/sched-outliers.csv -p pfair-aligned/ \
-i 0 -x 30 -y 30000 \
${SAMPLES_DIR}/pfair-aligned/*scheduler=*{L2,L3}*_**overhead=SCHED.sbn
$OPLOT -o ${SAMPLES_DIR}/pfair-staggered/sched-outliers.csv -p pfair-staggered/ \
-i 0 -x 15 -y 140000 \
${SAMPLES_DIR}/pfair-staggered/*overhead=SCHED.sbn
}
function plot_samples() {
ALGS=$1
SRC="${SAMPLES_DIR}/${ALGS}/"
echo "Plotting samples $SRC -> $ALGS/"
# no filtering for SCHED2, RELEASE, and TICK
$OPLOT -p "$ALGS/" -i 0 -x 15 -y 120000 ${SRC}/*overhead=SCHED2.sbn
# IQR with extent=12 for CXS, RELEASE-LATENCY, and SEND-RESCHEd
$OPLOT -p "$ALGS/" -i 12 -x 15 -y 70000 ${SRC}/*overhead=CXS.sbn
$OPLOT -p "$ALGS/" -i 12 -x 15 -y 40000 ${SRC}/*overhead=RELEASE-LATENCY.sbn
$OPLOT -p "$ALGS/" -i 12 -x 15 -y 90000 ${SRC}/*overhead=SEND-RESCHED.sbn
# remove noise
rm -f $ALGS/*-RM_*RELEASE-LATENCY.pdf
}
plot_trends event-driven
plot_trends pfair-aligned
plot_trends pfair-staggered
plot_samples event-driven
plot_samples pfair-aligned
plot_samples pfair-staggered
plot_ticks
plot_sched
plot_release
|