ddn-ime-evaluation/benchmark/prepare.sh

26 lines
788 B
Bash
Raw Normal View History

2018-11-13 11:36:15 +00:00
#!/bin/bash
2018-11-13 14:48:24 +00:00
. ./config.sh
2018-11-13 11:36:15 +00:00
2018-11-14 11:27:24 +00:00
for NN in ${NN_ARR[@]}; do
2018-11-13 14:48:24 +00:00
LUSTRE_TESTFILE="$TD/sharedread${NN}/file"
2018-11-14 11:27:24 +00:00
if [ ! -f $LUSTRE_TESTFILE ]; then
TESTDIR="$(dirname $LUSTRE_TESTFILE)"
mkdir $TESTDIR
lfs setstripe -c $(($NN * 2)) $TESTDIR
2018-11-13 14:48:24 +00:00
2018-11-15 08:21:56 +00:00
MPIEXEC_PARAMS="-ppn 8 -np $((8*$NN)) --hosts $(hosts $NN) "
2018-11-14 11:27:24 +00:00
MPIEXEC_PARAMS+="-genv MV2_NUM_HCAS 1 -genv MV2_CPU_BINDING_LEVEL core -genv MV2_CPU_BINDING_POLICY scatter"
IOR_PARAMS="-i 1 -s 1 -t $((16 * 1024 * 1024)) -b $(($DATASIZE / 8)) -o $LUSTRE_TESTFILE -a MPIIO -e -g -k "
#IOR_PARAMS+="-D 60 -O stoneWallingWearOut=1 "
2018-11-13 14:48:24 +00:00
2018-11-14 11:27:24 +00:00
#./drop_caches.sh
set -x
2018-11-15 08:21:56 +00:00
$MPIEXEC $MPIEXEC_PARAMS $IOR $IOR_PARAMS -w
set +x
else
echo "skip $LUSTRE_TESTFILE"
2018-11-14 11:27:24 +00:00
fi
2018-11-13 14:48:24 +00:00
done