2 export PATH=/sbin:/usr/sbin:$PATH
7 OSCDEV="`device_list 2> /dev/null | awk '/ osc | lov / { print $4 }' | tail -1`"
9 if [ -z "$OSCDEV" ]; then
10 echo "$0: needs an OSC set up first" 1>&2
36 $OBDCTL --threads $THR v \$$OSCDEV $DO $CNT $RW $V $PGS $OID || exit 1
38 if [ -e endrun ]; then
40 echo "exiting because endrun file was found"
45 OID=`$OBDCTL --device \$$OSCDEV create 1 | awk '/is object id/ { print $6 }'`
47 # TODO: obdctl needs to check on the progress of each forked thread
48 # (IPC SHM, sockets?) to see if it hangs.
49 for CMD in test_getattr test_brw_write test_brw_read; do
63 ba*) PGV= ;; # disabled until the BA OST code is updated
69 # We use '--threads 1 X' instead of '--device X' so that
70 # obdctl can monitor the forked thread for progress (TODO).
71 runthreads 1 $CMD 1 1 $PG
72 runthreads 1 $CMD 100 1 $PG
76 runthreads 1 $CMD 10000 100 $PG
77 [ "$PGV" ] && runthreads 1 $CMD 1000 100 $PGV
79 runthreads 1 $CMD 1000000 -30 $PG
80 [ "$PGV" ] && runthreads 1 $CMD 100000 -30 $PGV
82 runthreads 1 $CMD 100 1 $PG
84 runthreads 2 $CMD 10000 100 $PG
85 [ "$PGV" ] && runthreads 2 $CMD 1000 100 $PGV
87 runthreads 2 $CMD 1000000 -30 $PG
88 [ "$PGV" ] && runthreads 2 $CMD 100000 -30 $PGV
90 runthreads 10 $CMD 10000 1000 $PG
91 [ "$PGV" ] && runthreads 10 $CMD 1000 1000 $PGV
93 runthreads 100 $CMD 10000 -30 $PG
96 $OBDCTL --device \$$OSCDEV destroy $OID