5 TESTNAME=$(basename $0 .sh)
6 LOG=${LOG:-"$TMP/${TESTNAME}.log"}
8 LUSTRE=${LUSTRE:-$(dirname $0)/..}
9 . $LUSTRE/tests/test-framework.sh
13 ALWAYS_EXCEPT="$PERFORMANCE_SANITY_EXCEPT "
16 [[ -x "$MPIRUN" ]] || skip_env "no mpirun program found"
17 [[ -x "$MDTEST" ]] || skip_env "no mdtest program found"
19 check_and_setup_lustre
21 get_mpiuser_id $MPI_USER
22 MPI_RUNAS=${MPI_RUNAS:-"runas -u $MPI_USER_UID -g $MPI_USER_GID"}
23 $GSS_KRB5 && refresh_krb5_tgt $MPI_USER_UID $MPI_USER_GID $MPI_RUNAS
26 echo "Small files creation performance test"
27 # LU-2600/LU-4108 - Decrease load on zfs
28 if [[ "$SLOW" == no && "$mds1_FSTYPE" == zfs ]]; then
31 run_mdtest create-small
33 run_test 1 "small files create/open/delete"
36 echo "Large files creation performance test"
37 run_mdtest create-large
39 run_test 2 "large files create/open/delete"
44 echo "Single directory lookup rate for $NUM_FILES files"
45 run_mdtest lookup-single
47 run_test 3 "lookup rate 200k files in single directory"
52 echo "Directory lookup rate $NUM_DIRS directories, $((NUM_FILES/NUM_DIRS)) files each"
53 run_mdtest lookup-multi
55 run_test 4 "lookup rate 200k files in 100 directories"
57 complete_test $SECONDS
58 check_and_cleanup_lustre