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}
16 [ -x "$MDSRATE" ] || FAIL_ON_ERROR=true error "No mdsrate program. Aborting."
17 which mpirun > /dev/null 2>&1 || \
18 FAIL_ON_ERROR=true error "No mpirun program. Aborting."
21 # bug number: 15266 15266
22 ALWAYS_EXCEPT="1 2 $PERFORMANCE_SANITY_EXCEPT"
26 get_mpiuser_id $MPI_USER
27 MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
28 $GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
32 echo "Single client I/O performance as a percentage of raw"
34 run_test 1 "single-client IO perf ====="
38 echo "MPI coordinated test of parallel filesystem system calls and library functions"
40 run_test 2 "multi-client IO perf ====="
42 # mdsrate-create-small
44 echo "File creation performance tests for file objects"
45 bash mdsrate-create-small.sh
47 run_test 3 "small file create/open/delete ======"
49 # mdsrate-create-large
51 echo "Large file creation performance"
52 bash mdsrate-create-large.sh
54 run_test 4 "large file create/open/delete ======"
58 echo "Single directory lookup retrieval rate"
59 bash mdsrate-lookup-1dir.sh
61 run_test 5 "lookup rate 10M file dir ======"
63 # mdsrate-lookup-10dir
65 echo "Directory lookup retrieval rate 10 directories, 1 million files each"
66 bash mdsrate-lookup-10dirs.sh
68 run_test 6 "lookup rate 10M file 10 dir ======"
72 echo "File attribute retrieval rate for small file creation"
73 bash mdsrate-stat-small.sh
75 run_test 7 "getattr small file ======"
79 echo "File attribute retrieval rate for large file creation"
80 bash mdsrate-stat-large.sh
82 run_test 8 "getattr large files ======"
84 equals_msg `basename $0`: test complete, cleaning up
85 check_and_cleanup_lustre
86 [ -f "$LOG" ] && cat $LOG || true
87 [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true