#!/bin/sh BASEDIR=/home/admin #<---- Укажите рабочую директорию, где будут храниться отчёты INIDIR=$BASEDIR/ini LOGDIR=$BASEDIR/log DEV=/dev/sdb #<---- Укажите девайс который будем тестировать IODEPTH=16 RUNTIME=300 TPAUSE=30 STOR="sdb" #<---- Укажите девайс который будем тестировать echo "stor $STOR" > $INIDIR/nmon.gr # --------------------- /usr/bin/nmon -f -t -s 5 -c 5000 -g $INIDIR/nmon.gr -m $LOGDIR/fio fiocfg="--filename=/dev/sdb --iodepth=$IODEPTH --runtime=$RUNTIME " for fiorun in \ " --blocksize=4k --output=$LOGDIR/rand_write_4.out $INIDIR/rand_write.ini" \ " --blocksize=8k --output=$LOGDIR/rand_write_8.out $INIDIR/rand_write.ini" \ " --blocksize=16k --output=$LOGDIR/rand_write_16.out $INIDIR/rand_write.ini" \ " --blocksize=256k --output=$LOGDIR/rand_write_256.out $INIDIR/rand_write.ini" \ " --blocksize=4k --output=$LOGDIR/rand_read_write_4.out $INIDIR/rand_read_write.ini" \ " --blocksize=8k --output=$LOGDIR/rand_read_write_8.out $INIDIR/rand_read_write.ini" \ " --blocksize=16k --output=$LOGDIR/rand_read_write_16.out $INIDIR/rand_read_write.ini" \ " --blocksize=256k --output=$LOGDIR/rand_read_write_256.out $INIDIR/rand_read_write.ini" \ " --blocksize=4k --output=$LOGDIR/rand_read_4.out $INIDIR/rand_read.ini" \ " --blocksize=8k --output=$LOGDIR/rand_read_8.out $INIDIR/rand_read.ini" \ " --blocksize=16k --output=$LOGDIR/rand_read_16.out $INIDIR/rand_read.ini" \ " --blocksize=256k --output=$LOGDIR/rand_read_256.out $INIDIR/rand_read.ini" \ " --blocksize=4k --output=$LOGDIR/write_4.out $INIDIR/write.ini" \ " --blocksize=8k --output=$LOGDIR/write_8.out $INIDIR/write.ini" \ " --blocksize=16k --output=$LOGDIR/write_16.out $INIDIR/write.ini" \ " --blocksize=256k --output=$LOGDIR/write_256.out $INIDIR/write.ini" \ " --blocksize=4k --output=$LOGDIR/read_write_4.out $INIDIR/read_write.ini" \ " --blocksize=8k --output=$LOGDIR/read_write_8.out $INIDIR/read_write.ini" \ " --blocksize=16k --output=$LOGDIR/read_write_16.out $INIDIR/read_write.ini" \ " --blocksize=256k --output=$LOGDIR/read_write_256.out $INIDIR/read_write.ini" \ " --blocksize=4k --output=$LOGDIR/read_4.out $INIDIR/read.ini" \ " --blocksize=8k --output=$LOGDIR/read_8.out $INIDIR/read.ini" \ " --blocksize=16k --output=$LOGDIR/read_16.out $INIDIR/read.ini" \ " --blocksize=256k --output=$LOGDIR/read_256.out $INIDIR/read.ini" ; do echo " ----- $fiocfg $fiorun" >> $LOGDIR/fio/test.log fio $fiocfg $fiorun >> $LOGDIR/fio/test.log echo " ----- endtest" >> $LOGDIR/fio/test.log sleep $TPAUSE done pkill nmon # ---------------------