Lines Matching +full:exit +full:- +full:latency
3 # oe-time-dd-test records how much time it takes to
12 echo "$0 is used to detect i/o latency and runs commands to display host information."
14 echo "1) top -c -b -n1 -w 512"
15 echo "2) iostat -y -z -x 5 1"
16 echo "3) tail -30 tmp*/log/cooker/*/console-latest.log to gather cooker log."
19 …echo "-c | --count <amount> dd (transfer) <amount> KiB of data within specified timeout to detect…
20 echo " Must enable -t option."
21 echo "-t | --timeout <time> timeout in seconds for the <count> amount of data to be transferred."
22 echo "-l | --log-only run the commands without performing the data transfer."
23 echo "-h | --help show help"
29 top -c -b -n1 -w 512
32 iostat -y -z -x 5 1
35 tail -30 tmp*/log/cooker/*/console-latest.log
39 if [ $# -lt 1 ]; then
41 exit 1
44 re_c='^[0-9]+$'
45 #re_t='^[0-9]+([.][0-9]+)?$'
47 while [[ $# -gt 0 ]]; do
51 -c|--count)
55 if ! [[ $COUNT =~ $re_c ]] || [[ $COUNT -le 0 ]] ; then
57 exit 1
60 -t|--timeout)
64 if ! [[ $TIMEOUT =~ $re_c ]] || [[ $TIMEOUT -le 0 ]] ; then
66 exit 1
69 -l|--log-only)
74 -h|--help)
76 exit 0
80 exit 1
89 exit
92 if [ -z ${TIMEOUT+x} ] || [ -z ${COUNT+x} ] ; then
94 exit 1
99 timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync
100 if [ $? -ne 0 ]; then