Skip to content
Snippets Groups Projects
Commit e3e06375 authored by Nathan Rutman's avatar Nathan Rutman
Browse files

quota test 11 takes forever on my machine when run as part of acceptance-small.

- Add some progress indication.
- Fix "cycles" (rm -f erases test dir, so must recreate)
parent a02bca28
No related branches found
No related tags found
No related merge requests found
...@@ -775,25 +775,35 @@ test_11() { ...@@ -775,25 +775,35 @@ test_11() {
echo 1 > /proc/sys/vm/dirty_ratio echo 1 > /proc/sys/vm/dirty_ratio
echo 50 > /proc/sys/vm/dirty_writeback_centisecs echo 50 > /proc/sys/vm/dirty_writeback_centisecs
TESTDIR="$TSTDIR/quota_tst110" TESTDIR="$TSTDIR/quota_tst110"
mkdir -p $TESTDIR && chmod 777 $TESTDIR
#do the test #do the test
MINS=0
REPS=3
i=1 i=1
while [ $i -le 3 ]; do while [ $i -le $REPS ]; do
echo "test: cycle($i of 5)..." echo "test: cycle($i of $REPS) start at $(date)"
mkdir -p $TESTDIR && chmod 777 $TESTDIR
echo -n " create a file for uid "
for j in `seq 1 30`; do for j in `seq 1 30`; do
echo " create a file for uid $j..." echo -n "$j "
runas -u $j dd if=/dev/zero of=$TESTDIR/$j bs=$BLK_SZ > /dev/null 2>&1 & runas -u $j dd if=/dev/zero of=$TESTDIR/$j bs=$BLK_SZ > /dev/null 2>&1 &
done done
ps -e | grep dd > /dev/null echo ""
while [ $? -eq 0 ]; do PROCS=$(ps -e | grep dd | wc -l)
sleep 60; while [ $PROCS -gt 0 ]; do
ps -e | grep dd > /dev/null sleep 60
MINS=$(($MINS+1))
PROCS=$(ps -e | grep dd | wc -l)
USED=$(du -s $TESTDIR | awk '{print $1}')
PCT=$(($USED * 100 / $block_limit))
echo "${i}/${REPS} ${PCT}% p${PROCS} t${MINS} "
done done
echo " removing the test files..." echo " removing the test files..."
rm -rf $TESTDIR rm -rf $TESTDIR
echo "cycle $i done at $(date)"
i=$[$i+1] i=$[$i+1]
done done
echo "Test took $MINS minutes"
#clean #clean
echo $orig_dbr > /proc/sys/vm/dirty_background_ratio echo $orig_dbr > /proc/sys/vm/dirty_background_ratio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment