Whamcloud - gitweb
LU-814 test: automated NFS over lustre testing
[fs/lustre-release.git] / lustre / tests / parallel-scale.sh
1 #!/bin/bash
2 #
3 #set -vx
4
5 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
6 . $LUSTRE/tests/test-framework.sh
7 init_test_env $@
8 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
9 init_logging
10
11 # bug number:
12 ALWAYS_EXCEPT="$PARALLEL_SCALE_EXCEPT"
13
14 # common setup
15 MACHINEFILE=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines}
16 clients=${CLIENTS:-$HOSTNAME}
17 generate_machine_file $clients $MACHINEFILE || \
18     error "Failed to generate machine file"
19 num_clients=$(get_node_count ${clients//,/ })
20
21 # compilbench
22 if [ "$SLOW" = "no" ]; then
23     cbench_IDIRS=2
24     cbench_RUNS=2
25 fi
26
27 # metabench
28 [ "$SLOW" = "no" ] && mbench_NFILES=10000
29
30 # simul
31 [ "$SLOW" = "no" ] && simul_REP=2
32
33 # connectathon
34 [ "$SLOW" = "no" ] && cnt_NRUN=2
35
36 # cascading rw
37 [ "$SLOW" = "no" ] && casc_REP=10
38
39 # IOR
40 [ "$SLOW" = "no" ] && ior_DURATION=5
41
42 # write_append_truncate
43 [ "$SLOW" = "no" ] && write_REP=100
44
45 # write_disjoint
46 [ "$SLOW" = "no" ] && wdisjoint_REP=100
47
48 . $LUSTRE/tests/functions.sh
49
50 build_test_filter
51 check_and_setup_lustre
52
53 test_compilebench() {
54     run_compilebench
55 }
56 run_test compilebench "compilebench"
57
58 test_metabench() {
59     run_metabench
60 }
61 run_test metabench "metabench"
62
63 test_simul() {
64     run_simul
65 }
66 run_test simul "simul"
67
68 test_mdtestssf() {
69     run_mdtest "ssf"
70 }
71 run_test mdtestssf "mdtestssf"
72
73 test_mdtestfpp() {
74     run_mdtest "fpp"
75 }
76 run_test mdtestfpp "mdtestfpp"
77
78 test_connectathon() {
79     run_connectathon
80 }
81 run_test connectathon "connectathon"
82
83 test_iorssf() {
84     run_ior "ssf"
85 }
86 run_test iorssf "iorssf"
87
88 test_iorfpp() {
89     run_ior "fpp"
90 }
91 run_test iorfpp "iorfpp"
92
93 test_mib() {
94     run_mib
95 }
96 run_test mib "mib"
97
98 test_cascading_rw() {
99     run_cascading_rw
100 }
101 run_test cascading_rw "cascading_rw"
102
103 test_write_append_truncate() {
104     run_write_append_truncate
105 }
106 run_test write_append_truncate "write_append_truncate"
107
108 test_write_disjoint() {
109     run_write_disjoint
110 }
111 run_test write_disjoint "write_disjoint"
112
113 test_parallel_grouplock() {
114     run_parallel_grouplock
115 }
116 run_test parallel_grouplock "parallel_grouplock"
117
118 complete $(basename $0) $SECONDS
119 check_and_cleanup_lustre
120 exit_status