2 export PATH=/sbin:/usr/sbin:$PATH
34 $OBDCTL --threads $THR v '$OSCDEV' $DO $CNT $RW $V $PGS $OID || exit 1
36 if [ -e endrun ]; then
38 echo "exiting because endrun file was found"
43 setup_server || exit -1
44 setup_client || exit -1
46 OID=`$OBDCTL --device '$OSCDEV' create 1 | awk '/is object id/ { print $6 }'`
48 # TODO: obdctl needs to check on the progress of each forked thread
49 # (IPC SHM, sockets?) to see if it hangs.
50 for CMD in test_getattr test_brw_write test_brw_read; do
64 ba*) PGV= ;; # disabled until the BA OST code is updated
70 # We use '--threads 1 X' instead of '--device X' so that
71 # obdctl can monitor the forked thread for progress (TODO).
72 runthreads 1 $CMD 1 1 $PG
73 runthreads 1 $CMD 100 1 $PG
77 runthreads 1 $CMD 10000 100 $PG
78 [ "$PGV" ] && runthreads 1 $CMD 1000 100 $PGV
80 runthreads 1 $CMD 1000000 -30 $PG
81 [ "$PGV" ] && runthreads 1 $CMD 100000 -30 $PGV
85 runthreads 1 $CMD 100 1 $PG
89 runthreads 2 $CMD 10000 100 $PG
90 [ "$PGV" ] && runthreads 2 $CMD 1000 100 $PGV
92 runthreads 2 $CMD 1000000 -30 $PG
93 [ "$PGV" ] && runthreads 2 $CMD 100000 -30 $PGV
95 runthreads 10 $CMD 10000 1000 $PG
96 [ "$PGV" ] && runthreads 10 $CMD 1000 1000 $PGV
98 runthreads 100 $CMD 10000 -30 $PG
101 $OBDCTL --device '$OSCDEV' destroy $OID
103 cleanup_client || exit -1
104 cleanup_server || exit -1