5 TESTNAME=`basename $0 .sh`
7 LOG=${LOG:-"$TMP/${TESTNAME}.log"}
9 LUSTRE=${LUSTRE:-`dirname $0`/..}
10 . $LUSTRE/tests/test-framework.sh
13 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
15 [ -x "$MDSRATE" ] || FAIL_ON_ERROR=true error "No mdsrate program. Aborting."
16 which mpirun > /dev/null 2>&1 || \
17 FAIL_ON_ERROR=true error "No mpirun program. Aborting."
20 # bug number: 15266 15266
21 ALWAYS_EXCEPT="1 2 $PERFORMANCE_SANITY_EXCEPT"
27 echo "Single client I/O performance as a percentage of raw"
29 run_test 1 "single-client IO perf ====="
33 echo "MPI coordinated test of parallel filesystem system calls and library functions"
35 run_test 2 "multi-client IO perf ====="
37 # mdsrate-create-small
39 echo "File creation performance tests for file objects"
40 bash mdsrate-create-small.sh
42 run_test 3 "small file create/open/delete ======"
44 # mdsrate-create-large
46 echo "Large file creation performance"
47 bash mdsrate-create-large.sh
49 run_test 4 "large file create/open/delete ======"
53 echo "Single directory lookup retrieval rate"
54 bash mdsrate-lookup-1dir.sh
56 run_test 5 "lookup rate 10M file dir ======"
58 # mdsrate-lookup-10dir
60 echo "Directory lookup retrieval rate 10 directories, 1 million files each"
61 bash mdsrate-lookup-10dirs.sh
63 run_test 6 "lookup rate 10M file 10 dir ======"
67 echo "File attribute retrieval rate for small file creation"
68 bash mdsrate-stat-small.sh
70 run_test 7 "getattr small file ======"
74 echo "File attribute retrieval rate for large file creation"
75 bash mdsrate-stat-large.sh
77 run_test 8 "getattr large files ======"
79 equals_msg `basename $0`: test complete, cleaning up
80 check_and_cleanup_lustre
81 [ -f "$LOG" ] && cat $LOG || true
82 [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true