5 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
6 . $LUSTRE/tests/test-framework.sh
8 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
11 # bug number for skipped test: LU-9429
12 ALWAYS_EXCEPT=" parallel_grouplock $PARALLEL_SCALE_EXCEPT "
14 if [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ]; then
18 cbench_IDIRS=${cbench_IDIRS:-1}
19 cbench_RUNS=${cbench_RUNS:-1}
21 mdtest_nFiles=${mdtest_nFiles:-"10000"}
22 statahead_NUMFILES=${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=${mbench_NFILES:-10000}
42 [ "$SLOW" = "no" ] && simul_REP=${simul_REP:-2}
45 [ "$SLOW" = "no" ] && cnt_NRUN=${cnt_NRUN:-2}
48 [ "$SLOW" = "no" ] && casc_REP=${casc_REP:-10}
51 [ "$SLOW" = "no" ] && ior_DURATION=${ior_DURATION:-5}
53 # write_append_truncate
54 [ "$SLOW" = "no" ] && write_REP=${write_REP:-100}
57 [ "$SLOW" = "no" ] && wdisjoint_REP=${wdisjoint_REP:-100}
60 if [ "$SLOW" = "no" ]; then
61 fs_test_ndirs=${fs_test_ndirs:-10000}
62 fs_test_nobj=${fs_test_nobj:-2}
66 [ "$SLOW" = "no" ] && xdd_passes=${xdd_passes:-15}
68 . $LUSTRE/tests/functions.sh
71 check_and_setup_lustre
73 get_mpiuser_id $MPI_USER
74 MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
75 $GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
80 run_test compilebench "compilebench"
85 run_test metabench "metabench"
90 run_test simul "simul"
95 run_test mdtestssf "mdtestssf"
100 run_test mdtestfpp "mdtestfpp"
102 test_connectathon() {
105 run_test connectathon "connectathon"
110 run_test iorssf "iorssf"
115 run_test iorfpp "iorfpp"
117 test_ior_mdtest_parallel_ssf() {
118 ior_mdtest_parallel "ssf"
120 run_test ior_mdtest_parallel_ssf "iormdtestssf"
122 test_ior_mdtest_parallel_fpp() {
123 ior_mdtest_parallel "fpp"
125 run_test ior_mdtest_parallel_fpp "iormdtestfpp"
132 test_cascading_rw() {
135 run_test cascading_rw "cascading_rw"
137 test_write_append_truncate() {
138 run_write_append_truncate
140 run_test write_append_truncate "write_append_truncate"
142 # Argument is chunk size limit, the upper bound on write size
143 test_write_disjoint() {
144 run_write_disjoint 123456
146 run_test write_disjoint "write_disjoint"
148 # Make sure to exercise the tiny write code
149 test_write_disjoint_tiny() {
150 run_write_disjoint 16384
152 run_test write_disjoint_tiny "write_disjoint_tiny"
154 test_parallel_grouplock() {
155 run_parallel_grouplock
157 run_test parallel_grouplock "parallel_grouplock"
162 run_test statahead "statahead test, multiple clients"
167 run_test rr_alloc "Checking even file distribution over OSTs in RR policy"
172 run_test fs_test "fs_test"
184 [ $(facet_fstype $SINGLEMDS) = zfs -o $(facet_fstype "ost1") = zfs ] &&
188 check_and_cleanup_lustre