3 LUSTRE=${LUSTRE:-$(dirname $0)/..}
4 . $LUSTRE/tests/test-framework.sh
8 ALWAYS_EXCEPT="$PARALLEL_SCALE_EXCEPT "
9 # bug number for skipped test: LU-9429
10 ALWAYS_EXCEPT+=" parallel_grouplock "
12 if [ "$mds1_FSTYPE" = zfs -o "$ost1_FSTYPE" = zfs ]; then
16 cbench_IDIRS=${cbench_IDIRS:-1}
17 cbench_RUNS=${cbench_RUNS:-1}
19 mdtest_nFiles=${mdtest_nFiles:-"10000"}
20 statahead_NUMFILES=${statahead_NUMFILES:-100000}
26 clients=${CLIENTS:-$HOSTNAME}
27 generate_machine_file $clients $MACHINEFILE ||
28 error "Failed to generate machine file"
29 num_clients=$(get_node_count ${clients//,/ })
32 if [ "$SLOW" = "no" ]; then
33 cbench_IDIRS=${cbench_IDIRS:-2}
34 cbench_RUNS=${cbench_RUNS:-2}
38 [ "$SLOW" = "no" ] && mbench_NFILES=${mbench_NFILES:-10000}
41 [ "$SLOW" = "no" ] && simul_REP=${simul_REP:-2}
44 [ "$SLOW" = "no" ] && cnt_NRUN=${cnt_NRUN:-2}
47 [ "$SLOW" = "no" ] && casc_REP=${casc_REP:-10}
50 [ "$SLOW" = "no" ] && ior_DURATION=${ior_DURATION:-5}
52 # write_append_truncate
53 [ "$SLOW" = "no" ] && write_REP=${write_REP:-100}
56 [ "$SLOW" = "no" ] && wdisjoint_REP=${wdisjoint_REP:-100}
59 if [ "$SLOW" = "no" ]; then
60 fs_test_ndirs=${fs_test_ndirs:-10000}
61 fs_test_nobj=${fs_test_nobj:-2}
65 [ "$SLOW" = "no" ] && xdd_passes=${xdd_passes:-15}
67 . $LUSTRE/tests/functions.sh
69 check_and_setup_lustre
71 get_mpiuser_id $MPI_USER
72 MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
73 $GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
78 run_test compilebench "compilebench"
83 run_test metabench "metabench"
88 run_test simul "simul"
93 run_test mdtestssf "mdtestssf"
98 run_test mdtestfpp "mdtestfpp"
100 test_connectathon() {
103 run_test connectathon "connectathon"
108 run_test iorssf "iorssf"
113 run_test iorfpp "iorfpp"
115 test_ior_mdtest_parallel_ssf() {
116 ior_mdtest_parallel "ssf"
118 run_test ior_mdtest_parallel_ssf "iormdtestssf"
120 test_ior_mdtest_parallel_fpp() {
121 ior_mdtest_parallel "fpp"
123 run_test ior_mdtest_parallel_fpp "iormdtestfpp"
130 test_cascading_rw() {
133 run_test cascading_rw "cascading_rw"
135 test_write_append_truncate() {
136 run_write_append_truncate
138 run_test write_append_truncate "write_append_truncate"
140 # Argument is chunk size limit, the upper bound on write size
141 test_write_disjoint() {
142 run_write_disjoint 123456
144 run_test write_disjoint "write_disjoint"
146 # Make sure to exercise the tiny write code
147 test_write_disjoint_tiny() {
148 run_write_disjoint 16384
150 run_test write_disjoint_tiny "write_disjoint_tiny"
152 test_parallel_grouplock() {
153 run_parallel_grouplock
155 run_test parallel_grouplock "parallel_grouplock"
160 run_test statahead "statahead test, multiple clients"
165 run_test rr_alloc "Checking even file distribution over OSTs in RR policy"
170 run_test fs_test "fs_test"
182 # If necessary, return SLOW to its original value
183 [ "$mds1_FSTYPE" = zfs -o "$ost1_FSTYPE" = zfs ] &&
187 check_and_cleanup_lustre