git: 0ec1bbe579fa - main - stress2: Cap total runtime
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Sep 2023 11:01:50 UTC
The branch main has been updated by pho:
URL: https://cgit.FreeBSD.org/src/commit/?id=0ec1bbe579fa1b81cbb6b7dbbbea38397a56274a
commit 0ec1bbe579fa1b81cbb6b7dbbbea38397a56274a
Author: Peter Holm <pho@FreeBSD.org>
AuthorDate: 2023-09-27 10:58:39 +0000
Commit: Peter Holm <pho@FreeBSD.org>
CommitDate: 2023-09-27 10:58:39 +0000
stress2: Cap total runtime
---
tools/test/stress2/misc/radix.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/test/stress2/misc/radix.sh b/tools/test/stress2/misc/radix.sh
index fa85512c79c5..b102c09aca92 100755
--- a/tools/test/stress2/misc/radix.sh
+++ b/tools/test/stress2/misc/radix.sh
@@ -46,14 +46,14 @@ mycc -o radix -Wall -Wextra radix.c || exit 1
rm -f radix.c
cd $odir
-set -e
+set -u
trap "rm -f rendezvous" EXIT INT
parallel=1
usermem=`sysctl hw.usermem | sed 's/.* //'`
pagesize=`pagesize`
start=`date +%s`
while true; do
- timeout 2m /tmp/radix $parallel > $log; s=$?
+ timeout 20m /tmp/radix $parallel > $log; s=$?
[ $s -eq 124 ] && { echo "Timed out"; break; }
[ $s -ne 0 ] && cat $log
used=`awk '{print $4}' < $log`
@@ -63,7 +63,7 @@ while true; do
[ $parallel -eq 1 ] &&
parallel=$((usermem / pagesize / used))
parallel=$((parallel + 1))
- echo "`date +%T` parallel=$parallel" # XXX
+ [ $parallel -gt 10 ] && parallel=10
done
cat /tmp/radix.log