From 0cee5c183ac3f91feb7e3a1db1a42272cd9994aa Mon Sep 17 00:00:00 2001 From: fanyong Date: Sat, 14 Mar 2009 02:24:50 +0000 Subject: [PATCH] Branch b1_6 b=15691 i=huanghua i=yep Ignore minor performance difference. --- lustre/tests/sanity.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c90c943..49ad6f0 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5015,7 +5015,7 @@ test_123a() { # was test 123, statahead(bug 11401) [ $delta -eq 0 ] && continue - if [ $((delta_sa * 100)) -gt $((delta * 105)) ]; then + if [ $((delta_sa * 100)) -gt $((delta * 105)) -a $delta_sa -gt $((delta + 2)) ]; then if [ $SLOWOK -eq 0 ]; then error "ls $i files is slower with statahead!" @@ -5024,25 +5024,25 @@ test_123a() { # was test 123, statahead(bug 11401) lctl get_param llite.*.statahead_max cancel_lru_locks mdc cancel_lru_locks osc - $LCTL dk > /dev/null + $LCTL clear stime=`date +%s` time ls -l $DIR/$tdir | wc -l etime=`date +%s` - $LCTL dk > $TMP/sanity_test_123a_${i}_disable_${etime}.log + $LCTL dk $TMP/lustre_${TESTSUITE}_${TESTNAME}_${i}_disable.$(etime) delta=$((etime - stime)) - log "ls $i files without statahead: $delta sec, dump to $TMP/sanity_test_123a_${i}_disable_${etime}.log" + log "ls $i files without statahead: $delta sec, dump to $TMP/lustre_${TESTSUITE}_${TESTNAME}_${i}_disable.$(etime)" lctl set_param llite.*.statahead_max=$max lctl get_param -n llite.*.statahead_max | grep '[0-9]' cancel_lru_locks mdc cancel_lru_locks osc - $LCTL dk > /dev/null + $LCTL clear stime=`date +%s` time ls -l $DIR/$tdir | wc -l etime=`date +%s` - $LCTL dk > $TMP/sanity_test_123a_${i}_enable_${etime}.log + $LCTL dk $TMP/lustre_${TESTSUITE}_${TESTNAME}_${i}_enable.$(etime) delta_sa=$((etime - stime)) - log "ls $i files with statahead: $delta_sa sec, dump to $TMP/sanity_test_123a_${i}_enable_${etime}.log" + log "ls $i files with statahead: $delta_sa sec, dump to $TMP/lustre_${TESTSUITE}_${TESTNAME}_${i}_enable.$(etime)" lctl get_param -n llite.*.statahead_stats else log "ls $i files is slower with statahead!" @@ -5052,7 +5052,7 @@ test_123a() { # was test 123, statahead(bug 11401) [ $delta -gt 20 ] && break [ $delta -gt 8 ] && MULT=$((50 / delta)) - [ "$SLOW" = "no" -a $delta -gt 3 ] && break + [ "$SLOW" = "no" -a $delta -gt 5 ] && break done log "ls done" -- 1.8.3.1