From 4b6cf43521a362ff36e38aa77b48ee06fdf11f71 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 8 May 2016 22:23:59 +0200 Subject: stress_tests: improve output --- stress_tests/extractloop.bash | 3 ++- stress_tests/fsstress-loopback.bash | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'stress_tests') diff --git a/stress_tests/extractloop.bash b/stress_tests/extractloop.bash index b3c13c0..a5d0539 100755 --- a/stress_tests/extractloop.bash +++ b/stress_tests/extractloop.bash @@ -9,6 +9,7 @@ DIR1=$(mktemp -d) DIR2=$(mktemp -d) gocryptfs -q -init -extpass="echo test" $DIR1 gocryptfs -q -extpass="echo test" -nosyslog $DIR1 $DIR2 +#gocryptfs -q -extpass="echo test" -nosyslog -memprofile /tmp/extractloop-mem $DIR1 $DIR2 cd $DIR2 # Cleanup trap @@ -24,7 +25,7 @@ function loop { N=1 while true do - echo "Process $BASHPID iteration $N: $(date)" + echo "[pid $BASHPID] $N: $(date +%H:%M:%S)" tar xf /tmp/linux-3.0.tar.gz diff -ur linux-3.0 /tmp/linux-3.0 rm -Rf linux-3.0 diff --git a/stress_tests/fsstress-loopback.bash b/stress_tests/fsstress-loopback.bash index df60cd0..36f1c96 100755 --- a/stress_tests/fsstress-loopback.bash +++ b/stress_tests/fsstress-loopback.bash @@ -5,8 +5,6 @@ set -eu DIR=/tmp/a # Mountpoint MNT=/tmp/b -# Debug log -LOG=/tmp/log.txt # fsstress binary FSSTRESS=~/src/xfstests/ltp/fsstress @@ -41,19 +39,18 @@ else fi echo -n "Waiting for mount: " +sleep 0.5 while ! grep "$MNT fuse" /proc/self/mounts > /dev/null do sleep 1 echo -n x done -echo " done, debug log goes to $LOG" +echo echo "Starting fsstress loop" N=1 while true do - > $LOG - echo $N mkdir $MNT/fsstress.1 echo -n " fsstress.1 " -- cgit v1.2.3