Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01b7fc4
)
b=23728 speed up sanity-gss test 8.
author
Eric Mei
<eric.mei@oracle.com>
Mon, 13 Sep 2010 14:46:41 +0000
(18:46 +0400)
committer
Mikhail Pershin
<tappro@sun.com>
Tue, 21 Sep 2010 12:34:20 +0000
(16:34 +0400)
r=jian.yu
lustre/tests/sanity-gss.sh
patch
|
blob
|
history
diff --git
a/lustre/tests/sanity-gss.sh
b/lustre/tests/sanity-gss.sh
index
171ea7c
..
7bfa864
100644
(file)
--- a/
lustre/tests/sanity-gss.sh
+++ b/
lustre/tests/sanity-gss.sh
@@
-390,17
+390,24
@@
test_8()
{
local ATHISTORY=$(do_facet mds "find /sys/ -name at_history")
local ATOLDBASE=$(do_facet mds "cat $ATHISTORY")
{
local ATHISTORY=$(do_facet mds "find /sys/ -name at_history")
local ATOLDBASE=$(do_facet mds "cat $ATHISTORY")
+ local REQ_DELAY
do_facet mds "echo 8 >> $ATHISTORY"
do_facet mds "echo 8 >> $ATHISTORY"
+ mkdir -p $DIR/d8
+ chmod a+w $DIR/d8
+
$LCTL dk > /dev/null
debugsave
sysctl -w lnet.debug="+other"
$LCTL dk > /dev/null
debugsave
sysctl -w lnet.debug="+other"
- mkdir -p $DIR/d8
- chmod a+w $DIR/d8
-
- REQ_DELAY=`lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts |
- awk '/portal 12/ {print $5}' | tail -1`
+ # wait for the at estimation come down, this is faster
+ while [ true ]; do
+ REQ_DELAY=`lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts |
+ awk '/portal 12/ {print $5}' | tail -1`
+ [ $REQ_DELAY -le 5 ] && break
+ echo "current AT estimation is $REQ_DELAY, wait a little bit"
+ sleep 8
+ done
REQ_DELAY=$((${REQ_DELAY} + ${REQ_DELAY} / 4 + 5))
# sleep sometime in ctx handle
REQ_DELAY=$((${REQ_DELAY} + ${REQ_DELAY} / 4 + 5))
# sleep sometime in ctx handle