svn commit: r366928 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Thu Oct 22 06:51:47 UTC 2020
Author: pho
Date: Thu Oct 22 06:51:47 2020
New Revision: 366928
URL: https://svnweb.freebsd.org/changeset/base/366928
Log:
Limit run time. Style fix while here.
Modified:
user/pho/stress2/misc/snap8.sh
Modified: user/pho/stress2/misc/snap8.sh
==============================================================================
--- user/pho/stress2/misc/snap8.sh Thu Oct 22 06:50:20 2020 (r366927)
+++ user/pho/stress2/misc/snap8.sh Thu Oct 22 06:51:47 2020 (r366928)
@@ -43,7 +43,8 @@ mdconfig -l | grep -q md$mdstart && mdconfig -d -u $md
parallel=20
size=25 # Gb
-[ `df -k $(dirname $diskimage) | tail -1 | awk '{print $4'}` -lt $((size * 1024 * 1024)) ] && \
+[ `df -k $(dirname $diskimage) | tail -1 | awk '{print $4'}` -lt \
+ $((size * 1024 * 1024)) ] && \
echo "Not enough disk space." && exit 1
truncate -s ${size}G $diskimage
@@ -55,7 +56,8 @@ mount /dev/md${mdstart}$part $mntpoint
mycc -o /tmp/fstool -Wall ../tools/fstool.c
for i in `jot $parallel`; do
- (mkdir $mntpoint/test$i; cd $mntpoint/test$i; /tmp/fstool -l -f 50 -n 500 -s 8k) &
+ (mkdir $mntpoint/test$i; cd $mntpoint/test$i; \
+ timeout 10m /tmp/fstool -l -f 50 -n 500 -s 8k) &
done
for i in `jot $parallel`; do
wait
More information about the svn-src-user
mailing list