- {
- read count;
- } < <($QIZX -g /raid0/kn/qizxlib/ -l xmark count.xq 2>&1 )
- {
- read time_count;
- } < <($QIZX -g /raid0/kn/qizxlib/ -l xmark -mr 4 count.xq 2>&1 | grep evaluation | cut -f2 -d ',' | grep -o '[0-9.]*' | head -1 )
-
- {
- read time_mat;
- } < <($QIZX -g /raid0/kn/qizxlib/ -l xmark -mr 2 mat.xq 2>&1 | grep evaluation | cut -f2 -d ',' | grep -o '[0-9.]*' | sort -g | head -1 )
-
+
+ IT=0
+ while true
+ do
+ OUTPUT=`$QIZX -g /raid0/kn/qizxlib/ -l xmark count.xq 2>&1`
+ if echo "$OUTPUT" | grep -q 'java' >/dev/null 2>&1
+ then
+ if [ "$IT" = 5 ]
+ then
+ break
+ fi
+ IT=$(($IT + 1))
+ continue
+ fi
+
+ {
+ read count;
+ } < <(echo "$OUTPUT")
+
+ stop_qizx
+ sleep 3
+ tmp=`echo "$count" | grep -o '[0-9.]\+'`
+ if [ "$tmp" = "$count" ]
+ then
+ break
+ fi
+ done
+
+ IT=0
+ while true
+ do
+
+ OUTPUT=`$QIZX -g /raid0/kn/qizxlib/ -l xmark -r "$repeat" count.xq 2>&1`
+ if echo "$OUTPUT" | grep -q 'java' >/dev/null 2>&1
+ then
+ if [ "$IT" = 5 ]
+ then
+ break
+ fi
+ IT=$(($IT + 1))
+ continue
+ fi
+
+ {
+ read time_count;
+ } < <(echo "$OUTPUT" | grep 'display time' | cut -f 3 -d : | grep -o '[0-9]\+'| tail -n +1 | average )
+
+
+ stop_qizx
+ sleep 3
+ if [ -z "$time_count" ]
+ then
+ break
+ fi
+ tmp=`echo "$time_count" | grep -o '[0-9.]\+'`
+ if [ "$tmp" = "$time_count" ]
+ then
+ break
+ fi
+ done
+
+ IT=0
+ if [ -z "$count" ]
+ then
+
+ while true
+ do
+ OUTPUT=`$QIZX -g /raid0/kn/qizxlib/ -l xmark -r "$repeat" mat.xq -out /dev/null 2>&1`
+ if echo "$OUTPUT" | grep -q 'java' >/dev/null 2>&1
+ then
+ if [ "$IT" = 5 ]
+ then
+ break
+ fi
+ IT=$(($IT + 1))
+ continue
+ fi
+
+ {
+ read time_mat;
+ } < <(echo "$OUTPUT" 2>&1 | grep 'display time' | cut -f 3 -d : | grep -o '[0-9]\+'| tail -n +1 | average)
+
+ stop_qizx
+ sleep 3
+ if [ -z "$time_mat" ]
+ then
+ break
+ fi
+
+
+ tmp=`echo "$time_mat" | grep -o '[0-9.]\+'`
+ if [ "$tmp" = "$time_mat" ]
+ then
+ break
+ fi
+ done
+ else
+ time_mat="999999"
+ fi
+