5 # Runs create.pl and rename.pl on two mountpoints with increasing load, varying
6 # debug levels. Assumes that the node is already setup with llmount2.sh
10 CREATE=$SRCDIR/create.pl
11 RENAME=$SRCDIR/rename.pl
13 TIME=${TIME:-/usr/bin/time}
15 display_elapsed_time() {
16 PREVIOUS_TS=$CURRENT_TS
18 BLOCK_ELAPSED=`expr $CURRENT_TS - $PREVIOUS_TS`
19 TOTAL_ELAPSED=`expr $CURRENT_TS - $START_TS`
22 echo "Elapsed time (block): ${BLOCK_ELAPSED} seconds"
23 echo "Elapsed time (TOTAL): ${TOTAL_ELAPSED} seconds"
29 echo -1 > /proc/sys/portals/debug
34 echo 0 > /proc/sys/portals/debug
37 MNT=${MNT:-/mnt/lustre}
39 # Get our initial timestamps.
45 echo "create.pl, 2 mounts, 1 thread, 10 ops, debug on"
46 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=10
47 echo "create.pl, 2 mounts, 1 thread, 100 ops, debug on"
48 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --silent
49 echo "create.pl --use_mcreate=0, 2 mounts, 1 thread, 10 ops, debug on"
50 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=10 --use_mcreate=0
51 echo "create.pl --use_mcreate=0, 2 mounts, 1 thread, 100 ops, debug on"
52 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --use_mcreate=0 --silent
53 echo "rename.pl, 2 mounts, 1 thread, 10 ops, debug on"
54 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=10
55 echo "rename.pl, 2 mounts, 1 thread, 100 ops, debug on"
56 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=100 --silent
61 echo "create.pl, 2 mounts, 1 thread, 1000 ops, debug off"
62 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=1000 --silent
63 echo "create.pl --use_mcreate=0, 2 mounts, 1 thread, 1000 ops, debug off"
64 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=1000 --use_mcreate=0 --silent
65 echo "rename.pl, 2 mounts, 1 thread, 1000 ops, debug off"
66 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=1000 --silent
71 echo "create.pl, 2 mounts, 2 threads, 100 ops, debug on"
72 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --num_threads=2 --silent
73 echo "create.pl --use_mcreate=0, 2 mounts, 2 threads, 100 ops, debug on"
74 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --num_threads=2 --use_mcreate=0 --silent
75 echo "rename.pl, 2 mounts, 2 thread, 1000 ops, debug on"
76 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=1000 --num_threads=2 --silent
81 echo "create.pl, 2 mounts, 2 threads, 2000 ops, debug off"
82 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=2 --silent
83 echo "create.pl --use_mcreate=0, 2 mounts, 2 threads, 2000 ops, debug off"
84 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=2 --use_mcreate=0 --silent
85 echo "rename.pl, 2 mounts, 2 threads, 2000 ops, debug off"
86 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=2 --silent
91 echo "create.pl, 2 mounts, 4 threads, 100 ops, debug on"
92 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --num_threads=4 --silent
93 echo "create.pl --use_mcreate=0, 2 mounts, 4 threads, 100 ops, debug on"
94 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=100 --num_threads=4 --use_mcreate=0 --silent
95 echo "rename.pl, 2 mounts, 4 threads, 2000 ops, debug on"
96 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=4 --silent
101 echo "create.pl, 2 mounts, 4 threads, 2000 ops, debug off"
102 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=4 --silent
103 echo "create.pl --use_mcreate=0, 2 mounts, 4 threads, 2000 ops, debug off"
104 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=4 --use_mcreate=0 --silent
105 echo "rename.pl, 2 mounts, 4 threads, 2000 ops, debug off"
106 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=4 --silent
111 echo "create.pl, 2 mounts, 8 threads, 500 ops, debug on"
112 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=500 --num_threads=8 --silent
113 echo "create.pl --use_mcreate=0, 2 mounts, 8 threads, 500 ops, debug on"
114 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=500 --num_threads=8 --use_mcreate=0 --silent
115 echo "rename.pl, 2 mounts, 8 threads, 2000 ops, debug on"
116 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=8 --silent
121 echo "create.pl, 2 mounts, 8 threads, 2000 ops, debug off"
122 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=8 --silent
123 echo "create.pl --use_mcreate=0, 2 mounts, 8 threads, 2000 ops, debug off"
124 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=8 --use_mcreate=0 --silent
125 echo "rename.pl, 2 mounts, 8 threads, 2000 ops, debug off"
126 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=2 --iterations=2000 --num_threads=8 --silent