2 export PATH=/sbin:/usr/sbin:$PATH
34 if [ -e endrun ]; then
36 echo "exiting because endrun file was found"
40 $OBDCTL --threads $THR v '$OSCDEV' $DO $CNT $RW $V $PGS $OID || exit 1
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
63 #PGV=16 # disabled until the BA OST code is updated
67 # We use '--threads 1 X' instead of '--device X' so that
68 # obdctl can monitor the forked thread for progress (TODO).
69 runthreads 1 $CMD 1 1 $PG
70 runthreads 1 $CMD 100 1 $PG
74 runthreads 1 $CMD 10000 100 $PG
75 [ "$PGV" ] && runthreads 1 $CMD 1000 100 $PGV
77 runthreads 1 $CMD 1000000 -30 $PG
78 [ "$PGV" ] && runthreads 1 $CMD 100000 -30 $PGV
82 runthreads 1 $CMD 100 1 $PG
86 runthreads 2 $CMD 10000 100 $PG
87 [ "$PGV" ] && runthreads 2 $CMD 1000 100 $PGV
89 runthreads 2 $CMD 1000000 -30 $PG
90 [ "$PGV" ] && runthreads 2 $CMD 100000 -30 $PGV
92 runthreads 10 $CMD 10000 1000 $PG
93 [ "$PGV" ] && runthreads 10 $CMD 1000 1000 $PGV
95 runthreads 100 $CMD 10000 -30 $PG
98 $OBDCTL --device '$OSCDEV' destroy $OID
100 cleanup_client || exit -1
101 cleanup_server || exit -1