Whamcloud - gitweb
Merge b_md into HEAD
[fs/lustre-release.git] / lustre / tests / acceptance-metadata-single.sh
1 #!/bin/sh
2 set -e
3
4 #
5 # Runs create.pl and rename.pl on a single mountpoint with increasing
6 # load, varying debug levels
7 #
8
9 SRCDIR="`dirname $0`/"
10 . $SRCDIR/common.sh
11
12 MNT=${MNT:-/mnt/lustre}
13
14 debug_client_on
15 echo "create.pl, 1 mount, 1 thread, 10 ops, debug on"
16 perl create.pl -- $MNT -1 10
17 echo "create.pl, 1 mount, 1 thread, 100 ops, debug on"
18 perl create.pl --silent -- $MNT -1 100
19 echo "create.pl --mcreate=0, 1 mount, 1 thread, 10 ops, debug on"
20 perl create.pl --mcreate=0 -- $MNT -1 10
21 echo "create.pl --mcreate=0, 1 mount, 1 thread, 100 ops, debug on"
22 perl create.pl --mcreate=0 --silent -- $MNT -1 100
23 echo "rename.pl, 1 mount, 1 thread, 10 ops, debug on"
24 perl rename.pl $MNT 10
25 echo "rename.pl, 1 mount, 1 thread, 100 ops, debug on"
26 perl rename.pl --silent $MNT 100
27
28 debug_client_off
29 echo "create.pl, 1 mount, 1 thread, 1000 ops, debug off"
30 perl create.pl --silent -- $MNT -1 1000
31 echo "create.pl --mcreate=0, 1 mount, 1 thread, 1000 ops, debug off"
32 perl create.pl --silent --mcreate=0 -- $MNT -1 1000
33 echo "rename.pl, 1 mount, 1 thread, 1000 ops, debug off"
34 perl rename.pl --silent $MNT 1000
35
36 debug_client_on
37 echo "create.pl, 1 mount, 2 threads, 100 ops, debug on"
38 perl create.pl --silent -- $MNT -1 100 &
39 perl create.pl --silent -- $MNT -1 100 &
40 wait
41 echo "create.pl --mcreate=0, 1 mount, 2 threads, 100 ops, debug on"
42 perl create.pl --silent --mcreate=0 -- $MNT -1 100 &
43 perl create.pl --silent --mcreate=0 -- $MNT -1 100 &
44 wait
45 echo "rename.pl, 1 mount, 2 thread, 1000 ops, debug on"
46 perl rename.pl --silent $MNT 1000 &
47 perl rename.pl --silent $MNT 1000 &
48 wait
49
50 debug_client_off
51 echo "create.pl, 1 mount, 2 threads, 2000 ops, debug off"
52 perl create.pl --silent -- $MNT -1 2000 &
53 perl create.pl --silent -- $MNT -1 2000 &
54 wait
55 echo "create.pl --mcreate=0, 1 mount, 2 threads, 2000 ops, debug off"
56 perl create.pl --silent --mcreate=0 -- $MNT -1 2000 &
57 perl create.pl --silent --mcreate=0 -- $MNT -1 2000 &
58 wait
59 echo "rename.pl, 1 mount, 2 threads, 2000 ops, debug off"
60 perl rename.pl --silent $MNT 2000 &
61 perl rename.pl --silent $MNT 2000 &
62 wait
63
64 debug_client_on
65 echo "create.pl, 1 mount, 4 threads, 100 ops, debug on"
66 for i in `seq 1 4`; do
67   perl create.pl --silent -- $MNT -1 100 &
68 done
69 wait
70 echo "create.pl --mcreate=0, 1 mount, 4 threads, 100 ops, debug on"
71 for i in `seq 1 4`; do
72   perl create.pl --silent --mcreate=0 -- $MNT -1 100 &
73 done
74 wait
75 echo "rename.pl, 1 mount, 4 threads, 2000 ops, debug on"
76 for i in `seq 1 4`; do
77   perl rename.pl --silent $MNT 2000 &
78 done
79 wait
80
81 debug_client_off
82 echo "create.pl, 1 mount, 4 threads, 2000 ops, debug off"
83 for i in `seq 1 4`; do
84   perl create.pl --silent -- $MNT -1 2000 &
85 done
86 wait
87 echo "create.pl --mcreate=0, 1 mount, 4 threads, 2000 ops, debug off"
88 for i in `seq 1 4`; do
89   perl create.pl --silent --mcreate=0 -- $MNT -1 2000 &
90 done
91 wait
92 echo "rename.pl, 1 mount, 4 threads, 2000 ops, debug off"
93 for i in `seq 1 4`; do
94   perl rename.pl --silent $MNT 2000 &
95 done
96 wait
97
98 debug_client_on
99 echo "create.pl, 1 mount, 8 threads, 500 ops, debug on"
100 for i in `seq 1 8`; do
101   perl create.pl --silent -- $MNT -1 500 &
102 done
103 wait
104 echo "create.pl --mcreate=0, 1 mount, 8 threads, 500 ops, debug on"
105 for i in `seq 1 8`; do
106   perl create.pl --silent --mcreate=0 -- $MNT -1 500 &
107 done
108 wait
109 echo "rename.pl, 1 mount, 8 threads, 2000 ops, debug on"
110 for i in `seq 1 8`; do
111   perl rename.pl --silent $MNT 2000 &
112 done
113 wait
114
115 debug_client_off
116 echo "create.pl, 1 mount, 8 threads, 2000 ops, debug off"
117 for i in `seq 1 8`; do
118   perl create.pl --silent -- $MNT -1 2000 &
119 done
120 wait
121 echo "create.pl --mcreate=0, 1 mount, 8 threads, 2000 ops, debug off"
122 for i in `seq 1 8`; do
123   perl create.pl --silent --mcreate=0 -- $MNT -1 2000 &
124 done
125 wait
126 echo "rename.pl, 1 mount, 8 threads, 2000 ops, debug off"
127 for i in `seq 1 8`; do
128   perl rename.pl --silent $MNT 2000 &
129 done
130 wait