From d2af76031a4c075eade095410106f173aece5d99 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Tue, 23 Oct 2018 10:23:35 +0200 Subject: [PATCH] Parameters check for IOR --- tool_sanity_check.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 tool_sanity_check.sh diff --git a/tool_sanity_check.sh b/tool_sanity_check.sh new file mode 100755 index 000000000..f90b0af40 --- /dev/null +++ b/tool_sanity_check.sh @@ -0,0 +1,29 @@ +#!/bin/bash + + +NN_ARR=( 4 2 1 8 10 12 14 16) +PPN_ARR=( 8 6 4 2 1 ) +T_ARR=( $((10*1024*1024)) $((1*1024*1024)) $((100*1024)) $((16*1024)) ) + + +res="OK" + +for COUNT in $(seq 1); do +for NN in ${NN_ARR[@]}; do +for T in ${T_ARR[@]}; do +for PPN in ${PPN_ARR[@]}; do + + #datasize=$((130 * 1024 * 1024 * 1020 / $PPN)) + datasize=$((4800 * 1024 * 1024 * 32 / $PPN)) + remain=$(( $datasize - ($datasize / $T * $T) )) + if [ 0 -ne $remain ]; then + echo "Bad IOR paramters: NN=$NN, PPN=$PPN, T=$T, DS=$datasize" + res="FAILED" + fi + +done +done +done +done + +echo $res