зеркало из https://github.com/Azure/azurehpc.git
38 строки
743 B
Bash
Executable File
38 строки
743 B
Bash
Executable File
#!/bin/bash
|
|
FILESYSTEM=$1
|
|
set -o pipefail
|
|
source /etc/profile
|
|
|
|
if [ -z "$FILESYSTEM" ]; then
|
|
echo "Missing Filesystem parameter"
|
|
exit 1
|
|
fi
|
|
|
|
SHARED_APPS=/apps
|
|
DIRECTORY=${FILESYSTEM}/testing
|
|
RUNTIME=600
|
|
|
|
export MODULEPATH=${SHARED_APPS}/modulefiles:$MODULEPATH
|
|
module load fio
|
|
|
|
mkdir $DIRECTORY
|
|
NUMJOBS=`cat $PBS_NODEFILE | wc -l`
|
|
|
|
for BS in 4K 4M
|
|
do
|
|
if [ $BS == "4K" ]; then
|
|
SIZE=128M
|
|
else
|
|
SIZE=2G
|
|
fi
|
|
for RW in write read
|
|
do
|
|
sync
|
|
fio --name=${RW}_${SIZE} --directory=$DIRECTORY --direct=1 --size=$SIZE --bs=$BS --rw=${RW} --numjobs=$NUMJOBS --group_reporting --runtime=${RUNTIME} --output=fio_direct_${RW}_${SIZE}_${BS}_${NUMJOBS}.out
|
|
rm ${DIRECTORY}/*
|
|
sync
|
|
sleep 2
|
|
done
|
|
done
|
|
|