From e6c561c03750afac03183a5bd5d65844ec412b21 Mon Sep 17 00:00:00 2001 From: "robert.read" Date: Tue, 2 Jun 2009 17:27:36 +0000 Subject: [PATCH] b=19577 a=fanyong i=rread Diagnostic patch for 19577. Temporarily using "error_exit" to faily quickly. --- lustre/tests/sanity-quota.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index d98796a..6e80581 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -290,7 +290,12 @@ test_1_sub() { chown $TSTUSR.$TSTUSR $TESTFILE log " Write ..." + stime=`date +%s` $RUNAS dd if=/dev/zero of=$TESTFILE bs=$BLK_SZ count=$(($LIMIT/2)) || quota_error u $TSTUSR "(usr) write failure, but expect success" + etime=`date +%s` + delta=$((etime - stime)) + rate=$((BLK_SZ * LIMIT / 2 / delta / 1024)) + [ $rate -gt 1024 ] || error_exit "SLOW IO for $TSTUSR (user): $rate KB/sec" log " Done" log " Write out of block quota ..." # this time maybe cache write, ignore it's failure @@ -321,7 +326,12 @@ test_1_sub() { chown $TSTUSR.$TSTUSR $TESTFILE log " Write ..." + stime=`date +%s` $RUNAS dd if=/dev/zero of=$TESTFILE bs=$BLK_SZ count=$(($LIMIT/2)) || quota_error g $TSTUSR "(grp) write failure, but expect success" + etime=`date +%s` + delta=$((etime - stime)) + rate=$((BLK_SZ * LIMIT / 2 / delta / 1024)) + [ $rate -gt 1024 ] || error_exit "SLOW IO for $TSTUSR (group): $rate KB/sec" log " Done" log " Write out of block quota ..." # this time maybe cache write, ignore it's failure -- 1.8.3.1