Skip to content

Commit

Permalink
Activity/throttling OK only bare metal
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKaiser committed Mar 13, 2023
1 parent 74eda84 commit c134fe7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion results/ARMv8-Crypto-Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ Crawling through [sbc-bench results collection](../Results.md) comparing +30 dif
| Cortex-A77 | | | |
| [QRB5165](http://ix.io/49kx) | 2410 | 1348440 | 560 |
| [QRB5165](http://ix.io/49kx) | 2840 | 1598490 | 563 |
| Cortex-A78AE | | | |
| Cortex-A78C/A78AE | | | |
| [Snapdragon 8cx Gen 3](http://ix.io/4qG1) | 2430 | 1373790 | 565 |
| [NVIDIA Orin](http://ix.io/4ax9) | 2200 | 1242940 | 565 |
| Cortex-X1C | | | |
| [Snapdragon 8cx Gen 3](http://ix.io/4qG1) | 3000 | 1694260 | 565 |
Expand Down
12 changes: 8 additions & 4 deletions sbc-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4241,9 +4241,12 @@ ValidateResults() {
LogLength=$(wc -l <<<"${UtilizationValues}")
UtilizationSum=$(awk '{s+=$1} END {printf "%.0f", s}' <<<"${UtilizationValues}")
AverageSysUtilization=$(( ${UtilizationSum} / ${LogLength} ))
[ ${PeakSysUtilization:-0} -gt 15 -o ${AverageSysUtilization:-0} -gt 0 ] \
&& echo -e "${LRED}${BOLD}Too much background activity (%system): ${AverageSysUtilization}% avg, ${PeakSysUtilization}% max${NC}" \
|| echo -e "${LGREEN}Background activity (%system) OK${NC}"
if [ ${PeakSysUtilization:-0} -gt 15 -o ${AverageSysUtilization:-0} -gt 0 ]; then
echo -e "${LRED}${BOLD}Too much background activity (%system): ${AverageSysUtilization}% avg, ${PeakSysUtilization}% max${NC}"
else
# only report background activity being ok when not running inside a VM/container
[ "X${VirtWhat}" = "X" -o "X${VirtWhat}" = "Xnone" ] && echo -e "${LGREEN}Background activity (%system) OK${NC}"
fi
# Too high overall CPU utilization with single threaded benchmarks? This is an indication
# of background activities needing too much CPU ressources. Skip in MODE=extensive/gb/pts
Expand Down Expand Up @@ -4322,7 +4325,8 @@ ValidateResults() {
else
# Throttling on all other systems?
if [ "${ThrottlingWarning}" = "" ]; then
echo -e "${LGREEN}No throttling${NC}"
# only report 'no throttling' when not running inside a VM/container
[ "X${VirtWhat}" = "X" -o "X${VirtWhat}" = "Xnone" ] && echo -e "${LGREEN}No throttling${NC}"
else
# we need to check whether we're running in Geekbench or PTS mode since the
# cluster tests on CPUs with different core types end up with the CPUs remaining
Expand Down

0 comments on commit c134fe7

Please sign in to comment.