Skip to content

Commit 5c3e124

Browse files
committed
Adding graphs for most DVFS OPP tables
1 parent ae1fcfb commit 5c3e124

File tree

88 files changed

+93
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+93
-0
lines changed

Diff for: results/.snippets-for-insights.sh

+77
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,83 @@ CheckPVTMDistributionOnRK3588() {
233233
done | grep -v ' | |' | grep -v '| 0/0 |' | sed 's/,/./g' | sort -t '|' -k 3 -n
234234
} # CheckPVTMDistributionOnRK3588
235235

236+
PlotOPPTables() {
237+
PNGWidth=900
238+
239+
for OPPTable in *.dat ; do
240+
# for OPPTable in bcm2712-30cc5f37-Raspberry_Pi_5B.dat; do
241+
case "${OPPTable##*/}" in
242+
rk*)
243+
SoCName="Rockchip RK$(cut -c3-6 <<<"${OPPTable##*/}")"
244+
OSInfo=" (Kernel $(cut -f2 -d'-' <<<"${OPPTable##*/}" | tr '_' ' '))"
245+
DeviceName="$(cut -f3 -d'-' <<<"${OPPTable##*/}" | tr '_' ' ')"
246+
;;
247+
sun*)
248+
SoCName="Allwinner $(cut -f2 -d'-' <<<"${OPPTable##*/}" | tr '[:lower:]' '[:upper:]')"
249+
OSInfo=" (Kernel $(cut -f3 -d'-' <<<"${OPPTable##*/}" | tr '_' ' '))"
250+
DeviceName="$(cut -f4 -d'-' <<<"${OPPTable##*/}" | tr '_' ' ')"
251+
;;
252+
amlogic*)
253+
SoCName="Amlogic $(cut -f2 -d'-' <<<"${OPPTable##*/}" | tr '[:lower:]' '[:upper:]')"
254+
OSInfo=" (Kernel $(cut -f3 -d'-' <<<"${OPPTable##*/}" | tr '_' ' '))"
255+
DeviceName="$(cut -f4 -d'-' <<<"${OPPTable##*/}" | tr '_' ' ')"
256+
;;
257+
bcm*)
258+
SoCName="BroadCom $(cut -f1 -d'-' <<<"${OPPTable##*/}" | tr '[:lower:]' '[:upper:]')"
259+
OSInfo=" (ThreadX $(cut -f2 -d'-' <<<"${OPPTable##*/}" | tr '_' ' '))"
260+
DeviceName="$(cut -f3 -d'-' <<<"${OPPTable##*/}" | tr '_' ' ')"
261+
;;
262+
*)
263+
SoCName="$(cut -f1 -d'-' <<<"${OPPTable##*/}" | tr '[:lower:]' '[:upper:]' | sed -e 's/IMX8/NXP i.MX8/' -e 's/EXYNOS5/Exynos 5422/')"
264+
OSInfo=" (Kernel $(cut -f2 -d'-' <<<"${OPPTable##*/}" | tr '_' ' '))"
265+
DeviceName="$(cut -f3 -d'-' <<<"${OPPTable##*/}" | tr '_' ' ')"
266+
;;
267+
esac
268+
case "${OPPTable##*/}" in
269+
*-big.dat)
270+
CoreInfo=", big cores"
271+
;;
272+
*-little.dat)
273+
CoreInfo=", little cores"
274+
;;
275+
*)
276+
CoreInfo=""
277+
;;
278+
esac
279+
280+
GraphTitle="$(sed 's/\.dat//' <<<"${SoCName} / ${DeviceName}${CoreInfo}${OSInfo}")"
281+
echo ${GraphTitle}
282+
PNGName="$(basename "${OPPTable##*/}" .dat).png"
283+
CpufreqDat="$(mktemp /tmp/${0##*/}.XXXXXX)"
284+
echo -e "0\t0" >"${CpufreqDat}"
285+
cut -f1 -d'.' <"${OPPTable}" | awk -F" " '{print $1"\t"$3}' >>"${CpufreqDat}"
286+
HighestVoltage=$(tail -n1 "${CpufreqDat}" | cut -f2)
287+
LowestVoltage=$(head -n1 "${CpufreqDat}" | cut -f2)
288+
YRange1=$(( LowestVoltage - 100 ))
289+
YRange2=$(( HighestVoltage + 100 ))
290+
HighestMHz=$(tail -n1 "${CpufreqDat}" | cut -f1)
291+
LowestMHz=$(head -n2 "${CpufreqDat}" | tail -n1 | cut -f1)
292+
XRange1=$(( LowestMHz - 50 ))
293+
XRange2=$(( HighestMHz + 50 ))
294+
295+
cat <<- EOF | gnuplot
296+
set title '${GraphTitle}'
297+
set ylabel 'Supply voltage in mV'
298+
set ytics nomirror
299+
set yrange [${YRange1}:${YRange2}]
300+
set xrange [${XRange1}:${XRange2}]
301+
set xlabel 'CPU clockspeed in MHz'
302+
set datafile sep '\t'
303+
set key top left autotitle columnheader
304+
set grid
305+
set terminal png size ${PNGWidth}
306+
set output '${PNGName}'
307+
plot '${CpufreqDat}' with linespoints title 'DVFS OPP'
308+
EOF
309+
rm "${CpufreqDat}"
310+
done
311+
} # PlotOPPTables
312+
236313
# CPUUtilization7ZIP >7-zip-cpu-utilisation.md
237314
# CheckRAID6PerfAndAlgo >raid6-perf-and-algo.md
238315
# CheckRK3588sbc-bench-results
22.6 KB
22.6 KB
24.7 KB
21.5 KB
23.5 KB

Diff for: results/opp-tables/amlogic-sm1-5.15.71-Vontar_X3.png

22.9 KB
23.4 KB
22.6 KB

Diff for: results/opp-tables/amlogic-sm1-5.9.0-VONTAR_X3.png

22.3 KB
23.1 KB
23.6 KB
21.8 KB
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
opp-table-threadx-0:
2+
1000 MHz 720.0 mV
3+
1100 MHz 730.0 mV
4+
1200 MHz 740.0 mV
5+
1300 MHz 750.0 mV
6+
1400 MHz 765.0 mV
7+
1500 MHz 775.0 mV
8+
1600 MHz 785.0 mV
9+
1700 MHz 795.0 mV
10+
1800 MHz 805.0 mV
11+
1900 MHz 815.0 mV
12+
2000 MHz 825.0 mV
13+
2100 MHz 835.0 mV
14+
2200 MHz 850.0 mV
15+
2300 MHz 860.0 mV
16+
2400 MHz 870.0 mV
24.9 KB
22.5 KB

Diff for: results/opp-tables/jh7110-5.15.0-Milk-V-Mars-CM.png

21.1 KB
22 KB
22.7 KB

Diff for: results/opp-tables/rk3288-5.15.72-MQMaker_MiQi.png

24.3 KB
26.2 KB
23.8 KB
24.7 KB
24.6 KB
25.3 KB
26 KB
24.8 KB
25.8 KB
25.4 KB
24.5 KB

Diff for: results/opp-tables/rk3399-4.4.194-ROCK_PI_4B-big.png

24.7 KB
23.8 KB
26.3 KB
24.4 KB

Diff for: results/opp-tables/rk3399-6.0.11-OrangePi_4-big.png

25.8 KB
25.7 KB

Diff for: results/opp-tables/rk3528-5.10.160-Hlink_H28K.png

22.6 KB
23.9 KB

Diff for: results/opp-tables/rk3566-5.10.160-OrangePi_CM4.png

24.2 KB
25.3 KB
25.3 KB
24.3 KB
22.6 KB
24 KB

Diff for: results/opp-tables/sun50i-a64-5.15.69-Pine64+.png

23.1 KB
24.6 KB

Diff for: results/opp-tables/sun50i-h6-5.15.72-OrangePi_3.png

23.5 KB
23.8 KB
23.1 KB
22.9 KB
21.9 KB
22.7 KB
22.1 KB
23.3 KB
23.5 KB
24.4 KB
22.8 KB

0 commit comments

Comments
 (0)