5 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
6 . $LUSTRE/tests/test-framework.sh
8 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
12 ALWAYS_EXCEPT="parallel_grouplock $PARALLEL_SCALE_EXCEPT"
14 if [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ]; then
22 statahead_NUMFILES=100000
26 MACHINEFILE=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines}
27 clients=${CLIENTS:-$HOSTNAME}
28 generate_machine_file $clients $MACHINEFILE ||
29 error "Failed to generate machine file"
30 num_clients=$(get_node_count ${clients//,/ })
33 if [ "$SLOW" = "no" ]; then
34 cbench_IDIRS=${cbench_IDIRS:-2}
35 cbench_RUNS=${cbench_RUNS:-2}
39 [ "$SLOW" = "no" ] && mbench_NFILES=10000
42 [ "$SLOW" = "no" ] && simul_REP=2
45 [ "$SLOW" = "no" ] && cnt_NRUN=2
48 [ "$SLOW" = "no" ] && casc_REP=10
51 [ "$SLOW" = "no" ] && ior_DURATION=5
53 # write_append_truncate
54 [ "$SLOW" = "no" ] && write_REP=100
57 [ "$SLOW" = "no" ] && wdisjoint_REP=100
59 . $LUSTRE/tests/functions.sh
62 check_and_setup_lustre
64 get_mpiuser_id $MPI_USER
65 MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
66 $GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
71 run_test compilebench "compilebench"
76 run_test metabench "metabench"
81 run_test simul "simul"
86 run_test mdtestssf "mdtestssf"
91 run_test mdtestfpp "mdtestfpp"
96 run_test connectathon "connectathon"
101 run_test iorssf "iorssf"
106 run_test iorfpp "iorfpp"
113 test_cascading_rw() {
116 run_test cascading_rw "cascading_rw"
118 test_write_append_truncate() {
119 run_write_append_truncate
121 run_test write_append_truncate "write_append_truncate"
123 test_write_disjoint() {
126 run_test write_disjoint "write_disjoint"
128 test_parallel_grouplock() {
129 run_parallel_grouplock
131 run_test parallel_grouplock "parallel_grouplock"
136 run_test statahead "statahead test, multiple clients"
138 [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs] &&
142 check_and_cleanup_lustre