2 export PATH=/sbin:/usr/sbin:$PATH
29 $OBDCTL --threads $THR v '$OSCDEV' $DO $CNT $RW $V $PGS $OID || exit 1
31 if [ -e endrun ]; then
33 echo "exiting because endrun file was found"
38 if [ -z "`$OBDCTL device_list 2> /dev/null | grep osc`" ]; then
44 setup_server || exit -1
45 setup_client || exit -1
48 OID=`$OBDCTL --device '$OSCDEV' create 1 | awk '/is object id/ { print $6 }'`
49 [ -z "$OID" ] && echo "error creating object" 1>&2 && exit 1
51 # TODO: obdctl needs to check on the progress of each forked thread
52 # (IPC SHM, sockets?) to see if it hangs.
57 ba*) PGVR= ;; # disabled until the BA OST code is updated
61 # We use '--threads 1 X' instead of '--device X' so that
62 # obdctl can monitor the forked thread for progress (TODO).
65 runthreads 1 test_brw_write 1000 -30 $PG
66 runthreads 1 test_brw_read 1000 -30 $PG
68 [ "$PGVW" ] && runthreads 1 test_brw_write 100 -30 $PGVW
69 [ "$PGVW" ] && runthreads 1 test_brw_read 1600 -30 $PG
70 [ "$PGVR" ] && runthreads 1 test_brw_read 100 -30 $PGVR
72 runthreads 1 test_brw_write 10000000 -30 $PG
73 runthreads 1 test_brw_read 10000000 -30 $PG
75 [ "$PGVW" ] && runthreads 1 test_brw_write 1000000 -30 $PGVW
76 [ "$PGVW" ] && runthreads 1 test_brw_read 16000000 -30 $PG
77 [ "$PGVR" ] && runthreads 1 test_brw_read 1000000 -30 $PGVR
79 runthreads 2 test_brw_write 10000000 -30 $PG
80 runthreads 2 test_brw_read 10000000 -30 $PG
82 [ "$PGVW" ] && runthreads 2 test_brw_write 1000000 -30 $PGVW
83 [ "$PGVW" ] && runthreads 1 test_brw_read 16000000 -30 $PG
84 [ "$PGVR" ] && runthreads 2 test_brw_read 1000000 -30 $PGVR
86 runthreads 10 test_brw_write 1000000 -30 $PG
87 runthreads 1 test_brw_read 16000000 -30 $PG
88 runthreads 10 test_brw_read 1000000 -30 $PG
90 [ "$PGVW" ] && runthreads 10 test_brw_write 100000 -60 $PGVW
91 [ "$PGVW" ] && runthreads 1 test_brw_read 1600000 -30 $PG
92 [ "$PGVR" ] && runthreads 10 test_brw_read 100000 -60 $PGVR
94 runthreads 32 test_brw_write 1000000 -30 $PG
95 runthreads 1 test_brw_read 16000000 -30 $PG
96 runthreads 32 test_brw_read 1000000 -30 $PG
98 [ "$PGVW" ] && runthreads 32 test_brw_write 100000 -60 $PGVW
99 [ "$PGVW" ] && runthreads 1 test_brw_read 1600000 -30 $PG
100 [ "$PGVR" ] && runthreads 32 test_brw_read 100000 -60 $PGVR
102 runthreads 64 test_brw_write 1000000 -30 $PG
103 runthreads 1 test_brw_read 16000000 -30 $PG
104 runthreads 64 test_brw_read 1000000 -30 $PG
106 [ "$PGVW" ] && runthreads 64 test_brw_write 100000 -60 $PGVW
107 [ "$PGVW" ] && runthreads 1 test_brw_read 1600000 -30 $PG
108 [ "$PGVR" ] && runthreads 64 test_brw_read 100000 -60 $PGVR
110 runthreads 100 test_brw_write 100000 -60 $PG
111 runthreads 1 test_brw_read 1600000 -30 $PG
112 runthreads 100 test_brw_read 100000 -60 $PG
114 [ "$PGVW" ] && runthreads 100 test_brw_write 100000 -60 $PGVW
115 [ "$PGVW" ] && runthreads 1 test_brw_read 1600000 -30 $PG
116 [ "$PGVR" ] && runthreads 100 test_brw_read 100000 -60 $PGVR
119 $OBDCTL --device '$OSCDEV' destroy $OID
121 cleanup_client || exit -1
122 cleanup_server || exit -1