5 # Runs create.pl and rename.pl on a single mountpoint with increasing
6 # load, varying debug levels
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 0x3f0400 > /proc/sys/portals/debug
37 MNT=${MNT:-/mnt/lustre}
39 # Get our initial timestamps.
45 echo "create.pl, 1 mount, 1 thread, 10 ops, debug on"
46 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=10
47 echo "create.pl, 1 mount, 1 thread, 100 ops, debug on"
48 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --silent
49 echo "create.pl --mcreate=0, 1 mount, 1 thread, 10 ops, debug on"
50 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=10 --use_mcreate=0
51 echo "create.pl --mcreate=0, 1 mount, 1 thread, 100 ops, debug on"
52 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --use_mcreate=0 --silent
53 echo "rename.pl, 1 mount, 1 thread, 10 ops, debug on"
54 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=10
55 echo "rename.pl, 1 mount, 1 thread, 100 ops, debug on"
56 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=100 --silent
61 echo "create.pl, 1 mount, 1 thread, 1000 ops, debug off"
62 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=1000 --silent
63 echo "create.pl --mcreate=0, 1 mount, 1 thread, 1000 ops, debug off"
64 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=1000 --use_mcreate=0 --silent
65 echo "rename.pl, 1 mount, 1 thread, 1000 ops, debug off"
66 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=1000 --silent
71 echo "create.pl, 1 mount, 2 threads, 100 ops, debug on"
72 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --num_threads=2 --silent
73 echo "create.pl --mcreate=0, 1 mount, 2 threads, 100 ops, debug on"
74 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --num_threads=2 --use_mcreate=0 --silent
75 echo "rename.pl, 1 mount, 2 thread, 1000 ops, debug on"
76 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=1000 --num_threads=2 --silent
81 echo "create.pl, 1 mount, 2 threads, 2000 ops, debug off"
82 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=2 --silent
83 echo "create.pl --mcreate=0, 1 mount, 2 threads, 2000 ops, debug off"
84 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=2 --use_mcreate=0 --silent
86 echo "rename.pl, 1 mount, 2 threads, 2000 ops, debug off"
87 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=2 --silent
92 echo "create.pl, 1 mount, 4 threads, 100 ops, debug on"
93 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --num_threads=4 --silent
94 echo "create.pl --mcreate=0, 1 mount, 4 threads, 100 ops, debug on"
95 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=100 --num_threads=4 --use_mcreate=0 --silent
96 echo "rename.pl, 1 mount, 4 threads, 2000 ops, debug on"
97 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=4 --silent
102 echo "create.pl, 1 mount, 4 threads, 2000 ops, debug off"
103 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=4 --silent
104 echo "create.pl --mcreate=0, 1 mount, 4 threads, 2000 ops, debug off"
105 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=4 --use_mcreate=0 --silent
106 echo "rename.pl, 1 mount, 4 threads, 2000 ops, debug off"
107 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=4 --silent
112 echo "create.pl, 1 mount, 8 threads, 500 ops, debug on"
113 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=500 --num_threads=8 --silent
114 echo "create.pl --mcreate=0, 1 mount, 8 threads, 500 ops, debug on"
115 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=500 --num_threads=8 --use_mcreate=0 --silent
116 echo "rename.pl, 1 mount, 8 threads, 2000 ops, debug on"
117 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=8 --silent
122 echo "create.pl, 1 mount, 8 threads, 2000 ops, debug off"
123 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=8 --silent
124 echo "create.pl --mcreate=0, 1 mount, 8 threads, 2000 ops, debug off"
125 $TIME perl $CREATE --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=8 --use_mcreate=0 --silent
126 echo "rename.pl, 1 mount, 8 threads, 2000 ops, debug off"
127 $TIME perl $RENAME --mountpt=${MNT} --num_mounts=-1 --iterations=2000 --num_threads=8 --silent
147 $TIME sh rundbench 16
151 $TIME sh rundbench 32